Difference between revisions of "Template:Infobox"

From Ava Zinn Wiki
Jump to: navigation, search
[unchecked revision][unchecked revision]
(updating from sandbox per request)
 
(48 intermediate revisions by 17 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="3" style="{{#ifeq:{{{subbox|}}}|yes
 +
|padding:0; border:none; border-spacing:3px; margin:-3px; width:auto; min-width:100%; font-size:100%; clear:none; float:none; background-color:transparent;
 +
|border-spacing: 3px; 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|}}}|<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|{{{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 /><span style="{{{captionstyle|}}}">{{{caption|{{{caption1}}}}}}</span>}}
 +
|datastyle={{{imagestyle|}}}
 +
|class={{{imageclass|}}}
 +
|rowclass={{{imagerowclass1|}}}
 +
}} }}<!--
 +
Image2
 +
-->{{#if:{{{image2|}}}|{{Infobox/row
 +
|data={{{image2}}}{{#if:{

Latest revision as of 16:16, 7 September 2018

Documentation icon Template documentation[create]