Template:History: Difference between revisions

643 bytes added ,  25 March 2023
m
Added snapshots.
imported>Ttv pedro270707
No edit summary
imported>Ttv pedro270707
m (Added snapshots.)
Line 9: Line 9:
   }}
   }}
}}
}}
}}{{#ifeq: {{#var: history}} | 1 | }}<!--
}}<!--
--><tr><th rowspan="{{#var:history-rows}}">[[{{{1|}}}]]</th></tr><!--
-->{{#if: {{{snap|}}} |
{{#ifeq: "{{{1|}}}" | "{{#var:history-ver|}}" | |
{{#vardefine:history-index|{{#expr:{{#var:history-index|0}}+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:history-rows}}">[[{{{snap|}}}]]</th></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}}}}}}<!--
-->{{
-->{{
#fornumargs: argnum | argval | {{
#fornumargs: argnum | argval | {{