Jump to content

Module:TOCyears/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Cleanup after deletion of Template:List TOC
No edit summary
Line 25: Line 25:


<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||
[[Category:TOC modules|Years]]
}}</includeonly>

Revision as of 17:23, 14 March 2021

This module implements {{TOCyears}}

Usage

From wikitext

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

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.