Created page with "<includeonly>https://hymnro.com/data/monsters/{{{1}}}.gif [https://hymnro.com/?module=monster&action=view&id={{{1}}} {{{2}}} (#{{{1}}})]</includeonly><noinclude> This template displays a monster with its sprite and a link to the database. == Usage == <pre>{{Monster|MOB_ID|Monster Name}}</pre> == Examples == * <code><nowiki>{{Monster|1002|Poring}}</nowiki></code> * <code><nowiki>{{Monster|1063|Lunatic}}</nowiki></code> * <code><nowiki>{{Monster|1023|Orc Warrior}}</nowik..." Â |
No edit summary Tag: Manual revert  |
||
| (10 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>https://hymnro.com/data/monsters/{{{1}}}.gif [https://hymnro.com/?module=monster&action=view&id={{{1}}} {{{2}}} (#{{{1}}})]</includeonly><noinclude> | <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> | ||
This template displays a monster with its sprite and | This template displays a monster with its sprite above the name, designed for inline/tiled display. | ||
 | 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 == | ||
<pre>{{Monster|MOB_ID|Monster Name}}</pre> | <pre>{{Monster|MOB_ID|Monster Name}}</pre> | ||
== Examples == | == Examples == | ||
* <code><nowiki>{{Monster|1002|Poring}}</nowiki></code> | * <code><nowiki>{{Monster|1002|Poring}}</nowiki></code> - Shows sprite, "Poring (#1002)" linked to database | ||
* <code><nowiki>{{Monster|1063|Lunatic}}</nowiki></code> | * <code><nowiki>{{Monster|1063|Lunatic}}</nowiki></code> - Shows sprite, "Lunatic (#1063)" linked to database | ||
* <code><nowiki>{{Monster| | * <code><nowiki>{{Monster|1658|Egnigem Cenia}}</nowiki></code> - Shows sprite, "Egnigem Cenia (#1658)" linked to database | ||
 | 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> | ||
Latest revision as of 09:44, 12 January 2026
This template displays a monster with its sprite above the name, designed for inline/tiled display. 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
{{Monster|MOB_ID|Monster Name}}
Examples
{{Monster|1002|Poring}}- Shows sprite, "Poring (#1002)" linked to database{{Monster|1063|Lunatic}}- Shows sprite, "Lunatic (#1063)" linked to database{{Monster|1658|Egnigem Cenia}}- Shows sprite, "Egnigem Cenia (#1658)" linked to database
Multiple monsters will tile horizontally:
{{Monster|1002|Poring}} {{Monster|1063|Lunatic}} {{Monster|1007|Fabre}}
Note
This template requires $wgAllowExternalImages = true; in LocalSettings.php to display the sprite images.
Alternatively, add to LocalSettings.php:
$wgAllowExternalImagesFrom = array('https://hymnro.com/');