Difference between revisions of "Template:Monster"
From DDO Compendium
MNDeveloper (talk | contribs) |
MNDeveloper (talk | contribs) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 61: | Line 61: | ||
<tr><td> | <tr><td> | ||
<table class="table table-condensed"> | <table class="table table-condensed"> | ||
<tr><td class="col-sm-3">'''Type:''' [[Category:{{{creaturetype}}} Type]]{{PageLink|{{{creaturetype}}}|{{{creaturetype}}} Type}}</td></tr> | <tr><td class="col-sm-3" style="vertical-align: top !important;">'''Type:'''</td><td>[[Category:{{{creaturetype}}} Type]]{{PageLink|{{{creaturetype}}}|{{{creaturetype}}} Type}}</td></tr> | ||
<tr><td class="col-sm-3">'''Race:''' [[Category:{{{race}}} Race]]{{PageLink|{{{race}}}|{{{race}}} Race}}</td></tr> | <tr><td class="col-sm-3" style="vertical-align: top !important;">'''Race:'''</td><td>[[Category:{{{race}}} Race]]{{PageLink|{{{race}}}|{{{race}}} Race}}</td></tr> | ||
{{#if: {{{subrace|}}} | <tr><td class="col-sm-3">'''Sub Race:''' {{PageLink|{{{subrace}}}|{{{subrace}}} Sub Race}}</td></tr>}}{{#if: {{{monstermanual|}}} | <tr><td class="col-sm-3">'''Monster Manual Type:''' {{{monstermanual}}}</td></tr>}}{{#if: {{{alignment|}}} | <tr><td class="col-sm-3">'''Alignment:''' [[Category:Monsters with {{{alignment}}} Alignment]] {{{alignment}}}</td></tr>}}{{#if: {{{dr||}}} | <tr><td class="col-sm-3">'''Damage Reduction:''' {{{dr}}}</td></tr>}}{{#if: {{{sr||}}} | <tr><td class="col-sm-3">'''Spell Resistance:''' {{{sr}}}</td></tr>}}{{#if: {{{attack|}}} | <tr><td class="col-sm-3">'''Attack:''' {{{attack}}}</td></tr>}}{{#if: {{{spells|}}} | <tr><td class="col-sm-3">'''Spells:''' {{{spells}}}</td></tr>}}{{#if: {{{description|}}} | <tr><td class="col-sm-3">'''Description:'''</td><td | {{#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>}} | ||
<tr><td class="col-sm-3">'''Found In:'''< | <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> | ||
</table></td></tr></table></div> | </table></td></tr></table></div> | ||
<div class="col-sm-6"> | <div class="col-sm-6"> | ||
Line 77: | Line 77: | ||
==== Other ==== | ==== Other ==== | ||
<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> | <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:Missing Sub Races]]}}}}{{#if: {{{creaturetype|}}}|{{#ifexist: {{{creaturetype}}} Type ||[[Category:Missing Monster Types]]}}}} | {{#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 | |
name | The name of the monstor. |
creaturetype | What type of creature is this. |
race | What race is this enemy. |
monstermanual | What does the monster manual classify this as, leave blank if not in MM. |
alignment | What is the enemies alignment. |
attack | Enter the melee or ranged attack styles and weapons. |
spells | If they are a spellcaster, list the spells. |
dr | Enter any specific Damage Reduction this enemy has. Use Template:MonsterDR. |
sr | What is the monsters spell resistance. |
description | Describe the enemy, and special moves, etc. |
notes | Any notes about the enemy. |
showraceinfo | Any value in here will show the text about the race. This should be only on the base races (i.e. Kobold, |
subrace | The subrace this is of the main race |
image | The 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.
| ||||||
|
[[File:{{{name}}}.png|center|300px|]] |