Difference between revisions of "Template:Set standing"
From Space Engineers Wiki
Line 5: | Line 5: | ||
Is faction defined? | Is faction defined? | ||
{{#if: {{{1|}}} | yes{{#vardefine:faction|{{{1}}}}} | {{#if: {{{1|}}} | yes{{#vardefine:faction|{{{1}}}}} | ||
− | :faction:{{#var:faction}}{{#if: {{#explode:{{#var:faction}}|:|1}} | | {{#vardefine:faction|Faction:{{#var:faction}}}}} | + | :faction:{{#var:faction}} |
+ | {{#if: {{#explode:{{#var:faction}}|:|1}} | | {{#vardefine:faction|Faction:{{#var:faction}}}}}} | ||
{{#vardefine:standing|0}} | {{#vardefine:standing|0}} | ||
{{#switch: {{lc:{{{2|}}}}} | {{#switch: {{lc:{{{2|}}}}} | ||
Line 20: | Line 21: | ||
}} | }} | ||
{{#var:faction}} {{#var:standing}} | {{#var:faction}} {{#var:standing}} | ||
− | |}}|}}|}} | + | |}} |
+ | |}} | ||
+ | |}} |