Template:EnemyList/doc: Difference between revisions

implementing optional haunt column
semantic footnote
 
Line 23: Line 23:
*haunt: The monster's haunt.
*haunt: The monster's haunt.


===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.
<pre>{{EnemyList|footer}}</pre>
<pre>{{EnemyList|footer}}</pre>
*footer: A required parameter marking the template as the footer.
*footer: A required parameter marking the template as the footer.
*note: An optional parameter adding a footnote after the table for additional information about the enemy list, such as "Enemy A can only be fought at night!"
==Example==
==Example==
===Sample===
===Sample===
Line 44: Line 40:
{{EnemyList|entry|enemy=[[Flamethrower]]|gold=10|exp=1000|drop=Medicinal herbs|rate=1/64}}
{{EnemyList|entry|enemy=[[Flamethrower]]|gold=10|exp=1000|drop=Medicinal 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|includeDrops|text=Flamers only appear after defeating the Witch King boss}}
{{EnemyList|footer|note=Flamers only appear after defeating the Witch King boss}}
{{EnemyList|footer}}


===Code===
===Code===
Line 59: Line 54:
{{EnemyList|entry|enemy=[[Flamethrower]]|gold=10|exp=1000|drop=Medicinal herbs|rate=1/64}}
{{EnemyList|entry|enemy=[[Flamethrower]]|gold=10|exp=1000|drop=Medicinal 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|includeDrops|text=Flamers only appear after defeating the Witch King boss}}
{{EnemyList|footer|note=Flamers only appear after defeating the Witch King boss}}
{{EnemyList|footer}}
</pre>
</pre>