Difference between revisions of "Template:Infobox Enemy"

From Twinsuniverse
Jump to: navigation, search
m
(added infobox)
 
(41 intermediate revisions by 3 users not shown)
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>{{Infobox Template
! colspan="2" style="font-size:110%; text-align: center; background-color: #CCCCFF; border: 1px solid #CCCCCC;" | ''{{{Name}}}''
+
  |purpose=infobox
|-
+
|singletag=no
! colspan="2" style="background-color: white; font-size:110%; text-align: center; border: 1px solid #CCCCCC; margin-left: 5px;" | [[Image:{{{Image|DIVERS.gif}}}]]
+
|multiline=yes
|-
+
|gamerelated=yes
! style="background-color: #ccccff; white-space: nowrap; border: 1px solid #CCCCCC; margin-left: 5px;" | Magic level
+
|suppressible=recursively
| ! style="background-color: white; border: 1px solid #CCCCCC;" |{{{Level}}}
+
|choice=none
|-
+
|cat1=Enemies
! style="background-color: #ccccff; white-space: nowrap; border: 1px solid #CCCCCC; margin-left: 5px;" | On hit
+
|var1=infobox_messages!Infobox!active
| ! style="background-color: white; border: 1px solid #CCCCCC;" |{{{Reaction}}}
+
|var2=maintenance_message!Infobox!active
|-
+
}}
! 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.
+
This template is used as an infobox in enemies' articles. It should be the first of the article, before the general description.
  
 
==Parameters==
 
==Parameters==
* '''Name''': The name of the enemy. For example, "Yellow grobo clone".
+
* '''title''': An optional title to display at the top of the infobox (case sensitive, defaults to <nowiki>{{</nowiki>PAGENAME<nowiki>}}</nowiki>)
* '''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.
+
* '''image''': An image filename of the enemy (case sensitive, defaults to empty portrait, see [[Template:Articleimage]])
* '''Level''': The magic level required to beat the enemy- Yellow/Green/Red/White.
+
* '''race''' and '''label''': The race of the enemy; sup, franco, wannie etc. (case insensitive, defaults to "unknown", see the [[/race]] subpage)
* '''Reaction''': What the enemy does when hit- [doesn't] moves [backwards/sidewards].
+
* '''gender''': Male or female (case insensitive, defaults to "unknown", see the [[/gender]] subpage)
* '''Recovery''': How much time it takes the enemy to recover from a hit- Slow/Medium/Fast.
+
* '''size''': The length of the enemy; small, average, large (case insensitive, defaults to "unknown", see the [[/size]] subpage)
* '''Rate''': The firing rate of the enemy- Slow/Medium/Fast.
+
* '''lba1''', '''lba2''' and '''lba3''': Whether the enemy is encountered in said adventure (defaults to "unknown", see the [[/adventure]] subpage)
* '''Damage''': How much damage this enemy causes when he hits Twinsen- Little/Medium/Lots.
+
* '''alignment''': Of which party this enemy is a follower (case insensitive, defaults to "unknown", see the [[/alignment]] 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.
+
* '''requires''': The magic level required to defeat this enemy (case insensitive, defaults to "unknown", see the [[/requires]] subpage)
 +
* '''melee''', '''ranged''', '''magic''' and '''explosive''': The combat styles 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 fast this enemy repeats an attack (case insensitive, defaults to "unknown", see the [[/rate]] subpage)
 +
* '''reaction''': A short phrase about how this enemy responds to being hit (case sensitive, defaults to nothing displayed)
 +
* '''recovery''': How long it takes for this enemy to recover from being hit (case insensitive, defaults to "unknown", see the [[/recovery]] subpage)
 +
* '''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=|
+
|lba1=
Damage=|
+
|lba2=
Range=|
+
|alignment=
Speed=}}</nowiki></pre>
+
|occupation=
</noinclude>
+
|requires=
 +
|melee=
 +
|ranged=
 +
|magic=
 +
|explosive=
 +
|range=
 +
|speed=
 +
|damage=
 +
|rate=
 +
|reaction=
 +
|recovery=
 +
}}</nowiki>
 +
 
 +
==Example==
 +
On a page called "Franco Pike Guard":
 +
