Template:Monster: Difference between revisions

Template:Monster: Difference between revisions

Undo revision 239 by Lyra (talk)
Tags: Undo Reverted
Undo revision 225 by Lyra (talk)
Tags: Undo Reverted
Line 1: Line 1:
<includeonly><span style="display:inline-block; text-align:center; margin:5px; vertical-align:top;">https://hymnro.com/data/monsters/{{{1}}}.gif<br>[https://hymnro.com/?module=monster&action=view&id={{{1}}} {{{2}}} (#{{{1}}})]</span></includeonly><noinclude>
<includeonly>https://hymnro.com/data/monsters/{{{1}}}.gif<br>[https://hymnro.com/?module=monster&action=view&id={{{1}}} {{{2}}}]</includeonly><noinclude>
This template displays a monster with its sprite above the name, designed for inline/tiled display.
This template displays a monster with its sprite and a link to the database.
 
The sprite image is loaded from hymnro.com and the name links to the monster database.
The monster ID is shown in parentheses and is part of the link.


== Usage ==
== Usage ==
Line 9: Line 6:


== Examples ==
== Examples ==
* <code><nowiki>{{Monster|1002|Poring}}</nowiki></code> - Shows sprite, "Poring (#1002)" linked to database
* <code><nowiki>{{Monster|1002|Poring}}</nowiki></code>
* <code><nowiki>{{Monster|1063|Lunatic}}</nowiki></code> - Shows sprite, "Lunatic (#1063)" linked to database
* <code><nowiki>{{Monster|1063|Lunatic}}</nowiki></code>
* <code><nowiki>{{Monster|1658|Egnigem Cenia}}</nowiki></code> - Shows sprite, "Egnigem Cenia (#1658)" linked to database
* <code><nowiki>{{Monster|1023|Orc Warrior}}</nowiki></code>
 
Multiple monsters will tile horizontally:
<pre>{{Monster|1002|Poring}} {{Monster|1063|Lunatic}} {{Monster|1007|Fabre}}</pre>
 
== Note ==
This template requires <code>$wgAllowExternalImages = true;</code> in LocalSettings.php to display the sprite images.
 
Alternatively, add to LocalSettings.php:
<pre>
$wgAllowExternalImagesFrom = array('https://hymnro.com/');
</pre>


[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Revision as of 16:12, 28 December 2025

This template displays a monster with its sprite and a link to the database.

Usage

{{Monster|MOB_ID|Monster Name}}

Examples

  • {{Monster|1002|Poring}}
  • {{Monster|1063|Lunatic}}
  • {{Monster|1023|Orc Warrior}}