Difference between revisions of "Template:infobox"

Explain xkcd: It's 'cause you're dumb.
Jump to: navigation, search
m (Tnavbar --> Navbar)
m (Protected "Template:infobox": Excessive vandalism (‎[edit=autoconfirmed] (indefinite) ‎[move=autoconfirmed] (indefinite)))
 
(71 intermediate revisions by 16 users not shown)
Line 1: Line 1:
<table class="infobox {{{bodyclass|}}}" cellspacing="5" style="width: 22em; text-align: left; font-size: 88%; line-height: 1.5em; {{{bodystyle|}}}"><!--
+
{{#ifeq:{{{child|}}}|yes||<table class="infobox {{{bodyclass|}}}" cellspacing="5" style="width:22em; {{#if:{{{float|}}}|float: {{{float}}}; clear: {{#ifeq:{{{float|}}}|none|both|{{{float}}}}}; margin: 0 0 1em 1em;}} {{{bodystyle|}}}"><!--
 
  Caption
 
  Caption
-->{{#if:{{{title|}}}|<caption class="{{{titleclass|}}}" style="font-size: 125%; font-weight: bold; {{{titlestyle|}}}">{{{title}}}</caption>}}
+
-->{{#if:{{{title|}}}|<caption class="{{{titleclass|}}}" style="{{{titlestyle|}}}">{{{title}}}</caption>}}<!--
<!--
 
 
  Header
 
  Header
-->{{#if:{{{above|}}}|<tr><td colspan="2" class="{{{aboveclass|}}}" style="text-align:center; font-size: 125%; font-weight: bold; {{{abovestyle|}}}">{{{above}}}</td></tr>}}<!--
+
-->{{#if:{{{above|}}}|<tr><th colspan=2 class="{{{aboveclass|}}}" style="text-align:center; font-size:125%; font-weight:bold; {{{abovestyle|}}}">{{{above}}}</th></tr>}}
Subheader
+
}}{{#ifeq:{{{child|}}}|yes|{{#if:{{{title|}}}|'''{{{title}}}'''}}}}<!--
-->{{#if:{{{subheader|}}}|<tr><td colspan="2" class="{{{subheaderclass|}}}" style="text-align:center; {{{subheaderstyle|}}}">{{{subheader}}}</td></tr
+
Subheader1
 +
-->{{#if:{{{subheader|{{{subheader1|}}}}}}|{{Infobox/row
 +
|data={{{subheader|{{{subheader1|}}}}}}
 +
|datastyle={{{subheaderstyle|{{{subheaderstyle1|}}}}}}
 +
|class={{{subheaderclass|}}}
 +
|rowclass={{{subheaderrowclass|{{{subheaderrowclass1|}}}}}}
 +
}} }}<!--
 +
Subheader2
 +
-->{{#if:{{{subheader2|}}}|{{Infobox/row
 +
|data={{{subheader2}}}
 +
|datastyle={{{subheaderstyle|{{{subheaderstyle2|}}}}}}
 +
|class={{{subheaderclass|}}}
 +
|rowclass={{{subheaderrowclass2|}}}
 +
}} }}<!--
 +
Image1
 +
-->{{#if:{{{image|{{{image1|}}}}}}|{{Infobox/row
 +
|data={{{image|{{{image1}}} }}}{{#if:{{{caption|{{{caption1|}}}}}}|<br /
 
  Navbar
 
  Navbar
-->{{#if:{{{name|}}}|<tr><td style="text-align:right;" colspan="2">{{Navbar|{{{name}}}|noedit={{{noedit|0}}}}}</td></tr>}}
+
-->{{#if:{{{name|}}}|<tr><td colspan=2 style="text-align:right">{{navbar|{{{name}}}|mini=1}}</td></tr>}}
</table><noinclude>
+
{{#ifeq:{{{child|}}}|yes||</table>}}{{#switch:{{lc:{{{italic title|¬}}}}}
{{pp-template|small=yes}}
+
|¬|no      = <!-- no italic title -->
 +
||force|yes = {{italic title|force={{#ifeq:{{lc:{{{italic title|}}}}}|force|true}}}}
 +
}}<includeonly>{{#ifeq:{{{decat|}}}|yes||{{#if:{{{data1|}}}{{{data2|}}}{{{data3|}}}{{{data4|}}}{{{data5|}}}{{{data6|}}}{{{data7|}}}{{{data8|}}}{{{data9|}}}{{{data10|}}}{{{data11|}}}{{{data12|}}}{{{data13|}}}{{{data14|}}}{{{data15|}}}{{{data16|}}}{{{data17|}}}{{{data18|}}}{{{data19|}}}{{{data20|}}}{{{data21|}}}{{{data22|}}}{{{data23|}}}{{{data24|}}}{{{data25|}}}{{{data26|}}}{{{data27|}}}{{{data28|}}}{{{data29|}}}{{{data30|}}}{{{data31|}}}{{{data32|}}}{{{data33|}}}{{{data34|}}}{{{data35|}}}{{{data36|}}}{{{data37|}}}{{{data38|}}}{{{data39|}}}{{{data40|}}}{{{data41|}}}{{{data42|}}}{{{data43|}}}{{{data44|}}}{{{data45|}}}{{{data46|}}}{{{data47|}}}{{{data48|}}}{{{data49|}}}{{{data50|}}}{{{data51|}}}{{{data52|}}}{{{data53|}}}{{{data54|}}}{{{data55|}}}{{{data56|}}}{{{data57|}}}{{{data58|}}}{{{data59|}}}{{{data60|}}}{{{data61|}}}{{{data62|}}}{{{data63|}}}{{{data64|}}}{{{data65|}}}{{{data66|}}}{{{data67|}}}{{{data68|}}}{{{data69|}}}{{{data70|}}}{{{data71|}}}{{{data72|}}}{{{data73|}}}{{{data74|}}}{{{data75|}}}{{{data76|}}}{{{data77|}}}{{{data78|}}}{{{data79|}}}{{{data80|}}}||}}}}</includeonly><noinclude>
  
{{documentation}}
+
This page is copied from Wikipedia's {{w|Template:Infobox}}.
<!-- Add categories and interwikis to the /doc subpage, not here! -->
+
 
 +
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 22:13, 25 August 2017

This page is copied from Wikipedia's Template:Infobox.