Difference between revisions of "Template:Infobox Enemy"
J McKalling (Talk | contribs) m (J McKalling moved page Template:Enemy to Template:Infobox Enemy without leaving a redirect) |
J McKalling (Talk | contribs) |
||
Line 1: | Line 1: | ||
− | < | + | <noinclude>This template is used as an infobox in enemies' articles. It should be the first of the article, before the general description. |
− | + | {{stub}} | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
==Parameters== | ==Parameters== | ||
− | * ''' | + | * '''image''': An image filename of the enemy (case sensitive, defaults to empty portrait, see [[Template:Articleimage]]) |
− | * ''' | + | * '''race''': The race of the enemy; sup, franco, wannie etc. (case insensitive, defaults to "unknown", see the [[Template:{{PAGENAME}}/race|race]] subpage) |
− | * ''' | + | * '''gender''': Male or female (case insensitive, defaults to "unknown", see the [[Template:{{PAGENAME}}/gender|gender]] subpage) |
− | * ''' | + | * '''size''': The length of the enemy; small, average, large (case insensitive, defaults to "unknown", see the [[Template:{{PAGENAME}}/size|size]] subpage) |
− | * ''' | + | * '''alignment''': Of which party this enemy is a follower (case insensitive, defaults to "unknown", see the [[Template:{{PAGENAME}}/alignment|alignment]] subpage) |
− | * ''' | + | * '''requires''': The magic level required to defeat this enemy (case insensitive, defaults to "unknown", see the [[Template:{{PAGENAME}}/requires|requires]] subpage) |
− | * ''' | + | * '''lba#''': Whether the enemy is encountered in the #(=1, 2 or 3) adventure (defaults to "no", see the [[Template:{{PAGENAME}}/adventure|adventure]] subpage) |
− | * ''' | + | * '''occupation''': A short phrase about the enemy's purpose if it has one (case sensitive, defaults to not displayed) |
− | * ''' | + | * '''style''': The attack style of this enemy (case insensitive, defaults to "unknown", see the [[Template:{{PAGENAME}}/style|style]] subpage) |
+ | * '''range''': The longest distance this enemy can attack from (case insensitive, defaults to "unknown", see the [[Template:{{PAGENAME}}/range|range]] subpage) | ||
+ | * '''speed''': How fast this enemy moves (case insensitive, defaults to "unknown", see the [[Template:{{PAGENAME}}/speed|speed]] subpage) | ||
+ | * '''damage''': How much damage an attack from this enemy causes (case insensitive, defaults to "unknown", see the [[Template:{{PAGENAME}}/damage|damage]] subpage) | ||
+ | * '''rate''': How many seconds it takes for this enemy to repeat an attack (numeric, decimal, defaults to nothing displayed) | ||
+ | * '''reaction''': However this enemy responds to being hit (case sensitive, defaults to nothing displayed) | ||
+ | * '''recovery''': How many seconds it takes for this enemy to recover from being hit (numeric, decimal, defaults to nothing displayed) | ||
+ | * '''nocat''': Whether or not to suppress categorization under all the chosen categories (defaults to false, which means auto categorization). | ||
+ | |||
+ | |||
+ | '''''Note''': The article is automatically categorized under [[:Category:Articles without an image]] if no filename was specified, or [[:Category:Articles with a missing image]] if the specified filename doesn't exist. The '''nocat''' parameter will also suppress these.'' | ||
==Syntax== | ==Syntax== | ||
− | < | + | Copy and paste the following for quick use: |
− | + | <nowiki>{{Infobox Enemy | |
− | + | |image= | |
− | + | |race= | |
− | + | |gender= | |
− | + | |size= | |
− | + | |alignment= | |
− | + | |requires= | |
− | Range=| | + | |lba1= |
− | Speed=}}</ | + | |lba2= |
+ | |occupation= | ||
+ | |melee= | ||
+ | |ranged= | ||
+ | |magic= | ||
+ | |explosive= | ||
+ | |range= | ||
+ | |speed= | ||
+ | |damage= | ||
+ | |rate= | ||
+ | |reaction= | ||
+ | |recovery= | ||
+ | }}</nowiki> | ||
+ | |||
+ | ==Example== | ||
+ | On a page called "Franco Pike Guard": | ||
+ | <nowiki>{{Infobox Enemy | ||
+ | |image=Franco Pike Guard.jpg | ||
+ | |race=franco | ||
+ | |gender=male | ||
+ | |size=average | ||
+ | |alignment=emperor | ||
+ | |requires=green | ||
+ | |lba1= | ||
+ | |lba2=yes | ||
+ | |occupation=Guard | ||
+ | |melee=yes | ||
+ | |ranged= | ||
+ | |magic= | ||
+ | |explosive= | ||
+ | |range=none | ||
+ | |speed=medium | ||
+ | |damage=little | ||
+ | |rate=Fast | ||
+ | |reaction=Moves sideways | ||
+ | |recovery=fast | ||
+ | }}</nowiki> | ||
+ | </noinclude><includeonly>{{#ifeq: {{lc: {{{nocat|false}}} }} | false | [[Category:Enemies]] }}</includeonly> | ||
+ | {{Infobox | ||
+ | |<includeonly>{{#if: {{{title|}}} |title={{{title|}}}}}</includeonly><noinclude>title=Franco Pike Guard</noinclude> | ||
+ | |class=army | ||
+ | |float=yes | ||
+ | |image={{{image|<noinclude>Franco Pike Guard.jpg</noinclude>}}} | ||
+ | |imagecaption=Enemy Portrait of <includeonly>{{PAGENAME}}</includeonly><noinclude>Franco Pike Guard</noinclude> | ||
+ | |nocat=<includeonly>{{{nocat|false}}}</includeonly><noinclude>true</noinclude> | ||
+ | |||
+ | |label1=Race | ||
+ | |data1=<includeonly>{{Infobox Enemy/race|{{{race|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{{{PAGENAME}}/race|franco|nocat=true}}</noinclude> | ||
+ | |||
+ | |label2=Gender | ||
+ | |data2=<includeonly>{{Infobox Enemy/gender|{{{gender|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{{{PAGENAME}}/gender|male|nocat=true}}</noinclude> | ||
+ | |||
+ | |label3=Size | ||
+ | |data3=<includeonly>{{Infobox Enemy/size|{{{size|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{{{PAGENAME}}/size|average|nocat=true}}</noinclude> | ||
+ | |||
+ | |label4=Alignment | ||
+ | |data4=<includeonly>{{Infobox Enemy/alignment|{{{alignment|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{{{PAGENAME}}/alignment|emperor|nocat=true}}</noinclude> | ||
+ | |||
+ | |label5=Requires | ||
+ | |data5=<includeonly>{{Infobox Enemy/requires|{{{requires|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{{{PAGENAME}}/requires|green|nocat=true}}</noinclude> | ||
+ | |||
+ | |label6=Adventure | ||
+ | |data6=<includeonly>{{Infobox Enemy/adventure|lba1={{{lba1|}}}|lba2={{{lba2|}}}|lba3={{{lba3|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{{{PAGENAME}}/adventure|lba2=yes|nocat=true}}</noinclude> | ||
+ | |||
+ | |header7=Enemy | ||
+ | |class7=subtitle | ||
+ | |||
+ | |label8=Occupation | ||
+ | |data8={{{occupation|<noinclude>Guard</noinclude>}}} | ||
+ | |||
+ | |label9=Style | ||
+ | |data9=<includeonly>{{Infobox Enemy/style|melee={{{melee|}}}|ranged={{{ranged|}}}|magic={{{magic|}}}|explosive={{{explosive|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{{{PAGENAME}}/style|melee=yes|nocat=true}}</noinclude> | ||
+ | |||
+ | |label10=Range | ||
+ | |data10=<includeonly>{{Infobox Enemy/range|{{{range|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{{{PAGENAME}}/range|none|nocat=true}}</noinclude> | ||
+ | |||
+ | |label11=Speed | ||
+ | |data11=<includeonly>{{Infobox Enemy/speed|{{{speed|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{{{PAGENAME}}/speed|medium|nocat=true}}</noinclude> | ||
+ | |||
+ | |label12=Damage | ||
+ | |data12=<includeonly>{{Infobox Enemy/damage|{{{damage|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{{{PAGENAME}}/damage|little|nocat=true}}</noinclude> | ||
+ | |||
+ | |label13=Rate | ||
+ | |data13={{{rate|<noinclude>Fast</noinclude>}}} | ||
+ | |||
+ | |label14=Reaction | ||
+ | |data14={{{reaction|<noinclude>Moves sideways</noinclude>}}} | ||
+ | |||
+ | |label15=Recovery | ||
+ | |data15=<includeonly>{{Infobox Enemy/recovery|{{{recovery|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{{{PAGENAME}}/recovery|fast|nocat=true}}</noinclude> | ||
+ | }}<noinclude> | ||
+ | ''example paragraph: ''Description text about the enemy, in this case Franco Pike Guard. Description text about the enemy, in this case Franco Pike Guard. Description text about the enemy, in this case Franco Pike Guard. Description text about the enemy, in this case Franco Pike Guard. Description text about the enemy, in this case Franco Pike Guard. Description text about the enemy, in this case Franco Pike Guard. Description text about the enemy, in this case Franco Pike Guard. Description text about the enemy, in this case Franco Pike Guard. Description text about the enemy, in this case Franco Pike Guard. Description text about the enemy, in this case Franco Pike Guard. | ||
− | [[Category: | + | [[Category:Article Infoboxes|E]] |
</noinclude> | </noinclude> |
Revision as of 22:11, 6 December 2012
This template is used as an infobox in enemies' articles. It should be the first of the article, before the general description.
This article is a stub [list all]. You can help the Twinsuniverse by expanding it. |
Parameters
- image: An image filename of the enemy (case sensitive, defaults to empty portrait, see Template:Articleimage)
- race: The race of the enemy; sup, franco, wannie etc. (case insensitive, defaults to "unknown", see the race subpage)
- gender: Male or female (case insensitive, defaults to "unknown", see the gender subpage)
- size: The length of the enemy; small, average, large (case insensitive, defaults to "unknown", see the size subpage)
- alignment: Of which party this enemy is a follower (case insensitive, defaults to "unknown", see the alignment subpage)
- requires: The magic level required to defeat this enemy (case insensitive, defaults to "unknown", see the requires subpage)
- lba#: Whether the enemy is encountered in the #(=1, 2 or 3) adventure (defaults to "no", see the adventure subpage)
- occupation: A short phrase about the enemy's purpose if it has one (case sensitive, defaults to not displayed)
- style: The attack style of this enemy (case insensitive, defaults to "unknown", see the style subpage)
- range: The longest distance this enemy can attack from (case insensitive, defaults to "unknown", see the range subpage)
- speed: How fast this enemy moves (case insensitive, defaults to "unknown", see the speed subpage)
- damage: How much damage an attack from this enemy causes (case insensitive, defaults to "unknown", see the damage subpage)
- rate: How many seconds it takes for this enemy to repeat an attack (numeric, decimal, defaults to nothing displayed)
- reaction: However this enemy responds to being hit (case sensitive, defaults to nothing displayed)
- recovery: How many seconds it takes for this enemy to recover from being hit (numeric, decimal, defaults to nothing displayed)
- nocat: Whether or not to suppress categorization under all the chosen categories (defaults to false, which means auto categorization).
Note: The article is automatically categorized under Category:Articles without an image if no filename was specified, or Category:Articles with a missing image if the specified filename doesn't exist. The nocat parameter will also suppress these.
Syntax
Copy and paste the following for quick use:
{{Infobox Enemy |image= |race= |gender= |size= |alignment= |requires= |lba1= |lba2= |occupation= |melee= |ranged= |magic= |explosive= |range= |speed= |damage= |rate= |reaction= |recovery= }}
Example
On a page called "Franco Pike Guard":
{{Infobox Enemy |image=Franco Pike Guard.jpg |race=franco |gender=male |size=average |alignment=emperor |requires=green |lba1= |lba2=yes |occupation=Guard |melee=yes |ranged= |magic= |explosive= |range=none |speed=medium |damage=little |rate=Fast |reaction=Moves sideways |recovery=fast }}
Franco Pike Guard | |
---|---|
Race | |
Gender |
Male [list all] |
Size |
Average [list all] |
Alignment | |
Requires |
Magic Level Green [list all] |
Adventure | |
Enemy | |
Occupation |
Guard |
Style |
Melee [list all] |
Speed |
Medium [list all] |
Damage |
Little [list all] |
Rate |
Fast |
Reaction |
Moves sideways |
Recovery |
Fast [list all] |
example paragraph: Description text about the enemy, in this case Franco Pike Guard. Description text about the enemy, in this case Franco Pike Guard. Description text about the enemy, in this case Franco Pike Guard. Description text about the enemy, in this case Franco Pike Guard. Description text about the enemy, in this case Franco Pike Guard. Description text about the enemy, in this case Franco Pike Guard. Description text about the enemy, in this case Franco Pike Guard. Description text about the enemy, in this case Franco Pike Guard. Description text about the enemy, in this case Franco Pike Guard. Description text about the enemy, in this case Franco Pike Guard.