Difference between revisions of "Template:EmpireRelations"

From EVE University Wiki
Jump to: navigation, search
(Changed the parameter name from "faction" to "empire" to be more specific and evocative)
(Added default values and docs template)
Line 1: Line 1:
{{#switch: {{{empire}}}
+
<includeonly>{{#switch: {{{empire}}}
 
  | Amarr
 
  | Amarr
 
  | Amarr Empire = {{#switch: {{{relation}}}
 
  | Amarr Empire = {{#switch: {{{relation}}}
Line 5: Line 5:
 
  | enemy  = Minmatar
 
  | enemy  = Minmatar
 
  | neutral = Gallente
 
  | neutral = Gallente
 +
| #default = <span style="color:red">Unknown Faction Relation</span>
 
}}
 
}}
 
  | Caldari
 
  | Caldari
Line 11: Line 12:
 
  | enemy  = Gallente
 
  | enemy  = Gallente
 
  | neutral = Minmatar
 
  | neutral = Minmatar
 +
| #default = <span style="color:red">Unknown Faction Relation</span>
 
}}
 
}}
 
  | Gallente
 
  | Gallente
Line 17: Line 19:
 
  | enemy  = Caldari
 
  | enemy  = Caldari
 
  | neutral = Amarr
 
  | neutral = Amarr
 +
| #default = <span style="color:red">Unknown Faction Relation</span>
 
}}
 
}}
 
  | Minmatar
 
  | Minmatar
Line 23: Line 26:
 
  | enemy  = Amarr
 
  | enemy  = Amarr
 
  | neutral = Caldari
 
  | neutral = Caldari
 +
| #default = <span style="color:red">Unknown Faction Relation</span>
 
}}
 
}}
}}
+
| #default = <span style="color:red">Unknown Empire</span>
 +
}}</includeonly><noinclude>
 +
{{documentation}}
 +
</noinclude>

Revision as of 22:50, 22 December 2020

Template documentation (for the above template, sometimes hidden or invisible)
Description
The template implements the relationships.
This dictionary template outputs the name of the Empire's ally, enemy or neutral Empire.
Syntax
{{EmpireRelations |<empire = Faction Name>|<relation = Relation Type>}}
Parameters
empire 
The name of the Empire. Case and full name insensitive.
relation 
Possible values: ally, enemy, neutral.
Sample
{{EmpireRelations | empire = Amarr Empire | relation = ally}}
{{EmpireRelations | empire = Amarr | relation = ally}}
{{EmpireRelations | empire = amarr | relation = ally}}
gives... Caldari
{{EmpireRelations | empire = Gallente Federation | relation = neutral}}
{{EmpireRelations | empire = Gallente | relation = neutral}}
{{EmpireRelations | empire = gallente | relation = neutral}}
gives... Amarr
{{EmpireRelations | empire = Interbus | relation = ally}}
gives... Unknown Empire
{{EmpireRelations | empire = Amarr Empire | relation = ALLY}}
gives... Unknown Faction Relation
Visit Template:EmpireRelations/doc to edit this text! (How does this work?) (Refresh this text - why?)