Difference between revisions of "Template:Monster"

From CrawlWiki
Jump to: navigation, search
(Let's try using a default value for tile)
(16 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<div style="margin: 1.4em; margin-top:0; margin-right:0; padding: 0px; float: right; border:none;">
+
{{#set:Monster glyph={{{glyph}}}}}<div style="margin: 1.4em; margin-top:0; margin-right:0; padding: 0px; float: right; border:none;">
 
{| class="prettytable" style="border:none; margin:0; padding:0; text-align:left"
 
{| class="prettytable" style="border:none; margin:0; padding:0; text-align:left"
!colspan="2" style="font-size:larger;"|{{{name}}}&emsp;{{{glyph}}}&emsp;[[File:{{PAGENAME}}.png|32px]]
+
!colspan="2" style="font-size:larger;"|{{{name}}}&emsp;{{{glyph}}}&emsp;{{{tile|[[File:{{PAGENAME}}.png|32px]]}}}
 
|-
 
|-
 
! style="width:80px;" | [[Hit points|HP]]
 
! style="width:80px;" | [[Hit points|HP]]
Line 12: Line 12:
 
| [[Monster experience::{{{xp}}}]]
 
| [[Monster experience::{{{xp}}}]]
 
|-
 
|-
! [[Speed]]
+
! [[Movement|Speed]]
| [[Monster speed::{{{speed}}}]]
+
| {{{speed}}} {{#set:Monster speed={{#invoke:String|first_word|{{{speed}}}}}}}
 
|-
 
|-
 
! [[Armour class|AC]]
 
! [[Armour class|AC]]
Line 22: Line 22:
 
|-
 
|-
 
! [[Magic resistance|MR]]
 
! [[Magic resistance|MR]]
| [[Monster magic resistance::{{{magic_resistance}}}]]
+
| {{{magic_resistance}}} {{#set:Monster magic resistance={{#invoke:String|fix_magic_resistance|{{{magic_resistance}}}}}}}
|-
+
{{if|{{{attack1|}}}|
 +
{{#!:|-
 
! Attack<sup>1</sup>
 
! Attack<sup>1</sup>
 
| {{{attack1}}}
 
| {{{attack1}}}
|-
+
}}}}
 +
{{if|{{{attack2|}}}|
 +
{{#!:|-
 
! Attack<sup>2</sup>
 
! Attack<sup>2</sup>
 
| {{{attack2}}}
 
| {{{attack2}}}
|-
+
}}}}
 +
{{if|{{{attack3|}}}|
 +
{{#!:|-
 
! Attack<sup>3</sup>
 
! Attack<sup>3</sup>
 
| {{{attack3}}}
 
| {{{attack3}}}
|-
+
}}}}
 +
{{if|{{{attack4|}}}|
 +
{{#!:|-
 
! Attack<sup>4</sup>
 
! Attack<sup>4</sup>
 
| {{{attack4}}}
 
| {{{attack4}}}
|-
+
}}}}
! [[Corpse|Max Chunks]]
 
| [[Monster max chunks::{{{max_chunks}}}]]
 
 
|-
 
|-
 
! [[Corpse|Type of Meat]]
 
! [[Corpse|Type of Meat]]
Line 52: Line 57:
 
|-
 
|-
 
! [[Monster intelligence|Intelligence]]
 
! [[Monster intelligence|Intelligence]]
| [[Monster intelligence::{{{intelligence}}}]]
+
| {{{intelligence}}} {{#set:Monster intelligence={{#invoke:String|fix_monster_intelligence|{{{intelligence}}}}}}}
 
|-
 
|-
 
! [[Item usage|Uses]]
 
! [[Item usage|Uses]]
Line 61: Line 66:
 
|-
 
|-
 
! [[Size]]
 
! [[Size]]
| [[Monster size::{{{size}}}]]
+
| {{{size}}} {{#set:Monster size={{#invoke:String|fix_monster_size|{{{size}}}}}}}
 
|-
 
|-
 
! [[Type]]
 
! [[Type]]

Revision as of 19:46, 20 August 2019

{{{name}}} {{{glyph}}} 32px
HP {{{hp_range}}}
HD {{{hit_dice}}}
XP {{{xp}}}
Speed {{{speed}}}
"{{{speed}}}" is not a number.
AC {{{armour_class}}}
EV {{{evasion}}}
MR {{{magic_resistance}}}
"{{{magic_resistance}}}" is not a number.



Type of Meat {{{meat}}}
Resistances {{{resistances}}}
Vulnerabilities {{{vulnerabilities}}}
Habitat {{{habitat}}}
Intelligence {{{intelligence}}}
Uses {{{item_use}}}
Holiness {{{holiness}}}
Size {{{size}}}
Type {{{genus}}}, {{{species}}}
Flags {{{flags}}}