Template:History: Difference between revisions

84 bytes removed ,  25 March 2023
m
no edit summary
imported>Ttv pedro270707
mNo edit summary
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}}">[[{{#if: {{#pos:{{{snap|}}}|pre-}} | {{#var:history-ver}} {{{snap|}}}{{!}}{{{snap|}}} | {{#if: {{#pos:{{{snap|}}}|Pre-}} | {{#var:history-ver}} {{{snap|}}}{{!}}{{{snap|}}} | {{{snap|}}} }} }}]]</th>{{#ifeq: {{#var:history-rows}} | 2 | | </tr> }}
}}<tr><th colspan="1" rowspan="{{#var:history-rows}}">[[{{#if: {{#pos:{{{snap|}}}|pre-}} | {{#var:history-ver}} {{{snap|}}}{{!}}{{{snap|}}} | {{#if: {{#pos:{{{snap|}}}|Pre-}} | {{#var:history-ver}} {{{snap|}}}{{!}}{{{snap|}}} | {{{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}}}}}}<!--
| {{#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}}}}}}<!--
-->{{
-->{{
Line 21: Line 21:
#switch: {{#var:argnum}}
#switch: {{#var:argnum}}
| 1 = <!-- 1 is the version -->
| 1 = <!-- 1 is the version -->
| #default = {{#ifeq: {{#var:history-rows}} | 2 | | <tr> }}<td>{{#var:argval}}</td></tr>
| #default = <tr><td>{{#var:argval}}</td></tr>
}}
}}
}}{{#ifeq: {{Boolean|{{{foot|}}}}} | y | </table>{{#vardefine: history|}} }}</includeonly><noinclude>
}}{{#ifeq: {{Boolean|{{{foot|}}}}} | y | </table>{{#vardefine: history|}} }}</includeonly><noinclude>