Jump to content

Module:IncrementParams/doc

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Mr. Stradivarius (talk | contribs) at 06:14, 13 June 2013 (create). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)


This module automatically 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.

Usage

Due to the way templates work, this module cannot be used from #invoke. Instead, you have to edit the module page directly. 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}}

Or you can copy and paste the code from the following section.

Output

The module currently outputs the following text:

|header4  = Section 1
|label6   = Label A
|data6    = Data A
|label8   = Label C
|data8    = Data C
|header11 = Section 2
|label13  = Label D
|data13   = Data D

See also