Template:Scrolling table/top: Difference between revisions

m
This should do what I want
(Changed to allow for an indefinite amount of row headers. Logic also made no sense. Check if param is *non-empty*, if true insert template with param value, if param is *empty* use default value... but we just verified it was non-empty)
m (This should do what I want)
Line 1: Line 1:
<includeonly>{| class="wikitable" style="float:left; margin:0; margin-right:-1px; {{{style|}}}"<!--
<includeonly>{| class="wikitable" style="float:left; margin:0; margin-right:-1px; {{{style|}}}"<!--
                           -->{{Scrolling table/hrow|{{{first|&nbsp;}}} }}<!--
                           -->{{Scrolling table/hrow|{{{first|&nbsp;}}} |style={{{hstyle|}}}}}<!--
-->{{#fornumargs:number|value|{{#if: {{#var:value}} | {{#ifexpr:{{#var:number}}>1|{{zwsp}}}}{{Scrolling table/hrow| {{#var:value}} }} }} }}</includeonly><noinclude>
-->{{#fornumargs:number|value|{{#if: {{#var:value}} | {{#ifexpr:{{#var:number}}>1|{{zwsp}}}}{{Scrolling table/hrow| {{#var:value}} |style={{{hstyle|}}}}} }} }}</includeonly><noinclude>


See {{tl|scrolling table}} for usage instructions.
See {{tl|scrolling table}} for usage instructions.
</noinclude>
</noinclude>
32,658

edits