Line 1: |
Line 1: |
− | {{#vardefine:link|{{#replace:{{#replace:{{#replace:{{BASEPAGENAME}}|.A/B|}}|.A|}}|.B|}} }}{{#vardefine:txtA|{{#ifeq: {{BASEPAGENAME}} | {{#var:link}}.A|'''A'''|A}} }}{{#vardefine:txtA/B|{{#ifeq: {{BASEPAGENAME}} | {{#var:link}}.A/B|'''A/B'''|A/B}} }}{{#vardefine:txtB|{{#ifeq: {{BASEPAGENAME}} | {{#var:link}}.B|'''B'''|B}} }}{{#vardefine:txtC|{{#ifeq: {{BASEPAGENAME}} | {{#var:link}}|'''C'''|C}} }}<div style="font-size:2em">'''Revision:'''<div style="display:{{#if: {{{hasA|}}} |inline-block|none}};">[[{{#var:link}}.A|{{#var:txtA}}]]</div>{{#if: {{{hasA/B|}}} |inline-block|none}};">[[{{#var:link}}.A/B|{{#var:txtA/B}}]]</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> | + | {{#vardefine:link|{{#replace:{{#replace:{{#replace:{{BASEPAGENAME}}|.A/B|}}|.A|}}|.B|}} }}{{#vardefine:txtA|{{#ifeq: {{BASEPAGENAME}} | {{#var:link}}.A|'''A'''|A}} }}{{#vardefine:txtA/B|{{#ifeq: {{BASEPAGENAME}} | {{#var:link}}.A/B|'''A/B'''|A/B}} }}{{#vardefine:txtB|{{#ifeq: {{BASEPAGENAME}} | {{#var:link}}.B|'''B'''|B}} }}{{#vardefine:txtC|{{#ifeq: {{BASEPAGENAME}} | {{#var:link}}|'''C'''|C}} }}<div style="font-size:2em">'''Revision:'''<div style="display:{{#if: {{{hasA|}}} |inline-block|none}};">[[{{#var:link}}.A|{{#var:txtA}}]]</div><div style="display:{{#if: {{{hasA/B|}}} |inline-block|none}};">[[{{#var:link}}.A/B|{{#var:txtA/B}}]]</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> |
− | <div style="font-size:2em">'''Revision:'''<div style="display:{{#if: {{{hasA|}}} |inline-block|none}};">[[{{#replace:{{#replace:{{BASEPAGENAME}}|.A|}}|.B|}}.A|{{#ifeq: {{BASEPAGENAME}} | {{#replace:{{#replace:{{BASEPAGENAME}}|.A|}}|.B|}}.A|'''A'''|A}}]]</div><div style="display:{{#if: {{{hasB|}}} |inline-block|none}};">/[[{{#replace:{{#replace:{{BASEPAGENAME}}|.A|}}|.B|}}.B|{{#ifeq: {{BASEPAGENAME}} | {{#replace:{{#replace:{{BASEPAGENAME}}|.A|}}|.B|}}.B|'''B'''|B}}]]</div><div style="display:{{#if: {{{hasC|}}} |inline-block|none}};" >/[[{{#replace:{{#replace:{{BASEPAGENAME}}|.A|}}|.B|}}|{{#ifeq: {{BASEPAGENAME}} | {{#replace:{{#replace:{{BASEPAGENAME}}|.A|}}|.B|}}|'''C'''|C}}]]</div></div>
| + | {{#vardefine:link|{{#replace:{{#replace:{{#replace:{{BASEPAGENAME}}|.A/B|}}|.A|}}|.B|}} }} |
− | {{#replace:{{#replace:{{BASEPAGENAME}}|.A|}}|.B|}}
| + | {{#vardefine:txtA|{{#ifeq: {{BASEPAGENAME}} | {{#var:link}}.A|'''A'''|A}} }} |
− | {{#ifeq: {{BASEPAGENAME}} | {{#replace:{{#replace:{{BASEPAGENAME}}|.A|}}|.B|}}.A|'''A'''|A}} | + | {{#vardefine:txtA/B|{{#ifeq: {{BASEPAGENAME}} | {{#var:link}}.A/B|'''A/B'''|A/B}} }} |
− | {{#ifeq: {{BASEPAGENAME}} | {{#replace:{{#replace:{{BASEPAGENAME}}|.A|}}|.B|}}.B|'''B'''|B}} | + | {{#vardefine:txtB|{{#ifeq: {{BASEPAGENAME}} | {{#var:link}}.B|'''B'''|B}} }} |
− | {{#ifeq: {{BASEPAGENAME}} | {{#replace:{{#replace:{{BASEPAGENAME}}|.A|}}|.B|}}|'''C'''|C}} | + | {{#vardefine:txtC|{{#ifeq: {{BASEPAGENAME}} | {{#var:link}}|'''C'''|C}} }} |
− | | + | <div style="font-size:2em">'''Revision:''' |
| + | <div style="display:{{#if: {{{hasA|}}} |inline-block|none}};">[[{{#var:link}}.A|{{#var:txtA}}]]</div> |
| + | <div style="display:{{#if: {{{hasA/B|}}} |inline-block|none}};">[[{{#var:link}}.A/B|{{#var:txtA/B}}]]</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> |
| Example: <nowiki>{{RevisionChanger | hasA = 1 | hasB = 1 | hasC = 1}}</nowiki> | | Example: <nowiki>{{RevisionChanger | hasA = 1 | hasB = 1 | hasC = 1}}</nowiki> |
| </noinclude> | | </noinclude> |