Template:EnemyList/doc: Difference between revisions

From Dragon Quest Wiki
(updated to match functional updates)
 
mNo edit summary
Line 23: Line 23:
<pre>{{EnemyList|note|text=Enemy A can only be fought at night!}}</pre>
<pre>{{EnemyList|note|text=Enemy A can only be fought at night!}}</pre>
*note: A required parameter specifying the note to be added to the table.
*note: A required parameter specifying the note to be added to the table.
*includeDrops: An optional parameter.  Should be specified if the header specifies the 'includeDrops' parameter.
*text: A required parameter with the text to be displayed.
*text: A required parameter with the text to be displayed.
===Footer===
===Footer===
Line 40: Line 41:
{{EnemyList|entry|enemy=[[Flamer]]|gold=10|exp=1000|drop=Medical herbs|rate=1/64}}
{{EnemyList|entry|enemy=[[Flamer]]|gold=10|exp=1000|drop=Medical herbs|rate=1/64}}
{{EnemyList|entry|enemy=[[Shadow]]|gold=10|exp=102|drop=None|rate=N/A}}
{{EnemyList|entry|enemy=[[Shadow]]|gold=10|exp=102|drop=None|rate=N/A}}
{{EnemyList|note|text=Flamers only appear after defeating the Witch King boss}}
{{EnemyList|note|includeDrops|text=Flamers only appear after defeating the Witch King boss}}
{{EnemyList|footer}}
{{EnemyList|footer}}



Revision as of 14:20, 26 July 2010

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|includeDrops|title=[[Dragon Quest II]]|subtitle=NES}}
  • header: A required parameter which marks this as the start of a enemy list table.
  • includeDrops: An optional parameter marking whether the table will display item drop information.
  • 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|exp=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.
  • drop: An optional parameter for specifying an item or items that the enemy might drop. Should be used only when 'includeDrops' is specified in the header.
  • rate: An optional parameter for specifying the drop rate for a drop item or items. Should be used only when 'includeDrops' is specified in the header.

Note

A note specifies additional information about the enemy list.

{{EnemyList|note|text=Enemy A can only be fought at night!}}
  • note: A required parameter specifying the note to be added to the table.
  • includeDrops: An optional parameter. Should be specified if the header specifies the 'includeDrops' parameter.
  • text: A required parameter with the text to be displayed.

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 1 G 1
Zoma 2 G 2
Healer 3 G 4
Giant Worm 4 G 5


Dragon Quest V (DS)  
Enemy Gold Exp Drop Item
Flamer 10 G 1000 Medical herbs 1/64
Shadow 10 G 102 None N/A
Note: Flamers only appear after defeating the Witch King boss


Code

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

{{EnemyList|header|includeDrops|title=[[Dragon Quest V]]|subtitle=DS}}
{{EnemyList|entry|enemy=[[Flamer]]|gold=10|exp=1000|drop=Medical herbs|rate=1/64}}
{{EnemyList|entry|enemy=[[Shadow]]|gold=10|exp=102|drop=None|rate=N/A}}
{{EnemyList|note|text=Flamers only appear after defeating the Witch King boss}}
{{EnemyList|footer}}