Open main menu

Changes

Template:Infobox/doc

1,051 bytes added, 02:11, 29 October 2010
m
Reverted edits by 72.219.149.206 to last version by کاشف عقیل (GLOO)
I love money and using the computer. So shut up!
 
{{documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE. -->
=== 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. 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
|subheader = Subheader of the infobox
Anonymous user