Template:Infobox/table: Difference between revisions

From Semantic Stargate Wiki
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>{{#if: {{{if|{{{1|}}}{{{2|}}}{{{3|}}}{{{4|}}}{{{5|}}}{{{6|}}}{{{7|}}}{{{8|}}}}}}|<table width=100% style="border: 0; padding: 0;"><tr class="{{{row-class|}}}">
<includeonly>{{#vardefine: common width | {{#if: {{{8|}}} | {{#expr: 100/8 }} | {{#if: {{{7|}}} | {{#expr: 100/7 }} | {{#if: {{{6|}}} | {{#expr: 100/6 }} | {{#if: {{{5|}}} | {{#expr: 100/5 }} | {{#if: {{{4|}}} | {{#expr: 100/4 }} | {{#if: {{{3|}}} | {{#expr: 100/3 }} | {{#if: {{{2|}}} | {{#expr: 100/2 }} | 100 }} }} }} }} }} }} }} }}{{#if: {{{if|{{{1|}}}{{{2|}}}{{{3|}}}{{{4|}}}{{{5|}}}{{{6|}}}{{{7|}}}{{{8|}}}}}}|<table width=100% style="border: 0; padding: 0;"><tr class="{{{row-class|}}}" style="vertical-align: top;">
{{#if:{{{class|}}}|<th scope="row" {{#if: {{{width|}}}|style="width:{{{width|}}}em;"}}>{{{1|}}}</th>|<td class="data" style="text-align: left; {{#if: {{{2|}}} | border-right: solid 1px #aaa; }}">{{{1|}}}</td>}}<td class="data" style="text-align: left; {{#if: {{{3|}}} | border-right: solid 1px #aaa; }}>{{{2|}}}</td>{{#if:{{{3|}}}|<td class="data" style="text-align: left; {{#if: {{{4|}}} | border-right: solid 1px #aaa; }}>{{{3}}}</td>}}{{#if:{{{4|}}}|<td class="data" style="text-align: left; {{#if: {{{5|}}} | border-right: solid 1px #aaa; }}>{{{4}}}</td>}}{{#if:{{{5|}}}|<td class="data" style="text-align: left; {{#if: {{{6|}}} | border-right: solid 1px #aaa; }}>{{{5}}}</td>}}{{#if:{{{6|}}}|<td class="data" style="text-align: left; {{#if: {{{7|}}} | border-right: solid 1px #aaa; }}>{{{6}}}</td>}}{{#if:{{{7|}}}|<td class="data">{{{7}}}</td>}}{{#if:{{{8|}}}|<td class="data" style="text-align: left;">{{{8}}}</td>}}
{{#if:{{{class|}}}|<th scope="row" {{#if: {{{width|}}}|style="width:{{{width|}}}em;"}}>{{{1|}}}</th>|<td class="data" width={{#var:common width}}% style="text-align: left; {{#if: {{{2|}}} | border-right: solid 1px #aaa; }}">{{{1|}}}</td>}}<td class="data" width={{#var:common width}}% style="text-align: left; {{#if: {{{3|}}} | border-right: solid 1px #aaa; }}>{{{2|}}}</td>{{#if:{{{3|}}}|<td class="data" width={{#var:common width}}% style="text-align: left; {{#if: {{{4|}}} | border-right: solid 1px #aaa; }}>{{{3}}}</td>}}{{#if:{{{4|}}}|<td class="data" width={{#var:common width}}% style="text-align: left; {{#if: {{{5|}}} | border-right: solid 1px #aaa; }}>{{{4}}}</td>}}{{#if:{{{5|}}}|<td class="data" width={{#var:common width}}% style="text-align: left; {{#if: {{{6|}}} | border-right: solid 1px #aaa; }}>{{{5}}}</td>}}{{#if:{{{6|}}}|<td class="data" width={{#var:common width}}% style="text-align: left; {{#if: {{{7|}}} | border-right: solid 1px #aaa; }}>{{{6}}}</td>}}{{#if:{{{7|}}}|<td class="data" width={{#var:common width}}% style="text-align: left; {{#if: {{{8|}}} | border-right: solid 1px #aaa; }}>{{{7}}}</td>}}{{#if:{{{8|}}}|<td class="data" width={{#var:common width}}% style="text-align: left;">{{{8}}}</td>}}
</tr>}}</table></includeonly><noinclude>{{Documentation}}</noinclude>
</tr>}}</table></includeonly><noinclude>{{Documentation}}</noinclude>

Latest revision as of 12:48, 23 May 2021

Documentation icon Template documentation[create]