Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Infobox/doc: Difference between revisions

Template page
Arin Mara (talk | contribs)
Wrote Infobox docs
Arin Mara (talk | contribs)
m Reminder how to make rows optional
Line 51: Line 51:
: <code>caption, caption2</code>
: <code>caption, caption2</code>
:: Text to put underneath the images.
:: Text to put underneath the images.
; Row parameters
A row with a label but no data is not displayed. This allows for the easy creation of optional infobox content rows. To make a row optional use a parameter that defaults to an empty string, like so:
<pre>
|label5 = Population
|data5  = {{{population|}}}
</pre>
: <code>header<sub>n</sub></code>
: <code>header<sub>n</sub></code>
:: Text to use as a header in row n.
:: Text to use as a header in row n.
Line 57: Line 63:
: <code>data<sub>n</sub></code>
: <code>data<sub>n</sub></code>
:: Text to display as data in row n.
:: Text to display as data in row n.
; Style parameters
: <code>bodystyle</code>
: <code>bodystyle</code>
:: Applies to the infobox table as a whole
:: Applies to the infobox table as a whole