Difference between revisions of "Template:Infobox3cols/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>WOSlinker
(sync)
imported>Redrose64
(add provision for |child=yes)
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; text-align: left; font-size: 88%; line-height: 1.5em; {{{bodystyle|}}}"><!--
 
  Caption
 
  Caption
 
-->{{#if:{{{title|}}}|<caption class="{{{titleclass|}}}" style="font-size: 125%; font-weight: bold; {{{titlestyle|}}}">{{{title}}}</caption>}}<!--
 
-->{{#if:{{{title|}}}|<caption class="{{{titleclass|}}}" style="font-size: 125%; font-weight: bold; {{{titlestyle|}}}">{{{title}}}</caption>}}<!--
Line 6: Line 6:
 
  |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|{{{title|}}}}}<!--
 
  Subheader1
 
  Subheader1
 
-->{{#if:{{{subheader|}}}|{{Infobox3cols/row
 
-->{{#if:{{{subheader|}}}|{{Infobox3cols/row
Line 316: Line 317:
 
  |data={{navbar|{{{name}}} }}
 
  |data={{navbar|{{{name}}} }}
 
}} }}
 
}} }}
</table><noinclude>{{documentation|content=
+
{{#ifeq:{{{child|}}}|yes||</table>}}<includeonly>{{main other|{{#ifeq:{{{decat|}}}|yes||{{#ifeq:{{{child|}}}|yes|{{#if:{{{title|}}}|[[Category:Articles which use embedded infobox templates with the title parameter]]}}}}}}}}</includeonly><noinclude>{{documentation|content=
  
 
This is a (hopefully) temporary fork of {{tl|infobox}} which provides an option for up to three <code>data</code> attributes per row, in addition to a label: data''x''a, data''x''b and data''x''c. Rows with more than one data item also have the additional "multidatastyle" attribute applied, which can be used to reduce line height et cetera.
 
This is a (hopefully) temporary fork of {{tl|infobox}} which provides an option for up to three <code>data</code> attributes per row, in addition to a label: data''x''a, data''x''b and data''x''c. Rows with more than one data item also have the additional "multidatastyle" attribute applied, which can be used to reduce line height et cetera.

Revision as of 13:21, 19 March 2014

Template:Infobox3cols/rowTemplate:Infobox3cols/row
Template documentation

This is a (hopefully) temporary fork of {{infobox}} which provides an option for up to three data attributes per row, in addition to a label: dataxa, dataxb and dataxc. Rows with more than one data item also have the additional "multidatastyle" attribute applied, which can be used to reduce line height et cetera.