Template:EnemyList/doc

< Template:EnemyList
Revision as of 22:16, 24 July 2010 by FlyingRagnar (talk | contribs) (updated to match template updates)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The EnemyList template is used to display roaming enemy information for various locations in Dragon Quest games.

Usage

In almost all cases, using this template should be preceded by a heading such as Roaming Enemies on the article it is being transcluded onto. This is because there is no label marking the table as roaming enemy data within this template. This is consistent with other location templates.

Header

A header call to this template should be the first usage of this template on any page.

{{EnemyList|header}}
  • header: A required parameter which marks this as the start of a enemy list table.
  • title: Title to be used on the table. This should be the name of the game if there is more than one enemy list on an article. Can be an interwiki link when applicable.
  • subtitle: Subtitle to be included on the table header. This parameter is optional and most often will be the console version of the game name which is used for the title.

Entries

Each entry in the enemy table is represented by a single template call.

{{Enemy|entry|enemy=[[Slime]]|gold=1|experience=200}}
  • entry: A required parameter which marks this as a single shop table entry.
  • enemy: An interwiki link to the enemy article.
  • gold: The amount of gold earned when the enemy is defeated.
  • experience: The amount of experience earned when the enemy is defeated.

Footer

The footer call marks the end of the enemy table.

{{EnemyList|footer}}
  • footer: A required parameter marking the template as the footer.

Example

Sample

Dragon Quest IV (DS)  
Enemy Gold Exp
Slime {{{gold}}} G {{{exp}}}
Zoma {{{gold}}} G {{{exp}}}
Healer {{{gold}}} G {{{exp}}}
Giant Worm {{{gold}}} G {{{exp}}}


Dragon Quest V (DS)  
Enemy Gold Exp
Flamer {{{gold}}} G {{{exp}}}
Shadow {{{gold}}} G {{{exp}}}

Code

{{EnemyList|header|title=[[Dragon Quest IV]]|subtitle=DS}}
{{EnemyList|entry|enemy=[[Slime]]|1|1}}
{{EnemyList|entry|enemy=[[Zoma]]|2|2}}
{{EnemyList|entry|enemy=[[Healer]]|3|4}}
{{EnemyList|entry|enemy=[[Giant Worm]]|4|5}}
{{EnemyList|footer}}

{{EnemyList|header|title=[[Dragon Quest V]]|subtitle=DS}}
{{EnemyList|entry|enemy=[[Flamer]]|10|1000}}
{{EnemyList|entry|enemy=[[Shadow]]|10|102}}
{{EnemyList|footer}}