No edit summary Tag: Reverted |
No edit summary Tag: 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><span style="display:inline-block; text-align:center; margin:5px; vertical-align:top;"><img src="https://hymnro.com/data/monsters/{{{1}}}.gif" style="max-width:75px; max-height:75px; display:block; margin:0 auto;" /><br>[https://hymnro.com/?module=monster&action=view&id={{{1}}} {{{2}}} (#{{{1}}})]</span></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 above the name, designed for inline/tiled display. | ||
Revision as of 16:11, 28 December 2025
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/');