Difference between revisions of "Template:Set standing"
From Space Engineers Wiki
Line 3: | Line 3: | ||
{{#ifeq: {{#titleparts: {{FULLPAGENAME}} | | -1 }} | Standings | | {{#ifeq: {{#titleparts: {{FULLPAGENAME}} | | -1 }} | Standings | | ||
<!-- only work in the Standings page--> | <!-- only work in the Standings page--> | ||
− | {{#if: {{{1|}}} | {{#vardefine:faction|{{{1}}}}} | + | Is faction defined? |
− | {{#var:faction}}{{#if: {{#explode:{{#var:faction}}|:|1}} | {{#vardefine:faction|{{#explode:{{#var:faction}}|:|1}}}}|}} | + | {{#if: {{{1|}}} | yes{{#vardefine:faction|{{{1}}}}} |
− | {{#var:faction}} | + | :faction:{{#var:faction}}{{#if: {{#explode:{{#var:faction}}|:|1}} | {{#vardefine:faction|{{#explode:{{#var:faction}}|:|1}}}}|}} |
+ | :faction:{{#var:faction}} | ||
|}}|}}|}} | |}}|}}|}} |