Template:Infobox: Difference between revisions

m regrettably for IE and Dillo it is simply not possible to hide a parameter if undefined (only if empty)
Trying to implement an modular infobox
Tag: Replaced
 
(199 intermediate revisions by 57 users not shown)
Line 1: Line 1:
{| class="infobox" style="width:22em;"
<includeonly>{{infobox start|{{{class|}}}}}
! colspan="2" style="font-size:larger;" | {{{name}}}
{{infobox header
|-
| name = {{{name|{{PAGENAME}}}}}
| colspan="2" style="text-align:center;" | {{{image}}}<br />{{{caption}}}
| wideimage = {{{image|{{{name|{{PAGENAME}}}}}.png}}}
|- style="vertical-align:top;"
| description = {{{description|}}}
| '''Data 1:'''
}}
| {{{data 1}}}
 
|- style="vertical-align:top;"
{{infobox section|{{#if:{{{section1|}}}|{{{section1}}}|Infos}}}}
| '''Data 2:'''
{{infobox row|{{{info1|}}}|{{{info1value|}}}|{{{info1value|}}}}}
| {{{data 2}}}
{{infobox section|{{{section2}}}|{{{section2|}}}}}
|- class="hiddenStructure{{{data 3}}}" style="vertical-align:top;"
{{infobox row|{{{info2|}}}|{{{info2value|}}}|{{{info2value|}}}}}
| '''Data 3 (hidden if empty):'''
{{infobox section|{{{section3}}}|{{{section3|}}}}}
| {{{data 3}}}
{{infobox row|{{{info3|}}}|{{{info3value|}}}|{{{info3value|}}}}}
|- style="vertical-align:top;"
{{infobox section|{{{section4}}}|{{{section4|}}}}}
| colspan="2" style="font-size:smaller;" | {{footnote}}
{{infobox row|{{{info4|}}}|{{{info4value|}}}|{{{info4value|}}}}}
|}
{{infobox section|{{{section5}}}|{{{section5|}}}}}
<br style="clear:both;" />
{{infobox row|{{{info5|}}}|{{{info5value|}}}|{{{info5value|}}}}}
<pre>
{{infobox section|{{{section6}}}|{{{section6|}}}}}
{| class="infobox" style="width:22em;"
{{infobox row|{{{info6|}}}|{{{info6value|}}}|{{{info6value|}}}}}
! colspan="2" style="font-size:larger;" | {{{name}}}
{{infobox section|{{{section7}}}|{{{section7|}}}}}
|-
{{infobox row|{{{info7|}}}|{{{info7value|}}}|{{{info7value|}}}}}
| colspan="2" style="text-align:center;" | {{{image}}}<br />{{{caption}}}
{{infobox section|{{{section8}}}|{{{section8|}}}}}
|- style="vertical-align:top;"
{{infobox row|{{{info8|}}}|{{{info8value|}}}|{{{info8value|}}}}}
| '''Data 1:'''
{{infobox section|{{{section9}}}|{{{section9|}}}}}
| {{{data 1}}}
{{infobox row|{{{info9|}}}|{{{info9value|}}}|{{{info9value|}}}}}
|- style="vertical-align:top;"
{{infobox section|{{{section10}}}|{{{section10|}}}}}
| '''Data 2:'''
{{infobox row|{{{info10|}}}|{{{info10value|}}}|{{{info10value|}}}}}
| {{{data 2}}}
{{infobox end}}</includeonly><noinclude>
|- class="hiddenStructure{{{data 3}}}" style="vertical-align:top;"
{{doc}}
| '''Data 3 (hidden if empty):'''
[[Category:Infobox templates]]</noinclude>
| {{{data 3}}}
|- style="vertical-align:top;"
| colspan="2" style="font-size:smaller;" | {{footnote}}
|}
</pre>