Template:Named: Difference between revisions
Jump to navigation
Jump to search
imported>Taxibot Yellow (historical) mNo edit summary |
imported>Sekoia (historical) (modified template to prevent an extra space when the Type isn't provided; added an "examples" section) |
||
Line 1: | Line 1: | ||
([[{{{Faction}}}#{{{Type | <includeonly>([[{{{Faction}}}{{if|test={{{Type|}}}|then=#{{{Type}}}}}|{{{Faction}}}{{if|test={{{Text|}}}|then= {{{Text}}}|else={{if|test={{{Type|}}}|then= {{{Type}}}}}}}]])</includeonly><noinclude> | ||
== 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. | ||
Line 11: | Line 8: | ||
* Faction is the name of the group the enemy belongs to. | * Faction is the name of the group the enemy belongs to. | ||
* Type is the actual type of the enemy. 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. | * Type is the actual type of the enemy. 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>'''.[[Category:Templates]] | * 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>'''. | ||
== Examples == | |||
{| class="wikitable" | |||
! Markup !! Result | |||
|- | |||
| <nowiki>{{Named|Faction=Malta Operatives}}</nowiki> | |||
| {{Named|Faction=Malta Operatives}} | |||
|- | |||
| <nowiki>{{Named|Faction=Malta Operatives|Type=Gunslinger}}</nowiki> | |||
| {{Named|Faction=Malta Operatives|Type=Gunslinger}} | |||
|- | |||
| <nowiki>{{Named|Faction=Malta Operatives|Type=Gunslinger 2|Text=Gunslinger}}</nowiki> | |||
| {{Named|Faction=Malta Operatives|Type=Gunslinger 2|Text=Gunslinger}} | |||
|} | |||
[[Category:Templates]] | |||
</noinclude> | </noinclude> |
Revision as of 00:44, 25 April 2007
Overview
This template can be used to link to a specific type of enemy.
Format: {{Named|Faction=|Type=|Text=}}
- Faction is the name of the group the enemy belongs to.
- Type is the actual type of the enemy. 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 {{Named|Faction=Malta Operatives|Type=Gunslinger 2|Text=Gunslinger}}.
Examples
Markup | Result |
---|---|
{{Named|Faction=Malta Operatives}} | ([[Malta OperativesTemplate:If: "#if{{{1}}}:{{{2}}}" should give {{#if{{{1}}}:{{{2}}}|true|false}} but may not be evaluated due to the expansion depth limit.|Malta OperativesTemplate:If: "#if{{{1}}}:{{{2}}}" should give {{#if{{{1}}}:{{{2}}}|true|false}} but may not be evaluated due to the expansion depth limit.]]) |
{{Named|Faction=Malta Operatives|Type=Gunslinger}} | ([[Malta OperativesTemplate:If: "#if{{{1}}}:{{{2}}}" should give {{#if{{{1}}}:{{{2}}}|true|false}} but may not be evaluated due to the expansion depth limit.|Malta OperativesTemplate:If: "#if{{{1}}}:{{{2}}}" should give {{#if{{{1}}}:{{{2}}}|true|false}} but may not be evaluated due to the expansion depth limit.]]) |
{{Named|Faction=Malta Operatives|Type=Gunslinger 2|Text=Gunslinger}} | ([[Malta OperativesTemplate:If: "#if{{{1}}}:{{{2}}}" should give {{#if{{{1}}}:{{{2}}}|true|false}} but may not be evaluated due to the expansion depth limit.|Malta OperativesTemplate:If: "#if{{{1}}}:{{{2}}}" should give {{#if{{{1}}}:{{{2}}}|true|false}} but may not be evaluated due to the expansion depth limit.]]) |