跳转到内容

模組:IncrementParams/doc

维基百科,自由的百科全书

这是本页的一个历史版本,由Efly留言 | 贡献2018年5月11日 (五) 09:11 建立内容为“{{module rating|alpha}} This module increments numbered template parameters. This is useful for inserting new rows into infobox templates, and for…”的新页面)编辑。这可能和当前版本存在着巨大的差异。

(差异) ←上一修订 | 最后版本 (差异) | 下一修订→ (差异)

这是Module:IncrementParams的文档页面

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

參見