Open main menu

Changes

Template:Infobox/doc

2 bytes added, 15:09, 2 October 2013
no edit summary
To insert an image somewhere other than at the top of the infobox, or to insert freeform data, use a row with only a data field.
 
==== Number ranges ====
To allow flexibility when the layout of an infobox is changed, it may be helpful when developing an infobox to use non-contiguous numbers for header and label/data rows. Parameters for new rows can then be inserted in future without having to renumber existing parameters. For example:
 
<pre style="overflow:auto">
| header3 = Section 1
| label5 = Label A
| data5 = Data A
| label7 = Label C
| data7 = Data C
| header10 = Section 2
| label12 = Label D
| data12 = Data D
</pre>{{clear}}
 
It is also possible to automatically renumber parameter names by using [[Module:IncrementParams]].
 
Note that although there is no limitation on the number of rows available, row parameters should not be numbered more than 50 apart. See the [[#Limitations]] section below for more details.
=== Control parameters ===
See the rendering of header4, label4, and data4 in the [[#Examples|Examples]] section below.
 
===== Number ranges =====
To allow flexibility when the layout of an infobox is changed, it may be helpful when developing an infobox to use non-contiguous numbers for header and label/data rows. Parameters for new rows can then be inserted in future without having to renumber existing parameters. For example:
 
<pre style="overflow:auto">
| header3 = Section 1
| label5 = Label A
| data5 = Data A
| label7 = Label C
| data7 = Data C
| header10 = Section 2
| label12 = Label D
| data12 = Data D
</pre>{{clear}}
 
It is also possible to automatically renumber parameter names by using [[Module:IncrementParams]].
 
Note that although there is no limitation on the number of rows available, row parameters should not be numbered more than 50 apart. See the [[#Limitations]] section below for more details.
===== Making fields optional =====
Anonymous user