Difference between revisions of "Template:Infobox Enemy"

From Twinsuniverse
Jump to: navigation, search
m (finally fixed: leaving the title parameter empty now still displays a title row)
m (replaced some old code with categorizer syntax)
Line 49: Line 49:
 
==Example==
 
==Example==
 
On a page called "Franco Pike Guard":
 
On a page called "Franco Pike Guard":
</noinclude><includeonly>{{#ifeq: {{lc: {{{nocat|false}}} }} | false | [[Category:Enemies]] }}</includeonly>
+
</noinclude><includeonly>{{categorizer|category=Enemies|display=emptyinfobox|nocat={{{nocat|false}}}}}</includeonly>
 
{{Infobox
 
{{Infobox
 
  |title=<includeonly>{{#if: {{{title|}}} |{{{title|}}}}}</includeonly><noinclude>Franco Pike Guard</noinclude>
 
  |title=<includeonly>{{#if: {{{title|}}} |{{{title|}}}}}</includeonly><noinclude>Franco Pike Guard</noinclude>

Revision as of 16:52, 3 January 2013

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.