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}}{{#if: {{#explode:{{#var:faction}}|:|1}} | | {{#vardefine:faction|Faction:{{#vardefine:standing|0}} |
− | : | + | {{#switch: {{lc:{{{2|}}}}} |
+ | | war | ||
+ | | -2 = :{{#vardefine:standing|-2}} | ||
+ | | hostile | ||
+ | | -1 = :{{#vardefine:standing|-1}} | ||
+ | | neutral | ||
+ | | 0 = :{{#vardefine:standing|-1}} | ||
+ | | friendly | ||
+ | | 1 = :{{#vardefine:standing|-1}} | ||
+ | | allied | ||
+ | | 2 = :{{#vardefine:standing|-1}} | ||
+ | }} | ||
+ | {{#var:faction}} {{#var:standing}} | ||
|}}|}}|}} | |}}|}}|}} |
Revision as of 18:41, 28 March 2014
{{#ifeq: Template | Faction | {{#ifeq: Template:Set standing | Embassy | Is faction defined?