Template:Named: Difference between revisions
Jump to navigation
Jump to search
imported>Sekoia (historical) (modified template to prevent an extra space when the Type isn't provided; added an "examples" section) |
imported>Eabrace (historical) mNo edit summary |
||
(7 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>([[{{{Faction}}}{{if | <includeonly>([[{{{Faction}}}{{#if:{{{Type|}}}|#{{{Type}}}}}|{{{Faction}}}{{#if:{{{Text|}}}| {{{Text}}}|{{#if:{{{Type|}}}| {{{Type}}}}}}}]]{{#if:{{{Rank|}}}|{{#ifexist:{{{Rank|}}}| [[{{{Rank}}}]]| {{{Rank}}}}}}}{{#if:{{{Role|}}}|, {{{Role}}}}})</includeonly><noinclude> | ||
== Overview == | == Overview == | ||
This template can be used to link to a specific type of enemy. | This template can be used to link to a specific type of enemy. | ||
Format: '''<nowiki>{{Named|Faction=|Type=|Text=}}</nowiki>''' | Format: '''<nowiki>{{Named|Faction=|Type=|Text=|Rank=|Role=}}</nowiki>''' | ||
* Faction is the name of the group the | * '''Faction''' is the name of the group the NPC belongs to. | ||
* Type is the actual type of the | * '''Type''' (optional) is the actual type of the NPC. If there are multiple types (i.e. Malta Operatives has a Lieutenant Gunslinger and a Boss Gunslinger, with the links being [[Malta Operatives#Gunslinger]] and [[Malta Operatives#Gunslinger 2]] respectively), then type must be the link to the correct type. | ||
* Text is the text to use when there are multiple types. For example, to link to the above Malta Operative boss, you can use '''<nowiki>{{Named|Faction=Malta Operatives|Type=Gunslinger 2|Text=Gunslinger}}</nowiki>'''. | * '''Text''' (optional) is the text to use when there are multiple types. For example, to link to the above Malta Operative boss, you can use '''<nowiki>{{Named|Faction=Malta Operatives|Type=Gunslinger 2|Text=Gunslinger}}</nowiki>'''. | ||
* '''Rank''' (optional) is the rank of the NPC. Examples: Pet, Underling, Boss, Elite Boss, Hero, Archvillain | |||
* '''Role''' (optional) is the relationship of the NPC to players. Examples: Enemy, Ally, Civilian, Neutral | |||
== Examples == | == Examples == | ||
Line 23: | Line 25: | ||
| <nowiki>{{Named|Faction=Malta Operatives|Type=Gunslinger 2|Text=Gunslinger}}</nowiki> | | <nowiki>{{Named|Faction=Malta Operatives|Type=Gunslinger 2|Text=Gunslinger}}</nowiki> | ||
| {{Named|Faction=Malta Operatives|Type=Gunslinger 2|Text=Gunslinger}} | | {{Named|Faction=Malta Operatives|Type=Gunslinger 2|Text=Gunslinger}} | ||
|- | |||
| <nowiki>{{Named|Faction=Malta Operatives|Type=Gunslinger 2|Text=Gunslinger|Rank=Boss|Role=Ally}}</nowiki> | |||
| {{Named|Faction=Malta Operatives|Type=Gunslinger 2|Text=Gunslinger|Rank=Boss|Role=Ally}} | |||
|} | |} | ||
[[Category:Templates]] | [[Category:Mission Templates|{{PAGENAME}}]] | ||
</noinclude> | </noinclude> |
Latest revision as of 05:08, 10 November 2012
Overview
This template can be used to link to a specific type of enemy.
Format: {{Named|Faction=|Type=|Text=|Rank=|Role=}}
- Faction is the name of the group the NPC belongs to.
- Type (optional) is the actual type of the NPC. If there are multiple types (i.e. Malta Operatives has a Lieutenant Gunslinger and a Boss Gunslinger, with the links being Malta Operatives#Gunslinger and Malta Operatives#Gunslinger 2 respectively), then type must be the link to the correct type.
- Text (optional) is the text to use when there are multiple types. For example, to link to the above Malta Operative boss, you can use {{Named|Faction=Malta Operatives|Type=Gunslinger 2|Text=Gunslinger}}.
- Rank (optional) is the rank of the NPC. Examples: Pet, Underling, Boss, Elite Boss, Hero, Archvillain
- Role (optional) is the relationship of the NPC to players. Examples: Enemy, Ally, Civilian, Neutral
Examples
Markup | Result |
---|---|
{{Named|Faction=Malta Operatives}} | (Malta Operatives) |
{{Named|Faction=Malta Operatives|Type=Gunslinger}} | (Malta Operatives Gunslinger) |
{{Named|Faction=Malta Operatives|Type=Gunslinger 2|Text=Gunslinger}} | (Malta Operatives Gunslinger) |
{{Named|Faction=Malta Operatives|Type=Gunslinger 2|Text=Gunslinger|Rank=Boss|Role=Ally}} | (Malta Operatives Gunslinger Boss, Ally) |