Template:EnemyList/doc: Difference between revisions

mNo edit summary
updated to match functional updates
Line 5: Line 5:
===Header===
===Header===
A header call to this template should be the first usage of this template on any page.
A header call to this template should be the first usage of this template on any page.
<pre>{{EnemyList|header|title=[[Dragon Quest II]]|subtitle=NES}}</pre>
<pre>{{EnemyList|header|includeDrops|title=[[Dragon Quest II]]|subtitle=NES}}</pre>
*header: A required parameter which marks this as the start of a enemy list table.
*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.
*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.
*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.
Line 16: Line 17:
*gold: The amount of gold earned when the enemy is defeated.
*gold: The amount of gold earned when the enemy is defeated.
*experience: The amount of experience 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.
<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.
*text: A required parameter with the text to be displayed.
===Footer===
===Footer===
The footer call marks the end of the enemy table.
The footer call marks the end of the enemy table.
Line 29: Line 37:
{{EnemyList|footer}}
{{EnemyList|footer}}


{{EnemyList|header|title=[[Dragon Quest V]]|subtitle=DS}}
{{EnemyList|header|includeDrops|title=[[Dragon Quest V]]|subtitle=DS}}
{{EnemyList|entry|enemy=[[Flamer]]|gold=10|exp=1000}}
{{EnemyList|entry|enemy=[[Flamer]]|gold=10|exp=1000|drop=Medical herbs|rate=1/64}}
{{EnemyList|entry|enemy=[[Shadow]]|gold=10|exp=102}}
{{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}}
{{EnemyList|footer}}
===Code===
===Code===
<pre>
<pre>
Line 42: Line 52:
{{EnemyList|footer}}
{{EnemyList|footer}}


{{EnemyList|header|title=[[Dragon Quest V]]|subtitle=DS}}
{{EnemyList|header|includeDrops|title=[[Dragon Quest V]]|subtitle=DS}}
{{EnemyList|entry|enemy=[[Flamer]]|gold=10|exp=1000}}
{{EnemyList|entry|enemy=[[Flamer]]|gold=10|exp=1000|drop=Medical herbs|rate=1/64}}
{{EnemyList|entry|enemy=[[Shadow]]|gold=10|exp=102}}
{{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}}
{{EnemyList|footer}}
</pre>
</pre>