Difference between revisions of "Template:Set standing"

From Space Engineers Wiki
Jump to: navigation, search
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#ifeq: {{NAMESPACE}} | Faction | {{Factionheader}}
+
{{#ifeq: {{NAMESPACE}} | Faction |
 
<!-- only work in the faction namespace -->
 
<!-- only work in the faction namespace -->
 
{{#ifeq: {{#titleparts: {{FULLPAGENAME}} | | -1 }} | Embassy |
 
{{#ifeq: {{#titleparts: {{FULLPAGENAME}} | | -1 }} | Embassy |
Line 18: Line 18:
 
| 2 = {{#vardefine:standing|2}}
 
| 2 = {{#vardefine:standing|2}}
 
}}
 
}}
{{#switch: {{#var:standing}}
+
*{{#var:faction}} {{#switch: {{#var:standing}}
| -2 = {{#set:war={{#var:faction}}}}
+
| -2 = War{{#set:war={{#var:faction}}}}
| -1 = {{#set:hostile={{#var:faction}}}}
+
| -1 = Hostile{{#set:hostile={{#var:faction}}}}
| 0 = {{#set:neutral={{#var:faction}}}}
+
| 0 = Neutral {{#set:neutral={{#var:faction}}}}
| 1 = {{#set:friendly={{#var:faction}}}}
+
| 1 = Friendly {{#set:friendly={{#var:faction}}}}
| 2 = {{#set:allied={{#var:faction}}}}
+
| 2 = Allied {{#set:allied={{#var:faction}}}}
 
}}
 
}}
 
|}}
 
|}}
 
|}}
 
|}}
|}}
+
|}}<noinclude>Sets standing of faction to specified faction <pre> {{set standing|target faction|standing}}
 +
target faction is the faction page name of the faction you want to change standings with
 +
 
 +
standing is one of the following: War, Hostile, Neutral, Friendly, Allied
 +
 
 +
This template only works on Faction Embassy pages.</pre>[[Category:Templates]]</noinclude>

Latest revision as of 05:04, 3 April 2014

Sets standing of faction to specified faction
 {{set standing|target faction|standing}}
target faction is the faction page name of the faction you want to change standings with

standing is one of the following: War, Hostile, Neutral, Friendly, Allied

This template only works on Faction Embassy pages.