Difference between revisions of "Template:EmpireRelations/doc"

From EVE University Wiki
Jump to: navigation, search
m
m (Remove unnecessary {{Main}}. Clean up source.)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<noinclude>{{main|Template:EmpireRelations}}</noinclude>
+
; Description
 +
[[File:FW faction alliances.png|thumb|200px|The template implements the relationships.]]
 +
:This dictionary template outputs the name of the Empire's ally, enemy or neutral Empire.
  
;Description
 
[[File:FW faction alliances.png|thumb|200px|right|The template implements the relationships.]]
 
:This dictionary template outputs the name of the Empire's ally, enemy or neutral Empire.
 
 
;Syntax
 
;Syntax
:<pre><nowiki>{{EmpireRelations | empire = Faction Name | relation = Relation Name}}</nowiki></pre>
+
: {{T|EmpireRelations |2= empire = Faction Name |3= relation = Relation Type}}
; Parameters
+
:; Parameters
: <code>empire</code>
+
::; empire : The name of the [[Faction#Empires|Empire]]. Case and full name insensitive.
:: The name of the [[Faction#Empires|Empire]]. Case and full name insensitive.
+
::; relation : Possible values: <code>ally</code>, <code>enemy</code>, <code>neutral</code>.
: <code>relation</code>
+
 
:: Possible values: <code>ally</code>, <code>enemy</code>, <code>neutral</code>.
+
; Sample
;Sample output
+
: <code><nowiki>{{EmpireRelations | empire = Amarr Empire | relation = ally}}</nowiki></code>
:<code><nowiki>{{EmpireRelations | empire = Amarr Empire | relation = ally}}</nowiki></code>
+
: <code><nowiki>{{EmpireRelations | empire = Amarr | relation = ally}}</nowiki></code>
:<code><nowiki>{{EmpireRelations | empire = Amarr | relation = ally}}</nowiki></code>
+
: <code><nowiki>{{EmpireRelations | empire = amarr | relation = ally}}</nowiki></code>
:<code><nowiki>{{EmpireRelations | empire = amarr | relation = ally}}</nowiki></code>
+
:: gives... {{EmpireRelations | empire = Amarr Empire | relation = ally}}
::gives... {{EmpireRelations | empire = Amarr Empire | relation = ally}}
+
 
:<code><nowiki>{{EmpireRelations | empire = Gallente Federation | relation = neutral}}</nowiki></code>
+
: <code><nowiki>{{EmpireRelations | empire = Gallente Federation | relation = neutral}}</nowiki></code>
:<code><nowiki>{{EmpireRelations | empire = Gallente | relation = neutral}}</nowiki></code>
+
: <code><nowiki>{{EmpireRelations | empire = Gallente | relation = neutral}}</nowiki></code>
:<code><nowiki>{{EmpireRelations | empire = gallente | relation = neutral}}</nowiki></code>
+
: <code><nowiki>{{EmpireRelations | empire = gallente | relation = neutral}}</nowiki></code>
::gives... {{EmpireRelations | empire = Gallente Federation | relation = neutral}}
+
:: gives... {{EmpireRelations | empire = Gallente Federation | relation = neutral}}
:<code><nowiki>{{EmpireRelations | empire = Interbus | relation = ally}}</nowiki></code>
+
 
::gives... {{EmpireRelations | empire = Interbus | relation = ally}}
+
: <code><nowiki>{{EmpireRelations | empire = Interbus | relation = ally}}</nowiki></code>
:<code><nowiki>{{EmpireRelations | empire = Amarr Empire | relation = ALLY}}</nowiki></code>
+
:: gives... {{EmpireRelations | empire = Interbus | relation = ally}}
::gives... {{EmpireRelations | empire = Amarr Empire | relation = ALLY}}
+
 
 +
: <code><nowiki>{{EmpireRelations | empire = Amarr Empire | relation = ALLY}}</nowiki></code>
 +
:: gives... {{EmpireRelations | empire = Amarr Empire | relation = ALLY}}
  
<includeonly>[[Category:Template|{{PAGENAME}}]]</includeonly>
+
<includeonly>[[Category:Data templates]]</includeonly>
<noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
+
<noinclude>[[Category:Template documentation]]</noinclude>

Latest revision as of 14:52, 9 November 2022

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