Difference between revisions of "Template:EmpireRelations"

From EVE University Wiki
Jump to: navigation, search
(Created an Empire Relations template to output the name of an Empire depending on their relationship)
 
m (Make Relation Type case insensitive.)
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{#switch: {{{faction}}}
+
<includeonly>{{#switch: {{lc:{{{empire}}} }}
  | Amarr
+
  | amarr
  | Amarr Empire={{#switch: {{{relation}}}
+
  | amarr empire = {{#switch: {{lc:{{{relation}}} }}
  | ally    =Caldari
+
  | ally    = Caldari
  | enemy  =Minmatar
+
  | enemy  = Minmatar
  | neutral =Gallente
+
  | neutral = Gallente
 +
| #default = <span style="color:red">Unknown Faction Relation</span>
 
}}
 
}}
 +
| caldari
 +
| caldari state = {{#switch: {{lc:{{{relation}}} }}
 +
| ally    = Amarr
 +
| enemy  = Gallente
 +
| neutral = Minmatar
 +
| #default = <span style="color:red">Unknown Faction Relation</span>
 
}}
 
}}
 +
| gallente
 +
| gallente federation = {{#switch: {{lc:{{{relation}}} }}
 +
| ally    = Minmatar
 +
| enemy  = Caldari
 +
| neutral = Amarr
 +
| #default = <span style="color:red">Unknown Faction Relation</span>
 +
}}
 +
| minmatar
 +
| minmatar republic = {{#switch: {{lc:{{{relation}}} }}
 +
| ally    = Gallente
 +
| enemy  = Amarr
 +
| neutral = Caldari
 +
| #default = <span style="color:red">Unknown Faction Relation</span>
 +
}}
 +
| #default = <span style="color:red">Unknown Empire</span>
 +
}}</includeonly><noinclude>
 +
{{documentation}}
 +
</noinclude>

Latest revision as of 14:50, 9 November 2022

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... Caldari
Visit Template:EmpireRelations/doc to edit this text! (How does this work?) (Refresh this text - why?)