Difference between revisions of "Template:Set standing"

From Space Engineers Wiki
Jump to: navigation, search
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}}
|}}|}}|}}
+
|}}
 +
|}}
 +
|}}

Revision as of 18:43, 28 March 2014