Template:Scrolling table/top: Difference between revisions

From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
(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)
No edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{| class="wikitable" style="float:left; margin:0; margin-right:-1px; {{{style|}}}"<!--
<includeonly><templatestyles src="Scrolling table/styles.css"/>
                           -->{{Scrolling table/hrow|{{{first|&nbsp;}}} }}<!--
{| class="wikitable scrolling" style="float:left !important; margin:0; margin-right:-1px; {{{style|}}}"<!--
-->{{#fornumargs:number|value|{{#if: {{#var:value}} | {{#ifexpr:{{#var:number}}>1|{{zwsp}}}}{{Scrolling table/hrow| {{#var:value}} }} }} }}</includeonly><noinclude>
                           -->{{Scrolling table/hrow|{{{first|&nbsp;}}} |style={{{fhstyle|}}}}}<!--
 
-->{{#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>

Latest revision as of 20:47, September 30, 2021

See {{scrolling table}} for usage instructions.