Difference between revisions of "Template:EmpireRelations"

From EVE University Wiki
Jump to: navigation, search
(Added default values and docs template)
(Input can be uppercase or lowercase, full or short name)
Line 1: Line 1:
<includeonly>{{#switch: {{{empire}}}
+
<includeonly>{{#switch: {{lc:{{{empire}}}}}
  | Amarr
+
  | amarr
  | Amarr Empire = {{#switch: {{{relation}}}
+
  | amarr empire = {{#switch: {{{relation}}}
 
  | ally    = Caldari
 
  | ally    = Caldari
 
  | enemy  = Minmatar
 
  | enemy  = Minmatar
Line 7: Line 7:
 
  | #default = <span style="color:red">Unknown Faction Relation</span>
 
  | #default = <span style="color:red">Unknown Faction Relation</span>
 
}}
 
}}
  | Caldari
+
  | caldari
  | Caldari State = {{#switch: {{{relation}}}
+
  | caldari state = {{#switch: {{{relation}}}
 
  | ally    = Amarr
 
  | ally    = Amarr
 
  | enemy  = Gallente
 
  | enemy  = Gallente
Line 14: Line 14:
 
  | #default = <span style="color:red">Unknown Faction Relation</span>
 
  | #default = <span style="color:red">Unknown Faction Relation</span>
 
}}
 
}}
  | Gallente
+
  | gallente
  | Gallente Federation = {{#switch: {{{relation}}}
+
  | gallente federation = {{#switch: {{{relation}}}
 
  | ally    = Minmatar
 
  | ally    = Minmatar
 
  | enemy  = Caldari
 
  | enemy  = Caldari
Line 21: Line 21:
 
  | #default = <span style="color:red">Unknown Faction Relation</span>
 
  | #default = <span style="color:red">Unknown Faction Relation</span>
 
}}
 
}}
  | Minmatar
+
  | minmatar
  | Minmatar Republic = {{#switch: {{{relation}}}
+
  | minmatar republic = {{#switch: {{{relation}}}
 
  | ally    = Gallente
 
  | ally    = Gallente
 
  | enemy  = Amarr
 
  | enemy  = Amarr

Revision as of 23:08, 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?)