Module:IncrementParams/doc
这是Module:IncrementParams的文档页面
此模块文档已评为alpha版,可接受第三方输入,并可用于少量页面以检查是否存在问题,但需要受到监视。欢迎提供新功能或修改其输入输出机制的建议。 |
本模组可用于增加带有数字的模板参数名称,方便编者于Infobox模板中加入新行数。具体使用方法请点击页面“编辑”按钮后查看模组代码中的注释。
This module increments numbered template parameters. This is useful for inserting new rows into infobox templates, and for other similar tasks where renaming many parameters by hand would be tedious.
使用方法[编辑源代码]
Due to the way templates work, you cannot pass template input to this module in the normal way. Instead, you have to edit the module page directly to get the desired result. Please follow the seven steps listed in the module code.
Once you have finished editing the module, you can use it on any page, with the code:
{{subst:#invoke:IncrementParams|main}}
You can also view it as pre-formatted text using the pre
parameter. Warning - this doesn't work with subst.
{{#invoke:IncrementParams|main|pre=yes}}
Or you can simply copy and paste the code from the following section.
输出[编辑源代码]
本模组现时输出以下内容:
|header4 = Section 1 |label6 = Label A |data6 = Data A |label8 = Label C |data8 = Data C |header11 = Section 2 |label13 = Label D |data13 = Data D