Template:Infobox/doc: Difference between revisions
From The Kodiak Republic Wiki
no edit summary
m (7 revisions imported from templatewikiarchive:Template:Infobox/doc) |
No edit summary |
||
Line 1:
{{Documentation subpage}}
This template is intended as a meta template: a template used for constructing other templates. '''Note''': In general, it is not meant for use directly in an article, but can be used on a one-off basis if required. [[w:Help:Infobox]] contains an introduction about the recommended content and design of infoboxes.
Line 80 ⟶ 66:
; data(n) : Text to display as data in row n.
Note: for any given value for (n), not all combinations of parameters are permitted. The presence of a
*
*
*
See the rendering of header4, label4, and data4 in the [[#Examples|Examples]] section below.
Line 179 ⟶ 165:
Titles of articles with infoboxes may be made italic, in line with [[WP:ITALICTITLE]], by passing the <code>italic title</code> parameter.
* Turn on italic titles by passing
* Turn off by default (notably because only Latin script may be safely rendered in this style and italic may be needed to distinguish foreign language from local English language only in that script, but would be difficult to read for other scripts) but allow some instances to be made italic by passing
* Do not make any titles italic by not passing the parameter at all.
Line 385 ⟶ 371:
== Embedding ==
One infobox template can be embedded into another using the
▲One infobox template can be embedded into another using the {{para|child}} parameter or the {{para|embed}} parameter. This feature can be used to create a modular infobox, or to create better-defined logical sections. Long ago, it was necessary to use embedding in order to create infoboxes with more than 99 rows; but nowadays there's no limit to the number of rows that can be defined in a single instance of <code><nowiki>{{infobox}}</nowiki></code>.
{{Infobox
Line 491 ⟶ 476:
</pre>{{clear}}
Note that omitting the
== Subboxes ==
An alternative method for embedding is to use
{{Infobox
Line 537 ⟶ 522:
</source>{{clear}}
Note that the default padding of the parent data cell containing each subbox is still visible, so the subboxes are slightly narrower than the parent box and there's a higher vertical spacing between standard cells of the parent box than between cells of distinct subboxes.
Line 673 ⟶ 618:
}}
</pre>{{clear}}
==See also==
* [[Module:Infobox]], the [[mw:Lua/Overview|Lua]] module on which this template is based
* [[w:Wikipedia:List of infoboxes|List of infoboxes]]▼
▲* [[Wikipedia:List of infoboxes|List of infoboxes]]
|