Template:History: Difference between revisions

146 bytes added ,  25 March 2023
m
no edit summary
imported>Ttv pedro270707
m (I have no idea why this happens, I hate tables and wikitext too! ☺)
imported>Ttv pedro270707
mNo edit summary
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>{{#ifeq: {{#var:history-rows}} | 2 | | </tr> }}
}}<tr><th colspan="1" rowspan="{{#var:history-rows}}">[[{{#if: {{#pos:{{{snap|}}}|pre-}} | {{#var:history-ver}} {{{snap|}}} | {{#if: {{#pos:{{{snap|}}}|Pre-}} | {{#var:history-ver}} {{{snap|}}} | {{{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}}}}}}<!--
-->{{
-->{{