Template:History: Difference between revisions

m
I have no idea why this happens, I hate tables and wikitext too! ☺
imported>Ttv pedro270707
m (Added snapshots.)
imported>Ttv pedro270707
m (I have no idea why this happens, I hate tables and wikitext too! ☺)
Line 15: Line 15:
{{#vardefine:history-ver|{{{1|}}}}}
{{#vardefine:history-ver|{{{1|}}}}}
<tr><th colspan="1" rowspan="{{#var_final:history-rowspan-{{#var:history-index}}}}">[[{{{1|}}}]]</th></tr>
<tr><th colspan="1" rowspan="{{#var_final:history-rowspan-{{#var:history-index}}}}">[[{{{1|}}}]]</th></tr>
}}<tr><th colspan="1" rowspan="{{#var:history-rows}}">[[{{{snap|}}}]]</th></tr>
}}<tr><th colspan="1" rowspan="{{#var:history-rows}}">[[{{{snap|}}}]]</th>{{#ifeq: {{#var:history-rows}} | 2 | | </tr> }}
| {{#vardefine:history-index|{{#expr:{{#var:history-index|0}}+1}}}}{{#vardefine:history-ver|{{{1|}}}}}<tr><th colspan="2" rowspan="{{#var:history-rows}}">[[{{{1|}}}]]</th></tr> }}<!-- define history rowspan (outside of if statement): -->{{#vardefine:history-rowspan-{{#var:history-index}}|{{#expr:{{#var:history-rowspan-{{#var:history-index}}|1}}+{{#var:history-rows}}}}}}<!--
| {{#vardefine:history-index|{{#expr:{{#var:history-index|0}}+1}}}}{{#vardefine:history-ver|{{{1|}}}}}<tr><th colspan="2" rowspan="{{#var:history-rows}}">[[{{{1|}}}]]</th></tr> }}<!-- define history rowspan (outside of if statement): -->{{#vardefine:history-rowspan-{{#var:history-index}}|{{#expr:{{#var:history-rowspan-{{#var:history-index}}|1}}+{{#var:history-rows}}}}}}<!--
-->{{
-->{{
#fornumargs: argnum | argval | {{
#fornumargs: argnum | argval | {{
#switch: {{#var:argnum}}
#switch: {{#var:argnum}}
| 1 = <!-- a -->
| 1 = <!-- 1 is the version -->
| #default = <tr><td>{{#var:argval}}</td></tr>
| #default = {{#ifeq: {{#var:history-rows}} | 2 | | <tr> }}<td>{{#var:argval}}</td></tr>
}}
}}
}}{{#ifeq: {{Boolean|{{{foot|}}}}} | y | </table>{{#vardefine: history|}} }}</includeonly><noinclude>
}}{{#ifeq: {{Boolean|{{{foot|}}}}} | y | </table>{{#vardefine: history|}} }}</includeonly><noinclude>