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)
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:
 
:* [[Template:Infobox/row]]
; 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
|label5 = Population
|data5  = {{{population|}}}
|data5  = {{{population|}}}
</pre>
</pre>
Line 80: Line 85:


;Sample output
;Sample output
<pre>{{Infobox
{{Code|<nowiki>{{Infobox
|name        = {{subst:PAGENAME}}
|name        = {{subst:PAGENAME}}


Line 108: Line 113:


|below      = Below text
|below      = Below text
}}</pre>
}}</nowiki>}} gives...
::gives...
{{Infobox
{{Infobox
|name        = Infobox/doc
|name        = Infobox/doc
Line 139: Line 143:
|below      = Below text
|below      = Below text
}}
}}
;See also:
:* [[Template:Infobox/row]]
:* [https://en.wikipedia.org/wiki/Template:Infobox Wikipedia Template:Infobox]


<includeonly>[[Category:Infobox templates|{{PAGENAME}}]]<!-- Any categories for the template itself --></includeonly>
; See also:
<noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
:* [[wikipedia:Template:Infobox|Wikipedia Template:Infobox]]
 
<includeonly>[[Category:Infobox templates]]<!-- Any categories for the template itself --></includeonly>
<noinclude>[[Category:Template documentation]]</noinclude>