Munurin millum rættingarnar hjá "Module:TOC/doc"

36 bytes løgd afturat ,  7 mánaðir síðan
s
Bot: Erstatt forældet <source> -tag og parameteren "enclose" [https://lists.wikimedia.org/pipermail/wikitech-ambassadors/2020-April/002284.html]
(Stovnaði síðu við "This module implements various table of contents (TOC) templates. At the moment, it implements {{tl|TOCyears}} and {{tl|List TOC}}. == Usage == === Avaiable fu...")
 
s (Bot: Erstatt forældet <source> -tag og parameteren "enclose" [https://lists.wikimedia.org/pipermail/wikitech-ambassadors/2020-April/002284.html])
 
Load the module like this:
 
<sourcesyntaxhighlight lang="lua">
local mTOC = require('Module:TOC')
</syntaxhighlight>
</source>
 
You can then use the functions with the following syntax:
 
<sourcesyntaxhighlight lang="lua">
mTOC.func(args)
</syntaxhighlight>
</source>
 
"func" should be changed to one of the Lua function names in the table above. These all start with an underscore ("_"). The <var>args</var> variable is a table of arguments to be passed to the function. Please see the template documentation for available arguments.
14.816

rættingar