Template:Infobox: Difference between revisions

Template page
(Added first draft of row code)
m (Attempt to fix whitespace problem)
Line 1: Line 1:
<table class="infobox" style="border: 1px solid #aaa; border-spacing: 3px; background-color: #f9f9f9; color: black; margin: 0.5em 0 0.5em 1em; padding: 0.2em; float: right; clear: right; font-size: 88%; line-height: 1.5em; width:22em">
<table class="infobox" style="border: 1px solid #aaa; border-spacing: 3px; background-color: #f9f9f9; color: black; margin: 0.5em 0 0.5em 1em; padding: 0.2em; float: right; clear: right; font-size: 88%; line-height: 1.5em; width:22em"><!--
{{#if:{{{title|}}}|<caption>{{{title}}}</caption>}}
-->{{#if:{{{title|}}}|<caption>{{{title}}}</caption>}}<!--
{{#if:{{{above|}}}|<tr><th colspan="2" style="text-align:center;font-size:125%;font-weight:bold">{{{above}}}</th></tr>}}<!--
-->{{#if:{{{above|}}}|<tr><th colspan="2" style="text-align:center;font-size:125%;font-weight:bold">{{{above}}}</th></tr>}}<!--
   Row 1
   Row 1
-->{{#if: {{{header1|}}}{{{data1|}}}|<tr>{{#if: {{{header1|}}}|<th colspan="2" style="text-align: center">{{{header1}}}</th>|{{#if: {{{label1|}}}|<th scope="row" style="width: 33%">{{{label1}}}</th><td>{{{data1}}}</td>|<td colspan="2" style="text-align: center">{{{data1}}}</td>}}}}</tr>}}
-->{{#if: {{{header1|}}}{{{data1|}}}|<tr>{{#if: {{{header1|}}}|<th colspan="2" style="text-align: center">{{{header1}}}</th>|{{#if: {{{label1|}}}|<th scope="row" style="width: 33%">{{{label1}}}</th><td>{{{data1}}}</td>|<td colspan="2" style="text-align: center">{{{data1}}}</td>}}}}</tr>}}

Revision as of 22:01, 27 August 2016