Template:Enemy/doc: Difference between revisions

From Dragon Quest Wiki
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<pre>
==Usage==
{{Enemy
The enemy template is used to display statistics about a specific enemy/monster/boss.  It is setup to display information about an enemy from a '''single game and console''' (i.e. Dragon Warrior - GBC).  This template is the general enemy template and should be used for all games/versions which do not have a specially designed template.  For example, enemies in Dragon Quest IX should use [[Template:DQ9Enemy|DQ9Enemy]] to display their information (from Dragon Quest IX only) as that template is more specific for that game.
|float=
 
|image=[[Image:|200px]]
Note that this template is used in the body of an article and not at the top.  For that purpose, the [[Template:Monster Infobox|Monster Infobox template]] was created.
|name=
|game=
|console=
|romanji=
|hp=
|mp=
|attack=
|defense=
|agility=
|experience=
|gold=
|droppedItem=
|skills=
|spells=
|family=
|bestiaryNumber=
|captureRate=
|description=
|locations=
|collapsed=
|}}
</pre>


==Usage==
==Parameters==
Most parameters are self-explanatory.  Here are notes on a few of them:
*float: whether the template should be floated left or right (default is left)
*''image'', ''name'', ''game'', and ''console'' are required fields.  They should be filled out for any enemy
*image: wikitext for the sprite image of this monster
*The ''image'' parameter should contain all the images which are relevant for that game/console combination.
*name: the name of the enemy
*The ''game'' parameter should be an article link.
*game: the name of the game
*The ''float'' parameter corresponds to the CSS float property which should be 'left', 'right', or 'none'The default is 'right'.
*console: the name of the console version of the game
*''captureRate'' only applies to enemies which can be captured. This would apply to games like [[Dragon Quest V]] or [[Dragon Quest Monsters]]. Its value should be game-specific (i.e. for DQV it would be a ratio like 1/256)
*romanji: the romanji version of the monster's name
*''bestiaryNumber'' is for games which have a bestiary listing.
*kanji: the kanji version of the monster's name
*''family'' should be a link to the category article for the family of enemies the enemy belongs to, for example [[Slime family]]. Not all enemies belong to a family category.
*hp: the enemy's hit points
*''locations'' should be a list of locations separated by <nowiki><br/></nowiki> tags.  This makes them easy to read.  If possible, the locations should be article links.
*mp: the enemy's magic points
*Any unknown fields should be left blank. They will not show up in the rendered template.
*attack: the enemy's attack power
*'collapsed' specifies whether the displayed table should be collapsed or not. Specifying 'false' or 'no' will not collapse the table, any other value, or omitting this parameter will cause the table to be collapsed by default.
*defense: the enemy's defense power
*agility: the enemy's agility/speed
*experience: the experience points for defeating the enemy
*gold: the gold for defeating the enemy
*droppedItem: the item that might be dropped when the enemy is defeatedshould include percentage or ratio.
*skills: any skills the enemy uses. use wikitext to link.
*spells: any spells the enemy uses use wikitext to link.
* level: the level of the monster (used by [[Holy Protection]], etc.)
*bestiaryNumber: the identifying number of the enemy in the bestiary
*captureRate: the capture rate of enemies which can be captured.  should be a percentage or ratio.
*description: any notes or other information about this monster
*locations: where the enemy can be found. can include wikimarkup for links.


==Example==
==Example==
===Sample===
===Sample===
{{Enemy
{{Enemy
|float=
|float=left
|image=[[Image:Zoma.png]]
|image=[[Image:Orgodemir DQVII PSX.gif]]
|name=Test
|name=Test
|game=Dragon Quest XXVI
|game=Dragon Quest XXVI
|console=GBC
|console=GBC
|romanji= chingchow
|romanji= chingchow
|kanji= ninanana
|hp= 400
|hp= 400
|mp= 20
|mp= 20
Line 63: Line 53:
|description=This is a test enemy.
|description=This is a test enemy.
|locations=South of Mercado, North of Coburg
|locations=South of Mercado, North of Coburg
|collapsed=false
}}
}}


===Code===
===Wiki markup===
<pre>
<pre>
{{Enemy
{{Enemy
|float=left
|float=left
|image=[[Image:Zoma.png]]
|image=[[Image:Orgodemir DQVII PSX.gif]]
|name=Test
|name=Test
|game=Dragon Quest XXVI
|game=Dragon Quest XXVI
|console=GBC
|console=GBC
|romanji= chingchow
|romanji= chingchow
|kanji= ninanana
|hp= 400
|hp= 400
|mp= 20
|mp= 20
Line 80: Line 70:
|defense=44
|defense=44
|agility=33
|agility=33
|wisdom=99
|experience=400
|experience=400
|gold=21
|gold=21
Line 86: Line 77:
|spells=Kamikaze
|spells=Kamikaze
|family=[[Slime family]]
|family=[[Slime family]]
|level=10
|bestiaryNumber=24
|bestiaryNumber=24
|captureRate=1/32
|captureRate=1/32
|description=This is a test enemy.
|description=This is a test enemy.
|locations=South of Mercado, North of Coburg
|locations=South of Mercado, North of Coburg
|collapsed=false
}}
}}
</pre>
</pre>

Latest revision as of 16:10, 22 April 2020

Usage[edit]

The enemy template is used to display statistics about a specific enemy/monster/boss. It is setup to display information about an enemy from a single game and console (i.e. Dragon Warrior - GBC). This template is the general enemy template and should be used for all games/versions which do not have a specially designed template. For example, enemies in Dragon Quest IX should use DQ9Enemy to display their information (from Dragon Quest IX only) as that template is more specific for that game.

Note that this template is used in the body of an article and not at the top. For that purpose, the Monster Infobox template was created.

Parameters[edit]

  • float: whether the template should be floated left or right (default is left)
  • image: wikitext for the sprite image of this monster
  • name: the name of the enemy
  • game: the name of the game
  • console: the name of the console version of the game
  • romanji: the romanji version of the monster's name
  • kanji: the kanji version of the monster's name
  • hp: the enemy's hit points
  • mp: the enemy's magic points
  • attack: the enemy's attack power
  • defense: the enemy's defense power
  • agility: the enemy's agility/speed
  • experience: the experience points for defeating the enemy
  • gold: the gold for defeating the enemy
  • droppedItem: the item that might be dropped when the enemy is defeated. should include percentage or ratio.
  • skills: any skills the enemy uses. use wikitext to link.
  • spells: any spells the enemy uses use wikitext to link.
  • level: the level of the monster (used by Holy Protection, etc.)
  • bestiaryNumber: the identifying number of the enemy in the bestiary
  • captureRate: the capture rate of enemies which can be captured. should be a percentage or ratio.
  • description: any notes or other information about this monster
  • locations: where the enemy can be found. can include wikimarkup for links.

Example[edit]

Sample[edit]

#24 - Test
Orgodemir DQVII PSX.gif
HP MP Experience Gold
400 20 400 21
Attack Defense Speed
23 44 33
Dropped Item Club
Locations South of Mercado, North of Coburg
Skills Ninjitsu
Spells Kamikaze
Family Slime family
Capture Rate 1/32
Bestiary # 24
Game Dragon Quest XXVI
Console GBC
Japanese Name ninanana
Romanized Jap. chingchow
Description This is a test enemy.

Wiki markup[edit]

{{Enemy
|float=left
|image=[[Image:Orgodemir DQVII PSX.gif]]
|name=Test
|game=Dragon Quest XXVI
|console=GBC
|romanji= chingchow
|kanji= ninanana
|hp= 400
|mp= 20
|attack= 23
|defense=44
|agility=33
|wisdom=99
|experience=400
|gold=21
|droppedItem=Club
|skills=Ninjitsu
|spells=Kamikaze
|family=[[Slime family]]
|level=10
|bestiaryNumber=24
|captureRate=1/32
|description=This is a test enemy.
|locations=South of Mercado, North of Coburg
}}