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

Content deleted Content added
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..."
 
Xqbot (kjak | íkøst)
s Bot: Erstatt forældet <source> -tag og parameteren "enclose" [https://lists.wikimedia.org/pipermail/wikitech-ambassadors/2020-April/002284.html]
 
Linja 31:
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.