Difference between revisions of "Template:Infobox"

From Archiepyedia
Jump to navigation Jump to search
en>Adrignola
m (Protected "Template:Infobox": Uses complex features of wiki syntax ([edit=sysop] (indefinite) [move=sysop] (indefinite)))
 
en>Jonathan
m (1 revision)
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; {{{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|}}}|{{Infobox/row
 
-->{{#if:{{{above|}}}|{{Infobox/row
 
  |header={{{above}}} |headerstyle=text-align:center; font-size:125%; font-weight:bold; {{{abovestyle|}}}
 
  |header={{{above}}} |headerstyle=text-align:center; font-size:125%; font-weight:bold; {{{abovestyle|}}}
 
  |class={{{aboveclass|}}} |rowclass={{{aboverowclass|}}}
 
  |class={{{aboveclass|}}} |rowclass={{{aboverowclass|}}}
}} }}<!--
+
}} }} }}{{#ifeq:{{{child|}}}|yes|{{#if:{{{title|}}}|'''{{{title}}}'''}}}}<!--
 
  Subheader1
 
  Subheader1
-->{{#if:{{{subheader|}}}|{{Infobox/row
+
-->{{#if:{{{subheader|{{{subheader1|}}}}}}|{{Infobox/row
  |data={{{subheader}}}     |datastyle={{{subheaderstyle|}}}
+
  |data={{{subheader|{{{subheader1|}}}}}}
  |class={{{subheaderclass|}}}   |rowclass={{{subheaderrowclass1|}}}
+
|datastyle={{{subheaderstyle|}}}
 +
  |class={{{subheaderclass|}}}
 +
|rowclass={{{subheaderrowclass|{{{subheaderrowclass1|}}}}}}
 
}} }}<!--
 
}} }}<!--
 
  Subheader2
 
  Subheader2
 
-->{{#if:{{{subheader2|}}}|{{Infobox/row
 
-->{{#if:{{{subheader2|}}}|{{Infobox/row
  |data={{{subheader2}}}     |datastyle={{{subheaderstyle|}}}
+
  |data={{{subheader2}}}
  |class={{{subheaderclass|}}}   |rowclass={{{subheaderrowclass2|}}}
+
|datastyle={{{subheaderstyle|}}}
 +
  |class={{{subheaderclass|}}}
 +
|rowclass={{{subheaderrowclass2|}}}
 
}} }}<!--
 
}} }}<!--
 
  Image1
 
  Image1
 
-->{{#if:{{{image|{{{image1|}}}}}}|{{Infobox/row
 
-->{{#if:{{{image|{{{image1|}}}}}}|{{Infobox/row
  |data={{{image|{{{image1}}} }}}{{#if:{{{caption|{{{caption1|}}}}}}|<br /><span style="{{{captionstyle|}}}">{{{caption|{{{caption1}}}}}}</span>}}     |datastyle={{{imagestyle|}}}
+
  |data={{{image|{{{image1}}} }}}{{#if:{{{caption|{{{caption1|}}}}}}|<br /><span style="{{{captionstyle|}}}">{{{caption|{{{caption1}}}}}}</span>}}
  |class={{{imageclass|}}}   |rowclass={{{imagerowclass1|}}}
+
|datastyle={{{imagestyle|}}}
 +
  |class={{{imageclass|}}}
 +
|rowclass={{{imagerowclass1|}}}
 
}} }}<!--
 
}} }}<!--
 
  Image2
 
  Image2
 
-->{{#if:{{{image2|}}}|{{Infobox/row
 
-->{{#if:{{{image2|}}}|{{Infobox/row
  |data={{{image2}}}{{#if:{{{caption2|}}}|<br /><span style="{{{captionstyle|}}}">{{{caption2}}}</span>}}     |datastyle={{{imagestyle|}}}
+
  |data={{{image2}}}{{#if:{{{caption2|}}}|<br /><span style="{{{captionstyle|}}}">{{{caption2}}}</span>}}
  |class={{{imageclass|}}}   |rowclass={{{imagerowclass2|}}}
+
|datastyle={{{imagestyle|}}}
 +
  |class={{{imageclass|}}}
 +
|rowclass={{{imagerowclass2|}}}
 
}} }}<!--
 
}} }}<!--
 
-->{{Infobox/row
 
-->{{Infobox/row
Line 431: Line 439:
 
  Navbar
 
  Navbar
 
-->{{#if:{{{name|}}}|<tr><td colspan="2" style="text-align:right">{{navbar|{{{name}}}|mini=1}}</td></tr>}}
 
-->{{#if:{{{name|}}}|<tr><td colspan="2" style="text-align:right">{{navbar|{{{name}}}|mini=1}}</td></tr>}}
</table><noinclude>{{documentation}}</noinclude>
+
{{#ifeq:{{{child|}}}|yes||</table>}}{{#switch:{{lc:{{{italic title|¬}}}}}
 +
|¬|no      = <!-- no italic title -->
 +
||force|yes = {{italic title|force={{#ifeq:{{lc:{{{italic title|}}}}}|force|true}}}}
 +
}}<noinclude>
 +
{{documentation}}
 +
</noinclude>

Revision as of 21:58, 29 April 2011

Lua error in Module:TNT at line 159: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Documentation.tab.