Open main menu

Changes

Template:Infobox/doc

1,541 bytes added, 15:21, 10 May 2019
m
Reverted 1 edit by 2001:56A:7725:F000:B539:A093:1F96:BC8D (talk) to last revision by DePiep (TW)
{{distinguish|Template:Userbox}}
{{Documentation subpage}}
<includeonly>{{#ifeq:{{#titleparts:{{PAGENAME}}|1|2}}|old ||{{High-use|3,000,000+}}{{Lua|Module:Infobox}}}}</includeonly>
{{Parameter names example
|name={{PAGENAME}} <!--|child |subbox |decat--> |title |above |subheader |subheader1 |subheader2={{{subheader2}}}<br/>......
|image|caption |image1|caption1 |image2|caption2={{{caption2}}}<br/>......
|header1=<div style="border-top:1px dashed #ccc;">{{{header1}}}<br/>{{nobold|( ''or'' )}}</div>
|label2={{{label1}}} |data2={{{data1}}}
|data3=( ''or'' ) |data4=<div style="padding-bottom:0.25em;border-bottom:1px dashed #ccc;">{{{data1}}}</div>
|header5={{{header2}}}<br/><div style="padding:0.75em 0 0.5em;">{{nobold|( ''or'' )}}</div>
|label6={{{label2}}} |data6={{{data2}}}
|data7=( ''or'' ) |data8=<div style="padding-bottom:0.25em;border-bottom:1px dashed #ccc;">{{{data2}}}</div>
|data9=<div style="padding:0.75em 0 0.5em;">( ''etc'' )</div>
|below
}}
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. [[Help:Infobox]] contains an introduction about the recommended content and design of infoboxes; [[Wikipedia:Manual of Style/Infoboxes]] contains additional style guidelines. See [[WP:List of infoboxes]] and [[:Category:Infobox templates]] for lists of prepared topic-specific infoboxes.
This template == Usage =={{tlf|Infobox}} is intended as a meta -template: a template used for constructing other templates. '''Note''': In general, it is not meant for use directly in to organise an article, but can be used on a one-off basis if required. [[Help:actual <nowiki>{{Infobox]] contains an introduction about the recommended content and design of infoboxes; [[Wikipedia:Manual of Stylesometopic}}</Infoboxes]] contains additional style guidelinesnowiki> template (like {{tl|Infobox building}}). See [[WP:List of infoboxes]] and [[:Category:Infobox templates]] for lists of prepared topic-specific
For <code><nowiki>[[Template:Infobox sometopic]]</nowiki></code>, template code then looks like this, simplified:<pre>{{Infobox| name = {{{name|{{PAGENAME}}}}}| image = {{{image|}}}| caption1 = {{{caption|}}}}}} | label1 = Former names| data1 = {{{former_names|}}} | header2 = General information | label3 = Status| data3 = {{{status|}}}... <!-- etc. -->}}</pre> == Optional control parameters ==
; name : If this parameter is present, "view/discuss/edit" links will be added to the bottom of the infobox, pointing to the named page. You 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 : See the [[#Embedding|Embedding]] section for details. If this is set to "yes", this child infobox should be titled but have no name parameter. This parameter is empty by default, set it to "yes" to activate it.
Anonymous user