Difference between revisions of "Template:DDMonster"

From DDwiki
Jump to: navigation, search
(Removing auto-cat, see Template talk:DDClass‎ for more info)
(Removing boss section as well as extra table at the top of the template)
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
 
{|
 
{| style="background:transparent" align ="right"
 
|valign=center|
 
|<table width=100% border="0" cellpadding="0" cellspacing="0" style="background:transparent">
 
|-
 
|}
 
 
{| width=290px style="font-family: verdana; padding: 6px; margin: 0 0 1em 1em; font-size: 10px; background-color: #FF7777; color:black; border:1px solid; float:{{{align|right}}};"
 
{| width=290px style="font-family: verdana; padding: 6px; margin: 0 0 1em 1em; font-size: 10px; background-color: #FF7777; color:black; border:1px solid; float:{{{align|right}}};"
 
|-
 
|-
 
| align="center" colspan="2"|<font size="2">'''''{{{title}}}'''''</font>
 
| align="center" colspan="2"|<font size="2">'''''{{{title}}}'''''</font>
 +
|-
 +
| align="center" colspan="2"|<font size="2">''Desktop Dungeon Monster''</font>
 
|-  
 
|-  
 
| align="center" colspan="2"|{{{image}}}
 
| align="center" colspan="2"|{{{image}}}
Line 28: Line 23:
 
| style="border: 1px black solid; background-color: #FFFFFF"|{{{notes}}}
 
| style="border: 1px black solid; background-color: #FFFFFF"|{{{notes}}}
 
|-
 
|-
| align="center" colspan="2"|<font size="2">'''{{{boss}}}'''</font>
+
|}</includeonly><noinclude>
|-
+
| align="center" colspan="2"|{{{bossimage}}}
+
|-
+
| style="white-space:nowrap"|'''Attack'''
+
| style="border: 1px black solid; background-color: #FFFFFF"|{{{bossattack}}}
+
|-
+
| style="white-space:nowrap"|'''Health'''
+
| style="border: 1px black solid; background-color: #FFFFFF"|{{{bosshealth}}}
+
|-
+
| style="white-space:nowrap"|'''Abilities'''
+
| style="border: 1px black solid; background-color: #FFFFFF"|{{{bossabilities}}}
+
|-
+
|}
+
  
</includeonly>
+
This template is used on each monster's article but can be included elsewhere. The "Boss" section of this template was split into [[Template:DDBoss]] as not every monster has a boss version.
  
 +
===Usage===
 
<!-- Example code usage not including in viewable template -->
 
<!-- Example code usage not including in viewable template -->
<noinclude>
 
This template is used on each monster's article but can be included elsewhere. Including this template on any page will auto categorize it Monsters
 
Usage:
 
 
<pre><nowiki>
 
<pre><nowiki>
 
{{DDMonster
 
{{DDMonster
Line 58: Line 38:
 
|unlock=How to unlock
 
|unlock=How to unlock
 
|notes=Notes on the monster
 
|notes=Notes on the monster
|boss=Boss Name
+
}}
|bossimage=[[File:GharbadTheWhoaLarger.png|50px]]
+
|bossattack=225
+
|bosshealth=
+
|bossabilities=Boss abilities
+
|}}
+
 
</nowiki></pre>
 
</nowiki></pre>
  
 +
===Example===
 
<!-- Display a sample of usage -->
 
<!-- Display a sample of usage -->
 
{{DDMonster
 
{{DDMonster
Line 75: Line 51:
 
|unlock=How to unlock
 
|unlock=How to unlock
 
|notes=Notes on the monster
 
|notes=Notes on the monster
|boss=Boss Name
+
}}
|bossimage=[[File:GharbadTheWhoaLarger.png|50px]]
+
|bossattack=225
+
|bosshealth=
+
|bossabilities=Boss abilities
+
|}}
+
 
[[Category:Templates]]
 
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Revision as of 21:20, 4 January 2011


This template is used on each monster's article but can be included elsewhere. The "Boss" section of this template was split into Template:DDBoss as not every monster has a boss version.

Usage

{{DDMonster
|title=Monster Name
|image=[[File:Goat.png|50px]]
|attack=100%
|health=75%
|abilities=Monster abilities
|unlock=How to unlock
|notes=Notes on the monster
}}

Example

Monster Name
Desktop Dungeon Monster
Goat.png
Attack 100%
Health 75%
Abilities Monster abilities
Unlocked by How to unlock
Notes Notes on the monster