Difference between revisions of "Template:Infobox"

From AlliedModders Wiki
Jump to: navigation, search
(Created page with '{{#ifeq:{{{child|}}}|yes||<table class="infobox {{{bodyclass|}}}" cellspacing="5" style="width:22em; {{{bodystyle|}}}"><!-- Caption -->{{#if:{{{title|}}}|<caption class="{{{titl...')
 
 
Line 1: Line 1:
{{#ifeq:{{{child|}}}|yes||<table class="infobox {{{bodyclass|}}}" cellspacing="5" style="width:22em; {{{bodystyle|}}}"><!--
+
{{{!}} class="infobox {{{bodyclass|}}}" cellspacing="5" style="width: 22em; text-align: left; font-size: 88%; line-height: 1.5em; {{{bodystyle|}}}"<!--
 
  Caption
 
  Caption
-->{{#if:{{{title|}}}|<caption class="{{{titleclass|}}}" style="{{{titlestyle|}}}">{{{title}}}</caption>}}<!--
+
-->{{#if:{{{title|}}}|<nowiki/>
 +
{{!}}+
 +
{{!}}class="{{{titleclass|}}}" style="font-size: 125%; font-weight: bold; {{{titlestyle|}}}"{{!}}{{{title}}} }}<!--
 
  Header
 
  Header
-->{{#if:{{{above|}}}|{{Infobox/row
+
-->{{#if:{{{above|}}}|<nowiki/>
|header={{{above}}} |headerstyle=text-align:center; font-size:125%; font-weight:bold; {{{abovestyle|}}}
+
{{!}}-
|class={{{aboveclass|}}} |rowclass={{{aboverowclass|}}}
+
{{!}}colspan="2" class="{{{aboveclass|}}}" style="text-align:center; font-size: 125%; font-weight: bold; {{{abovestyle|}}}"{{!}}{{{above}}} }}<!--
}} }} }}{{#ifeq:{{{child|}}}|yes|{{#if:{{{title|}}}|'''{{{title}}}'''}}}}<!--
+
Subheader
Subheader1
+
-->{{#if:{{{subheader|}}}|<nowiki/>
-->{{#if:{{{subheader|{{{subheader1|}}}}}}|{{Infobox/row
+
{{!}}-
|data={{{subheader|{{{subheader1|}}}}}}
+
{{!}}colspan="2" class="{{{subheaderclass|}}}" style="text-align:center; {{{subheaderstyle|}}}"{{!}}{{{subheader}}} }}<!--
|datastyle={{{subheaderstyle|}}}
+
Image
|class={{{subheaderclass|}}}
+
-->{{#if:{{{image|}}}|<nowiki/>
|rowclass={{{subheaderrowclass|{{{subheaderrowclass1|}}}}}}
+
{{!}}-
}} }}<!--
+
{{!}}colspan="2" class="{{{imageclass|}}}" style="text-align:center; {{{imagestyle|}}}"{{!}} {{{image}}} {{#if:{{{caption|}}}|<br />
Subheader2
+
<span style="{{{captionstyle|}}}">{{{caption}}}</span> }} }}<!--
-->{{#if:{{{subheader2|}}}|{{Infobox/row
+
Row 1
|data={{{subheader2}}}
+
-->{{#if:{{{header1|}}}|<nowiki/>
|datastyle={{{subheaderstyle|}}}
+
{{!}}-
|class={{{subheaderclass|}}}
+
! colspan="2" style="text-align:center; {{{headerstyle|}}}"{{!}}{{{header1|}}} }}<!--
|rowclass={{{subheaderrowclass2|}}}
+
-->{{#if:{{{label1|}}}|{{#if:{{{data1|}}}|<nowiki/>
}} }}<!--
+
{{!}}-
Image1
+
! style="{{{labelstyle|}}}"{{!}}{{{label1|}}}
-->{{#if:{{{image|{{{image1|}}}}}}|{{Infobox/row
+
{{!}} class="{{{class1|}}}" style="{{{datastyle|}}}"{{!}}{{{data1|}}} }}|  {{#if:{{{data1|}}}|<nowiki/>
|data={{{image|{{{image1}}} }}}{{#if:{{{caption|{{{caption1|}}}}}}|<br /><span style="{{{captionstyle|}}}">{{
+
{{!}}-
 +
{{!}}colspan="2" class="{{{class1|}}}" style="text-align:center; {{{datastyle|}}}"{{!}}{{{data1|}}} }} }}<!--
 +
Row 2
 +
-->{{#if:{{{header2|}}}|<nowiki/>
 +
{{!}}-
 +
! colspan="2" style="text-align:center; {{{headerstyle|}}}"{{!}}{{{header2|}}} }}<!--
 +
-->{{#if:{{{label2|}}}|{{#if:{{{data2|}}}|<nowiki/>
 +
{{!}}-
 +
! style="{{{labelstyle|}}}"{{!}}{{{label2|}}}
 +
{{!}} class="{{{class2|}}}" style="{{{datastyle|}}}"{{!}}{{{data2|}}} }}|  {{#if:{{{data2|}}}|<nowiki/

Latest revision as of 08:46, 13 May 2011