</noinclude><includeonly>{{categorizer|category=Enemies|display=emptyinfobox|nocat={{{nocat|false}}}}}</includeonly>
 +
{{Infobox
 +
|title=<includeonly>{{#if: {{{title|}}} |{{{title|}}}}}</includeonly><noinclude>Franco Pike Guard</noinclude>
 +
|theme=orange
 +
|infoboxname=Infobox Enemy
 +
|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|}}}|label={{{label|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{/race|franco|nocat=true}}</noinclude>
 +
 
 +
|label2=Gender
 +
|data2=<includeonly>{{Infobox Enemy/gender|{{{gender|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{/gender|male|nocat=true}}</noinclude>
 +
 
 +
|label3=Size
 +
|data3=<includeonly>{{Infobox Enemy/size|{{{size|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{/size|average|nocat=true}}</noinclude>
 +
 
 +
|label4=Adventure
 +
|data4=<includeonly>{{Infobox Enemy/adventure|lba1={{{lba1|}}}|lba2={{{lba2|}}}|lba3={{{lba3|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{/adventure|lba2=yes|nocat=true}}</noinclude>
 +
 
 +
|header5=Enemy
 +
|class5=subtitle
 +
 
 +
|label6=Alignment
 +
|data6=<includeonly>{{Infobox Enemy/alignment|{{{alignment|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{/alignment|emperor|nocat=true}}</noinclude>
 +
 
 +
|label7=Occupation
 +
|data7={{{occupation|<noinclude>Guard</noinclude>}}}
 +
 
 +
|label8=Requires
 +
|data8=<includeonly>{{Infobox Enemy/requires|{{{requires|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{/requires|green|nocat=true}}</noinclude>
 +
 
 +
|header9=Combat
 +
|class9=subtitle
 +
 
 +
|label10=Style
 +
|data10=<includeonly>{{Infobox Enemy/style|melee={{{melee|}}}|ranged={{{ranged|}}}|magic={{{magic|}}}|explosive={{{explosive|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{/style|melee=yes|nocat=true}}</noinclude>
 +
 
 +
|label11=Range
 +
|data11=<includeonly>{{Infobox Enemy/range|{{{range|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{/range|none|nocat=true}}</noinclude>
 +
 
 +
|label12=Speed
 +
|data12=<includeonly>{{Infobox Enemy/speed|{{{speed|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{/speed|medium|nocat=true}}</noinclude>
 +
 
 +
|label13=Damage
 +
|data13=<includeonly>{{Infobox Enemy/damage|{{{damage|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{/damage|little|nocat=true}}</noinclude>
 +
 
 +
|label14=Rate
 +
|data14=<includeonly>{{Infobox Enemy/rate|{{{rate|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{/rate|high|nocat=true}}</noinclude>
 +
 
 +
|label15=Reaction
 +
|data15=<includeonly>{{{reaction|unknown}}}</includeonly><noinclude>Moves sideways</noinclude>
 +
 
 +
|label16=Recovery
 +
|data16=<includeonly>{{Infobox Enemy/recovery|{{{recovery|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{/recovery|fast|nocat=true}}</noinclude>
 +
}}<noinclude>
 +
 
 +
<nowiki>{{Infobox Enemy
 +
|image=Franco Pike Guard.jpg
 +
|race=franco
 +
|gender=male
 +
|size=average
 +
|lba1=
 +
|lba2=yes
 +
|alignment=emperor
 +
|occupation=Guard
 +
|requires=green
 +
|melee=yes
 +
|ranged=
 +
|magic=
 +
|explosive=
 +
|range=none
 +
|speed=medium
 +
|damage=little
 +
|rate=high
 +
|reaction=Moves sideways
 +
|recovery=fast
 +
}}</nowiki>
 +
 
 +
''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.
  
<noinclude>
 
[[Category:Twinsunica - Templates]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 23:41, 4 June 2014

Infobox Enemy
Purpose

Infobox [list all]

Single tag

No [list all]

Multi-line

Yes [list all]

Protected

No [list all]

Game related

Yes [list all]

Categorization
Suppressible

Recursively [list all]

Choice

No choice [list all]

Categories

One: [list all]

Variables
Names

Multiple: [list all]

  • infobox_messages [template] (active)
  • maintenance_message [template] (active)
Subpages

This template is used as an infobox in enemies' articles. It should be the first of the article, before the general description.

Parameters

  • title: An optional title to display at the top of the infobox (case sensitive, defaults to {{PAGENAME}})
  • image: An image filename of the enemy (case sensitive, defaults to empty portrait, see Template:Articleimage)
  • race and label: 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)
  • lba1, lba2 and lba3: Whether the enemy is encountered in said adventure (defaults to "unknown", see the /adventure subpage)
  • alignment: Of which party this enemy is a follower (case insensitive, defaults to "unknown", see the /alignment subpage)
  • occupation: A short phrase about the enemy's purpose if it has one (case sensitive, defaults to not displayed)
  • requires: The magic level required to defeat this enemy (case insensitive, defaults to "unknown", see the /requires subpage)
  • melee, ranged, magic and explosive: The combat styles 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 fast this enemy repeats an attack (case insensitive, defaults to "unknown", see the /rate subpage)
  • reaction: A short phrase about how this enemy responds to being hit (case sensitive, defaults to nothing displayed)
  • recovery: How long it takes for this enemy to recover from being hit (case insensitive, defaults to "unknown", see the /recovery subpage)
  • 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=
 |lba1=
 |lba2=
 |alignment=
 |occupation=
 |requires=
 |melee=
 |ranged=
 |magic=
 |explosive=
 |range=
 |speed=
 |damage=
 |rate=
 |reaction=
 |recovery=
}}

Example

On a page called "Franco Pike Guard":
Franco Pike Guard
Enemy Portrait of Franco Pike Guard
Race

Franco [list all]

Gender

Male [list all]

Size

Average [list all]

Adventure

Twinsen's Odyssey [list all]

Enemy
Alignment

Emperor of Zeelich [list all]

Occupation

Guard

Requires

Magic Level Green [list all]

Combat
Style

Melee [list all]

Speed

Medium [list all]

Damage

Little [list all]

Rate

High [list all]

Reaction

Moves sideways

Recovery

Fast [list all]

{{Infobox Enemy
 |image=Franco Pike Guard.jpg
 |race=franco
 |gender=male
 |size=average
 |lba1=
 |lba2=yes
 |alignment=emperor
 |occupation=Guard
 |requires=green
 |melee=yes
 |ranged=
 |magic=
 |explosive=
 |range=none
 |speed=medium
 |damage=little
 |rate=high
 |reaction=Moves sideways
 |recovery=fast
}}

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.