Template:Infobox/doc: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
 
No edit summary
Line 7: Line 7:


=== Usage ===
=== Usage ===
Usage is similar to {{tl|navbox}}, but with an additional distinction. Each row on the table can contain either a header, or a label/data pair, or just a data cell. These are mutually exclusive states so if you define a row with both a header and a label/data pair, the label/data pair is ignored.
Usage is similar to {{tl|navbox}}, but with an additional distinction. Each row on the table can  
 
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>|header3  = Section 1
|label5  = Label A
|data5    = Data B
|label7  = Label C
|data7    = Data C
|header10 = Section 2
|label12  = Label D
|data12  = Data D</pre>
 
=== Parameters ===
====View/discuss/edit links====
;name : The template page name that the "view/discuss/edit" links should point to. You can use <nowiki>{{subst:PAGENAME}}</nowiki>. If this parameter is omitted the view/discuss/edit links will not be displayed.
 
====Title====
{{Infobox
|title = Text in caption over infobox
|title = Text in caption over infobox
|subheader = Subheader of the infobox
|subheader = Subheader of the infobox
Anonymous user

Navigation menu