Template:Infobox: Difference between revisions

huh>Primefac
Undid revision 855063393 by Jdlrobson (talk) rather problematic change mentioned on talk page, reverting until it can be sorted
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{#invoke:Infobox|infobox}}<includeonly>{{template other|{{#ifeq:{{PAGENAME}}|Infobox||{{#ifeq:{{str left|{{SUBPAGENAME}}|7}}|Infobox|[[Category:Infobox templates|{{remove first word|{{SUBPAGENAME}}}}]]}}}}|}}</includeonly><noinclude>
<includeonly>{| class="infobox"
{{documentation}}
|+ {{{header|✦ Dossier ✦}}}
<!-- Categories go in the /doc subpage, and interwikis go in Wikidata. -->
|-
| colspan="2" class="infobox-name" | {{{name|{{PAGENAME}}}}}
{{#if:{{{image|}}}|{{!}}-
{{!}} colspan="2" class="infobox-image infobox-portrait" {{!}} [[File:{{{image}}}|170x200px]]
}}
{{#if:{{{caption|}}}|{{!}}-
{{!}} colspan="2" class="infobox-caption" {{!}} {{{caption}}}
}}
{{#if:{{{data1|}}}|{{!}}-
! {{{label1|}}}
{{!}} {{{data1}}}
}}
{{#if:{{{data2|}}}|{{!}}-
! {{{label2|}}}
{{!}} {{{data2}}}
}}
{{#if:{{{data3|}}}|{{!}}-
! {{{label3|}}}
{{!}} {{{data3}}}
}}
{{#if:{{{data4|}}}|{{!}}-
! {{{label4|}}}
{{!}} {{{data4}}}
}}
{{#if:{{{data5|}}}|{{!}}-
! {{{label5|}}}
{{!}} {{{data5}}}
}}
{{#if:{{{data6|}}}|{{!}}-
! {{{label6|}}}
{{!}} {{{data6}}}
}}
{{#if:{{{data7|}}}|{{!}}-
! {{{label7|}}}
{{!}} {{{data7}}}
}}
{{#if:{{{data8|}}}|{{!}}-
! {{{label8|}}}
{{!}} {{{data8}}}
}}
{{#if:{{{data9|}}}|{{!}}-
! {{{label9|}}}
{{!}} {{{data9}}}
}}
{{#if:{{{data10|}}}|{{!}}-
! {{{label10|}}}
{{!}} {{{data10}}}
}}
{{#if:{{{data11|}}}|{{!}}-
! {{{label11|}}}
{{!}} {{{data11}}}
}}
{{#if:{{{data12|}}}|{{!}}-
! {{{label12|}}}
{{!}} {{{data12}}}
}}
{{#if:{{{data13|}}}|{{!}}-
! {{{label13|}}}
{{!}} {{{data13}}}
}}
{{#if:{{{data14|}}}|{{!}}-
! {{{label14|}}}
{{!}} {{{data14}}}
}}
|}</includeonly><noinclude>
== Usage ==
This is the base box. Prefer the type-specific templates (Infobox nation, Infobox religion, Infobox character); they call this one.
<pre>
{{Infobox
| header = ✦ Title bar text ✦
| name  = Name shown under the bar
| image  = Picture.png
| caption = Optional caption
| label1 = Capital  | data1 = [[Example City]]
| label2 = Founded  | data2 = MDCCCIV
}}
</pre>
Rows appear only when their data is filled in. Up to 14 rows (label1/data1 ... label14/data14).
Requires the ParserFunctions extension.
</noinclude>
</noinclude>

Latest revision as of 00:44, 22 November 2026

Usage[edit | edit source]

This is the base box. Prefer the type-specific templates (Infobox nation, Infobox religion, Infobox character); they call this one.

{{Infobox
| header = ✦ Title bar text ✦
| name   = Name shown under the bar
| image  = Picture.png
| caption = Optional caption
| label1 = Capital  | data1 = [[Example City]]
| label2 = Founded  | data2 = MDCCCIV
}}

Rows appear only when their data is filled in. Up to 14 rows (label1/data1 ... label14/data14). Requires the ParserFunctions extension.