Difference between revisions of "Template:Monster"

From DDO Compendium
 
(44 intermediate revisions by 2 users not shown)
Line 7: Line 7:
|monstermanual =  
|monstermanual =  
|race =  
|race =  
|subrace=
|alignment =  
|alignment =  
|attack=
|attack=
Line 15: Line 16:
|notes =  
|notes =  
|showraceinfo =
|showraceinfo =
|image=
}}</pre>
}}</pre>
{{TemplateDocumentation
{{TemplateDocumentation
Line 43: Line 45:
|parameter11name = notes
|parameter11name = notes
|parameter11description = Any notes about the enemy.
|parameter11description = Any notes about the enemy.
|parameter11name = showraceinfo
|parameter12name = showraceinfo
|parameter11description = Any value in here will show the text about the race.  This should be only on the base races (i.e. Kobold, Troglodyte, etc.  Not on the others: Troglodyte Chief, etc.
|parameter12description = Any value in here will show the text about the race.  This should be only on the base races (i.e. Kobold,  
|parameter13name = subrace
|parameter13description = The subrace this is of the main race
|parameter14name = image
|parameter14description = The name of the image if the default doesn't work.
}}</noinclude>{{#if: {{{showraceinfo|}}}|=== {{{race}}}===
}}</noinclude>{{#if: {{{showraceinfo|}}}|=== {{{race}}}===
{{:{{{race}}} Race}}}}<table class="item-table background-color">
{{RaceDescription|{{{race}}}}}}}
<tr>
<div class="row">
<td class="item-info-side">
<div class="col-sm-6">
<table class="background-color full">
<table class="table table-bordered table-striped table-condensed">
<tr>
<tr><td>
<td>
<table class="table table-condensed"><tr><td class="col-sm-12 center"><span class="big">{{{name}}}</div></td></tr></table>
<table class="background-color full">
</td></tr>
<tr>
<tr><td>
<td class="title">
<table class="table table-condensed">
'''{{{name}}}'''
<tr><td class="col-sm-3" style="vertical-align: top !important;">'''Type:'''</td><td>[[Category:{{{creaturetype}}} Type]]{{PageLink|{{{creaturetype}}}|{{{creaturetype}}} Type}}</td></tr>
</td>
<tr><td class="col-sm-3" style="vertical-align: top !important;">'''Race:'''</td><td>[[Category:{{{race}}} Race]]{{PageLink|{{{race}}}|{{{race}}} Race}}</td></tr>
</tr>
{{#if: {{{subrace|}}} | <tr><td class="col-sm-3" style="vertical-align: top !important;">'''Sub Race:'''</td><td>{{PageLink|{{{subrace}}}|{{{subrace}}} Sub Race}}</td></tr>}}{{#if: {{{monstermanual|}}} | <tr><td class="col-sm-3" style="vertical-align: top !important;">'''Monster Manual Type:'''</td><td>{{{monstermanual}}}</td></tr>}}{{#if: {{{alignment|}}} | <tr><td class="col-sm-3" style="vertical-align: top !important;">'''Alignment:''' [[Category:Monsters with {{{alignment}}} Alignment]]</td><td>{{{alignment}}}</td></tr>}}{{#if: {{{dr||}}} | <tr><td class="col-sm-3" style="vertical-align: top !important;">'''Damage Reduction:'''</td><td>{{{dr}}}</td></tr>}}{{#if: {{{sr||}}} | <tr><td class="col-sm-3" style="vertical-align: top !important;">'''Spell Resistance:'''</td><td>{{{sr}}}</td></tr>}}{{#if: {{{attack|}}} | <tr><td class="col-sm-3" style="vertical-align: top !important;">'''Attack:'''</td><td>{{{attack}}}</td></tr>}}{{#if: {{{spells|}}} | <tr><td class="col-sm-3">'''Spells:'''</td><td>{{{spells}}}</td></tr>}}{{#if: {{{description|}}} | <tr><td class="col-sm-3" style="vertical-align: top !important;">'''Description:'''</td><td>{{{description}}}</td></tr>}}{{#if: {{{notes|}}} | <tr><td class="col-sm-3" style="vertical-align: top !important;">'''Notes:'''</td><td>{{{notes}}}</td></tr>}}
</table>
<tr><td class="col-sm-3" style="vertical-align: top !important;">'''Found In:'''</td><td style="">{{#ifeq: {{FULLPAGENAME}} |Template:Monster||{{#dpl:| uses=Template:Quest¦Template:Wilderness¦Template:Challenge|linksto={{FULLPAGENAME}}|noresultsheader=None|ordermethod=title}}}}</td></tr>
</td>
</table></td></tr></table></div>
</tr>
<div class="col-sm-6">
<tr>
<table class="table table-bordered table-condensed center">
<td>
<tr style="background: rgb(0,0,0)"><td class="img-fluid">[[File:{{#if: {{{image|}}}|{{{image}}}|{{{name}}}}}.png|center|300px|]]</td></tr>
'''Type:'''&nbsp;[[Category:{{{creaturetype}}} Type]][[{{{creaturetype}}}]]<br>
'''Race:'''&nbsp;[[Category:{{{race}}} Race]][[{{{race}}}]]<br>{{#if: {{{monstermanual|}}} | '''Monster Manual Type:''' {{{monstermanual}}}<br>}}{{#if: {{{alignment|}}} | '''Alignment:'''[[Category:Monsters with {{{alignment}}} Alignment]] {{{alignment}}}<br>}}{{#if: {{{dr||}}}|'''Damage Reduction:'''  
{{{dr}}}<br>}}{{#if: {{{sr||}}}|'''Spell Resistance:'''  
{{{sr}}}<br>}}{{#if: {{{attack|}}} |'''Attack:''' {{{attack}}}<br>}}{{#if: {{{spells|}}} |'''Spells:''' {{{spells}}}<br>}}{{#if: {{{description|}}} |'''Description:''' {{{description}}}<br>}}{{#if: {{{notes|}}} |'''Notes:''' {{{notes}}}<br>}}
'''Found In:'''
<div style="-webkit-column-count:3;column-count:3;">{{#ifeq: {{FULLPAGENAME}} |Template:Monster||{{#dpl:| uses=Template:Quest|linksto={{FULLPAGENAME}}|noresultsheader=None|ordermethod=title}}}}</div>
</td>
</tr>
</table>
</td>
<td class="item-image-side" ">
<table class="item-image-table background-color" >
<tr><td class="item-image-notext">[[File:{{{name}}}.png|300px|]]</td></tr>
</table>
</td>
</tr>
</table>
</table>
</div>
</div>
=== Other Members of the {{{race}}} Race ===
=== Other Members of the {{{race}}} Race ===
==== Named ====
==== Named ====
<div style="-webkit-column-count:3;column-count:3;">{{#ifeq: {{FULLPAGENAME}} |Template:Monster||{{#dpl:| category={{{race}}} Race|noresultsheader=None|columns=3|uses=Template:NamedEnemy|ordermethod=title}}}}</div>
<div style="-webkit-column-count:4;column-count:4;">{{#ifeq: {{FULLPAGENAME}} |Template:Monster||{{#dpl:| category={{{race}}} Race|noresultsheader=None|uses=Template:NamedEnemy|ordermethod=title}}}}</div>
==== Other ====
==== Other ====
<div style="-webkit-column-count:3;column-count:3;">{{#ifeq: {{FULLPAGENAME}} |Template:Monster||{{#dpl:| category={{{race}}} Race|noresultsheader=None|uses=Template:Monster|ordermethod=title}}}}</div>
<div style="-webkit-column-count:4;column-count:4;">{{#ifeq: {{FULLPAGENAME}} |Template:Monster||{{#dpl:| category={{{race}}} Race|noresultsheader=None|uses=Template:Monster|ordermethod=title}}}}</div>
{{#if: {{{race|}}}|{{#ifexist: {{{race}}} Race ||[[Category:Missing Races]]}}}}{{#if: {{{subrace|}}}|{{#ifexist: {{{subrace}}} Sub Race |[[Category: {{{subrace}}} Sub Race]]|[[Category:Missing Sub Races]]}}}}{{#if: {{{creaturetype|}}}|{{#ifexist: {{{creaturetype}}} Type ||[[Category:Missing Monster Types]]}}}}

Latest revision as of 19:40, 3 October 2023


{{Template:Monster
|name = 
|creaturetype = 
|monstermanual = 
|race = 
|subrace=
|alignment = 
|attack=
|spells=
|dr = 
|sr = 
|description = 
|notes = 
|showraceinfo =
|image=
}}

Monster[edit]

This template is used to render information about a generic monster. Example of the Template in Use: Troglodyte.

Usage[edit]

Parameter Documentation
nameThe name of the monstor.
creaturetypeWhat type of creature is this.
raceWhat race is this enemy.
monstermanualWhat does the monster manual classify this as, leave blank if not in MM.
alignmentWhat is the enemies alignment.
attackEnter the melee or ranged attack styles and weapons.
spellsIf they are a spellcaster, list the spells.
drEnter any specific Damage Reduction this enemy has. Use Template:MonsterDR.
srWhat is the monsters spell resistance.
descriptionDescribe the enemy, and special moves, etc.
notesAny notes about the enemy.
showraceinfoAny value in here will show the text about the race. This should be only on the base races (i.e. Kobold,
subraceThe subrace this is of the main race
imageThe name of the image if the default doesn't work.

Template

Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.


{{{name}}}
Type:[[Category:{{{creaturetype}}} Type]][[{{{creaturetype}}} Type|{{{creaturetype}}}]]
Race:[[Category:{{{race}}} Race]][[{{{race}}} Race|{{{race}}}]]
Found In:
[[File:{{{name}}}.png|center|300px|]]

Other Members of the {{{race}}} Race[edit]

Named[edit]

Other[edit]