Difference between revisions of "Template:Monster info"

From CrawlWiki
Jump to: navigation, search
(Also gives description and quote(s))
m
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{#invoke:Monster|monster_info|{{{1|}}}}}</includeonly><noinclude>This template will generate an infobox followed by a description and quote(s) for a given monster. For example:
+
<includeonly>{{ {{{|safesubst:}}}#invoke:Monster|monster_info|{{{1|}}}|{{{2|}}}}}</includeonly><noinclude>This template will generate an infobox followed by a description and quote(s) for a given monster. For example:
 
  <nowiki>{{monster info|ogre}}</nowiki>
 
  <nowiki>{{monster info|ogre}}</nowiki>
 
gives you:
 
gives you:
Line 5: Line 5:
  
 
If the monster name is omitted, the page's title is used.
 
If the monster name is omitted, the page's title is used.
 +
 +
You can specify the tile explicitly as the second parameter (optional):
 +
<nowiki>{{monster info|spellforged servitor|spellforged servitor (monster)}}</nowiki>
 +
This might be useful when the tile name doesn't match the monster name.
  
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>

Latest revision as of 13:33, 26 January 2024

This template will generate an infobox followed by a description and quote(s) for a given monster. For example:

{{monster info|ogre}}

gives you:

ogre OOgre.png
HP 18-37
HD 5
XP 119
Speed 10 (atk: 150%)
AC 1
EV 6
Will 20
Attack1 20 (hit: plain)


Resistances None
Vulnerabilities None
Habitat Land
Intelligence Human
Uses Starting equipment
Open doors
Holiness Natural
Size Large
Type ogre, ogre
Flags Speaks
Warm-blooded
A large, ugly, and fat creature, distantly related to orcs and goblins. It is tremendously strong.

“The little princess, asleep in her cradle, floated on the water, and at last she was cast up on the shore of a beautiful country, where, however, very few people dwelt since the ogre Ravagio and his wife Tourmentine had gone to live there-for they ate up everybody. Ogres are terrible people. When once they have tasted raw human flesh they will hardly eat anything else, and Tourmentine always knew how to make some body come their way, for she was half a fairy.”
-Marie-Catherine Le Jumel de Barneville, Baronne d’Aulnoy, “’Orangier et l’Abeille”. 1697.

“NO. Layers. Onions have layers. Ogres have layers. Onions have layers. You get it? We both have layers.”
-Shrek. 2001.

If the monster name is omitted, the page's title is used.

You can specify the tile explicitly as the second parameter (optional):

{{monster info|spellforged servitor|spellforged servitor (monster)}}

This might be useful when the tile name doesn't match the monster name.