Difference between revisions of "Template:RevisionChanger"

From Larnitech wiki page
Jump to navigation Jump to search
Line 1: Line 1:
<noinclude>
+
{{#vardefine:link|{{#replace:{{#replace:{{BASEPAGENAME}}|.A|}}|.B|}} }}{{#vardefine:txtA|{{#ifeq: {{BASEPAGENAME}} | {{#var:link}}.A|'''A'''|A}} }}{{#vardefine:txtB|{{#ifeq: {{BASEPAGENAME}} | {{#var:link}}.B|'''B'''|B}} }}{{#vardefine:txtC|{{#ifeq: {{BASEPAGENAME}} | {{#var:link}}|'''C'''|C}} }}
{{#vardefine:link|{{#replace:{{#replace:{{BASEPAGENAME}}|.A|}}|.B|}} }}
 
{{#vardefine:txtA|{{#ifeq: {{BASEPAGENAME}} | {{#var:link}}.A|'''A'''|A}} }}
 
{{#vardefine:txtB|{{#ifeq: {{BASEPAGENAME}} | {{#var:link}}.B|'''B'''|B}} }}
 
{{#vardefine:txtC|{{#ifeq: {{BASEPAGENAME}} | {{#var:link}}|'''C'''|C}} }}
 
</noinclude>
 
 
<div style="font-size:2em">'''Revision:'''<div style="display:{{#if: {{{hasA|}}} |inline-block|none}};">[[{{#var:link}}.A|{{#var:txtA}}]]</div><div style="display:{{#if: {{{hasB|}}} |inline-block|none}};">/[[{{#var:link}}.B|{{#var:txtB}}]]</div><div style="display:{{#if: {{{hasC|}}} |inline-block|none}};"  >/[[{{#var:link}}|{{#var:txtC}}]]</div></div>
 
<div style="font-size:2em">'''Revision:'''<div style="display:{{#if: {{{hasA|}}} |inline-block|none}};">[[{{#var:link}}.A|{{#var:txtA}}]]</div><div style="display:{{#if: {{{hasB|}}} |inline-block|none}};">/[[{{#var:link}}.B|{{#var:txtB}}]]</div><div style="display:{{#if: {{{hasC|}}} |inline-block|none}};"  >/[[{{#var:link}}|{{#var:txtC}}]]</div></div>
 
<noinclude>
 
<noinclude>

Revision as of 08:12, 23 July 2021

Revision:
/B
/C
Revision:
/B
/C

RevisionChanger A B C

Example: {{RevisionChanger | hasA = 1 | hasB = 1 | hasC = 1}}