Difference between revisions of "Module:TOCyears/doc"

MyWikiBiz, Author Your Legacy — Sunday September 07, 2025
Jump to navigationJump to search
(Pywikibot 6.4.0)
 
(No difference)

Latest revision as of 07:31, 16 July 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:

<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.