More actions
m Reminder how to make rows optional |
m Add used by. |
||
| Line 1: | Line 1: | ||
;Description | ; Description | ||
:This template is intended as a meta template: a template used for constructing other [[Category:Infobox templates|Infobox templates]]. | : This template is intended as a meta template: a template used for constructing other [[:Category:Infobox templates|Infobox templates]]. | ||
;Dependencies: | |||
: | ; Dependencies: | ||
;Syntax | :; Uses | ||
:: {{T|Infobox/row}} | |||
:; Used by | |||
:: {{T|Infobox agent}} | |||
; Syntax | |||
<pre>{{Infobox | <pre>{{Infobox | ||
| name = {{subst:PAGENAME}} | | name = {{subst:PAGENAME}} | ||
| Line 40: | Line 45: | ||
| below = | | below = | ||
}}</pre> | }}</pre> | ||
; Parameters | ; Parameters | ||
: <code>name</code> | : <code>name</code> | ||
| Line 53: | Line 59: | ||
; Row parameters | ; 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: | 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> | <pre>label5 = Population | ||
|data5 = {{{population|}}} | |data5 = {{{population|}}} | ||
</pre> | </pre> | ||
| Line 80: | Line 85: | ||
;Sample output | ;Sample output | ||
< | {{Code|<nowiki>{{Infobox | ||
|name = {{subst:PAGENAME}} | |name = {{subst:PAGENAME}} | ||
| Line 108: | Line 113: | ||
|below = Below text | |below = Below text | ||
}}</ | }}</nowiki>}} gives... | ||
{{Infobox | {{Infobox | ||
|name = Infobox/doc | |name = Infobox/doc | ||
| Line 139: | Line 143: | ||
|below = Below text | |below = Below text | ||
}} | }} | ||
<includeonly>[[Category:Infobox templates | ; See also: | ||
<noinclude>[[Category:Template documentation | :* [[wikipedia:Template:Infobox|Wikipedia Template:Infobox]] | ||
<includeonly>[[Category:Infobox templates]]<!-- Any categories for the template itself --></includeonly> | |||
<noinclude>[[Category:Template documentation]]</noinclude> | |||