Difference between revisions of "Template:Infobox Enemy"

From Twinsuniverse
Jump to: navigation, search
m (J McKalling moved page Template:Enemy to Template:Infobox Enemy without leaving a redirect)
Line 1: Line 1:
<includeonly>{| style=" font-size: 90%; text-align: left; border: 1px solid #CCCCCC; margin-left: 5px;" cellpadding="3" cellspacing="1" align="right"
+
<noinclude>This template is used as an infobox in enemies' articles. It should be the first of the article, before the general description.
! colspan="2" style="font-size:110%; text-align: center; background-color: #CCCCFF; border: 1px solid #CCCCCC;"  | ''{{{Name}}}''
+
{{stub}}
|-
+
! colspan="2" style="background-color: white; font-size:110%; text-align: center; border: 1px solid #CCCCCC; margin-left: 5px;" | [[Image:{{{Image|DIVERS.gif}}}|{{PAGENAME}}]]
+
|-
+
! style="background-color: #ccccff; white-space: nowrap; border: 1px solid #CCCCCC; margin-left: 5px;" | Magic level
+
| ! style="background-color: white; border: 1px solid #CCCCCC;" |{{{Level}}}
+
|-
+
! style="background-color: #ccccff; white-space: nowrap; border: 1px solid #CCCCCC; margin-left: 5px;" | On hit
+
| ! style="background-color: white; border: 1px solid #CCCCCC;" |{{{Reaction}}}
+
|-
+
! style="background-color: #ccccff; white-space: nowrap; border: 1px solid #CCCCCC; margin-left: 5px;" | Recovery
+
| ! style="background-color: white; border: 1px solid #CCCCCC;" |{{{Recovery}}}
+
|-
+
! style="background-color: #ccccff; white-space: nowrap; border: 1px solid #CCCCCC; margin-left: 5px;" | Firing rate
+
| ! style="background-color: white; border: 1px solid #CCCCCC;" |{{{Rate}}}
+
|-
+
! style="background-color: #ccccff; white-space: nowrap; border: 1px solid #CCCCCC; margin-left: 5px;" | Damage per hit
+
| ! style="background-color: white; border: 1px solid #CCCCCC;" |{{{Damage}}}
+
|-
+
! style="background-color: #ccccff; white-space: nowrap; border: 1px solid #CCCCCC; margin-left: 5px;" | Weapon range
+
| ! style="background-color: white; border: 1px solid #CCCCCC;" |{{{Range}}}
+
|-
+
! style="background-color: #ccccff; white-space: nowrap; border: 1px solid #CCCCCC; margin-left: 5px;" | Move Speed
+
| ! style="background-color: white; border: 1px solid #CCCCCC;" |{{{Speed}}}
+
|}</includeonly><noinclude>This is an infobox template, used for enemies pages.
+
  
 
==Parameters==
 
==Parameters==
* '''Name''': The name of the enemy. For example, "Yellow grobo clone".
+
* '''image''': An image filename of the enemy (case sensitive, defaults to empty portrait, see [[Template:Articleimage]])
* '''Image''': An image name of the enemy. Only the file name, without "[[Image:" etc. If non is available, remove the parameter, and a question mark will appear.
+
* '''race''': The race of the enemy; sup, franco, wannie etc. (case insensitive, defaults to "unknown", see the [[Template:{{PAGENAME}}/race|race]] subpage)
* '''Level''': The magic level required to beat the enemy- Yellow/Green/Red/White.
+
* '''gender''': Male or female (case insensitive, defaults to "unknown", see the [[Template:{{PAGENAME}}/gender|gender]] subpage)
* '''Reaction''': What the enemy does when hit- [doesn't] moves [backwards/sidewards].
+
* '''size''': The length of the enemy; small, average, large (case insensitive, defaults to "unknown", see the [[Template:{{PAGENAME}}/size|size]] subpage)
* '''Recovery''': How much time it takes the enemy to recover from a hit- Slow/Medium/Fast.
+
* '''alignment''': Of which party this enemy is a follower (case insensitive, defaults to "unknown", see the [[Template:{{PAGENAME}}/alignment|alignment]] subpage)
* '''Rate''': The firing rate of the enemy- Slow/Medium/Fast.
+
* '''requires''': The magic level required to defeat this enemy (case insensitive, defaults to "unknown", see the [[Template:{{PAGENAME}}/requires|requires]] subpage)
* '''Damage''': How much damage this enemy causes when he hits Twinsen- Little/Medium/Lots.
+
* '''lba#''': Whether the enemy is encountered in the #(=1, 2 or 3) adventure (defaults to "no", see the [[Template:{{PAGENAME}}/adventure|adventure]] subpage)
* '''Range''': How far the weapon of the enemy reaches- Melee/Short/Medium/Long.
+
* '''occupation''': A short phrase about the enemy's purpose if it has one (case sensitive, defaults to not displayed)
* '''Speed''': How fast the enemy moves- Slow/Medium/Fast.
+
* '''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==
<pre><nowiki>{{Enemy|
+
Copy and paste the following for quick use:
Name=|
+
<nowiki>{{Infobox Enemy
Image=|
+
|image=
Level=|
+
|race=
Reaction=|
+
|gender=
Recovery=|
+
|size=
Rate=|
+
|alignment=
Damage=|
+
|requires=
Range=|
+
|lba1=
Speed=}}</nowiki></pre>
+
|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:Twinsunica - Templates|{{PAGENAME}}]]
+
[[Category:Article Infoboxes|E]]
 
</noinclude>
 
</noinclude>

Revision as of 23: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
Enemy Portrait of Franco Pike Guard
Race

Franco [list all]

Gender

Male [list all]

Size

Average [list all]

Alignment

Emperor of Zeelich [list all]

Requires

Magic Level Green [list all]

Adventure

Twinsen's Odyssey [list all]

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.