Module:TOCyears/doc

This module implements TOCyears

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

&#x26;#123;&#x26;#123;#invoke:TOC&#x26;#124;years&#x26;#124;args&#x26;#125;&#x26;#125;

See the documentation of TOCyears for available parameters.

From Lua
Load the module like this:

&#x3c;syntaxhighlight lang="lua"&#x3e; local mTOCyears = require('Module:TOCyears') &#x3c;/syntaxhighlight&#x3e;

You can then use it with the following syntax:

&#x3c;syntaxhighlight lang="lua"&#x3e; mTOCyears._years(args) &#x3c;/syntaxhighlight&#x3e;

&#x3c;var&#x3e;args&#x3c;/var&#x3e; variable is a table of arguments to be passed to the function. Please see TOCyears for available arguments. &#x3c;includeonly&#x3e;&#x3c;/includeonly&#x3e;