请输入您要查询的百科知识:

 

词条 Module:TOC/doc
释义

  1. Usage

      Available functions    From wikitext    From Lua  

This module implements various table of contents (TOC) templates. At the moment, it implements {{tl|TOCyears}} and {{tl|List TOC}}.

Usage

Available functions

#invoke function Lua function Template
years _yearsTOCyears}}
list _listList TOC}}

From wikitext

From wikitext this module should usually be used through one of the templates in the table above. However, it is also possible to use it with the following syntax:

The function names are listed in the table in the "#invoke function" column, and args are the arguments that would normally be added by the template. Please see the template documentation for each template for available parameters.

From Lua

Load the module like this:

local mTOC = require('Module:TOC')

You can then use the functions with the following syntax:

mTOC.func(args)

"func" should be changed to one of the Lua function names in the table above. These all start with an underscore ("_"). The args variable is a table of arguments to be passed to the function. Please see the template documentation for available arguments.

{{#ifeq:{{SUBPAGENAME}}|sandbox||

}}

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/11/11 5:59:36