Changes
Jump to navigation
Jump to search
:However ====Title====There are two different ways to put a title on an infobox. One contains the title inside the infobox's border, the other puts it on top as a caption. You can use both of them together if you like, or just one or the other, or even neither (though this is rarely what you want, because it will send users clicking these links not recommended):;title : Text to put in an infobox in an article to the template code rather than caption over top of the data in table (or as as section header before the whole content of this table, if this is a child infobox that they probably want ).;above : Text to changeput within the uppermost cell of the table. Examples:
====Title====
There are two different ways to put a title on an {{Infobox |above = Text in uppermost cell of infobox. One contains |subheader = Subheader of the title inside infobox |subheader2 = Second subheader of the infobox's border, |data1 = (the other puts it on top as a caption. You can use both rest of them together if you like, or just one or the other, or even neither (though this is not recommendedinfobox goes here).;title }}<pre style="overflow: auto">{{Infobox |above = Text to put in uppermost cell of infobox |subheader = Subheader of the caption over top infobox |subheader2 = Second subheader of the table.infobox;above : Text to put within |data1 = (the uppermost cell rest of the table.infobox goes here)}}</pre>
;child: See the [[#Embedding|embedding]] section for details.
====View/discuss/edit links====
;name
:If this parameter is present, "view/discuss/edit" links will be added to the bottom of the infobox, pointing to the named templatepage. :You can may use the value <nowiki>{{subst:PAGENAME}}</nowiki>; however this is rarely what you want, because it will send users clicking these links in an infobox in an article to the template code rather than the data in the infobox that they probably want to change.;child:Optional parameter: See the [[#Embedding|embedding]] section for details. if this is set to a non-empty value the name parameter should probably not be used, and this child infobox should be titled.
{{Infobox
|name = Infobox/doc |title = Text in caption over infobox |subheader = Subheader of the infobox |data1 = (the rest of the infobox goes here)}}<pre style="overflow:auto">
{{Infobox
|above name = {{subst:PAGENAME}} |title = Text in uppermost cell of caption over infobox |subheader = Subheader of the infobox|subheader2 = Second subheader of the infobox |data1 = (the rest of the infobox goes here)}}</pre>
====Optional top illustrations before content====;subheader(n) : additional title fields which fit below {{{title}}} and {{{above}}}, but before, between, and after images. Subheader parameters should not be spaced more than 10 apart.
;image(n) : images to display at the top of the template. Use full image syntax, for example <nowiki>[[File:example.png|200px|alt=Example alt text]]</nowiki>. Image is centered by default. See [[WP:ALT]] for more on alt text. Image parameters should not be spaced more than 10 apart.
;caption(n) : Text to put underneath the images.
====Optional content====
;header(n) : Text to use as a header in row n. Header and data parameters should not be spaced more than 50 apart.
;label(n): Text to use as a label in row n.
;data(n): Text to display as data in row n. Header and data parameters should not be spaced more than 50 apart.
;below: Text to put in the bottom cell. The bottom cell is intended for footnotes, see-also, and other such information.
Note: for any given value for (n), not all combinations of parameters are permitted. The presence of a {{para|header''(n)''}} will cause the corresponding {{para|data''(n)''}}{{para|label''(n)''}} (and {{para|rowclass''(n)''}}, see below) to be ignored; the absence of a {{para|data''(n)''}} will cause the corresponding {{para|label''(n)''}} to be ignored. Valid combinations for any single row are: