Template:Enemy/doc: Difference between revisions

From Dragon Quest Wiki
mNo edit summary
mNo edit summary
Line 22: Line 22:
|description=
|description=
|locations=
|locations=
|collapsed=
|}}
|}}
</pre>
</pre>
Line 36: Line 37:
*''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.
*''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.
*Any unknown fields should be left blank. They will not show up in the rendered template.
*Any unknown fields should be left blank. They will not show up in the rendered template.
*'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.
==Example==
==Example==
===Sample===
===Sample===

Revision as of 14:03, 9 August 2010

{{Enemy
|float=
|image=[[Image:|200px]]
|name=
|game=
|console=
|romanji=
|hp=
|mp=
|attack=
|defense=
|agility=
|experience=
|gold=
|droppedItem=
|skills=
|spells=
|family=
|bestiaryNumber=
|captureRate=
|description=
|locations=
|collapsed=
|}}

Usage

Most parameters are self-explanatory. Here are notes on a few of them:

  • image, name, game, and console are required fields. They should be filled out for any enemy.
  • The image parameter should contain all the images which are relevant for that game/console combination.
  • The game parameter should be an article link.
  • The float parameter corresponds to the CSS float property which should be 'left', 'right', or 'none'. The default is 'left'.
  • 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)
  • bestiaryNumber is for games which have a bestiary listing.
  • 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.
  • locations should be a list of locations separated by <br/> tags. This makes them easy to read. If possible, the locations should be article links.
  • Any unknown fields should be left blank. They will not show up in the rendered template.
  • '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.

Example

Sample

#24 - Test
File:Zoma.png
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
Romanized Jap. chingchow
Description This is a test enemy.

Code

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