Module:TOCyears/doc

MyWikiBiz, Author Your Legacy — Sunday June 02, 2024
< Module:TOCyears
Revision as of 07:31, 16 July 2021 by Zoran (talk | contribs) (Pywikibot 6.4.0)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

This is the documentation page for Module:TOCyears

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:

<syntaxhighlight lang="lua"> local mTOCyears = require('Module:TOCyears') </syntaxhighlight>

You can then use it with the following syntax:

<syntaxhighlight lang="lua"> mTOCyears._years(args) </syntaxhighlight>

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