Difference between revisions of "Template:Table"

From From The Ashes Wiki
Jump to: navigation, search
m
Line 1: Line 1:
 
[[Category:Template]]{{#vardefine:current|1}}
 
[[Category:Template]]{{#vardefine:current|1}}
 
<table class="{{{class|templatetable}}}" style="{{{style|none}}}">
 
<table class="{{{class|templatetable}}}" style="{{{style|none}}}">
 +
<tr>
 
{{#fornumargs: number
 
{{#fornumargs: number
 
|value
 
|value
|{{#ifeq:{{#var:current}}|1|<tr>|}}<td>{{#var:value}}</td>{{#ifeq:{{#var:current}}|{{{cols|2}}}|</tr>{{#vardefine:current|1}}|{{#vardefine:current|{{#expr:{{#var:current}}+1}}}}}}
+
|<td>{{#var:value}}</td>{{#ifeq:{{#var:current}}|{{{cols|2}}}|</tr><tr>{{#vardefine:current|1}}|{{#vardefine:current|{{#expr:{{#var:current}}+1}}}}}}
 
}}
 
}}
 +
</tr>
 
</table>
 
</table>

Revision as of 04:58, 19 March 2018