Jump to content

Module:TOCyears/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
No edit summary
 
Line 26: Line 26:
<var>args</var> variable is a table of arguments to be passed to the function. Please see {{tl|TOCyears}} for available arguments.
<var>args</var> variable is a table of arguments to be passed to the function. Please see {{tl|TOCyears}} for available arguments.
<includeonly>{{sandbox other||
<includeonly>{{sandbox other||
[[Category:TOC modules|Years]]
[[Category:Wikipedia table of contents modules|Years]]
}}</includeonly>
}}</includeonly>

Latest revision as of 20:49, 8 February 2023

This module implements {{TOCyears}}

Usage

[edit]

From wikitext

[edit]

From wikitext this module should usually be used through {{TOCyears}}. However, it is also possible to use it with the following syntax:

{{#invoke:TOC|years|args}}

See the documentation of {{TOCyears}} for available parameters.

From Lua

[edit]

Load the module like this:

local mTOCyears = require('Module:TOCyears')

You can then use it with the following syntax:

mTOCyears._years(args)

args variable is a table of arguments to be passed to the function. Please see {{TOCyears}} for available arguments.