No edit summary Tag: Reverted |
No edit summary Tag: Manual revert  |
||
| (7 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly><span style="display:inline-block; text-align:center; margin:5px; vertical-align:top;"> | <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 above the name, designed for inline/tiled display. | 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 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. | 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> - Shows sprite, "Poring (#1002)" linked to database | * <code><nowiki>{{Monster|1002|Poring}}</nowiki></code> - Shows sprite, "Poring (#1002)" linked to database | ||
* <code><nowiki>{{Monster|1063|Lunatic}}</nowiki></code> - Shows sprite, "Lunatic (#1063)" linked to database | * <code><nowiki>{{Monster|1063|Lunatic}}</nowiki></code> - Shows sprite, "Lunatic (#1063)" linked to database | ||
* <code><nowiki>{{Monster|1658|Egnigem Cenia}}</nowiki></code> - Shows sprite, "Egnigem Cenia (#1658)" linked to database | * <code><nowiki>{{Monster|1658|Egnigem Cenia}}</nowiki></code> - Shows sprite, "Egnigem Cenia (#1658)" linked to database | ||
Multiple monsters will tile horizontally: | Multiple monsters will tile horizontally: | ||
<pre>{{Monster|1002|Poring}} {{Monster|1063|Lunatic}} {{Monster|1007|Fabre}}</pre> | <pre>{{Monster|1002|Poring}} {{Monster|1063|Lunatic}} {{Monster|1007|Fabre}}</pre> | ||
== Note == | == Note == | ||
This template requires <code>$wgAllowExternalImages = true;</code> in LocalSettings.php to display the sprite images. | This template requires <code>$wgAllowExternalImages = true;</code> in LocalSettings.php to display the sprite images. | ||
Alternatively, add to LocalSettings.php: | Alternatively, add to LocalSettings.php: | ||
<pre> | <pre> | ||
$wgAllowExternalImagesFrom = array('https://hymnro.com/'); | $wgAllowExternalImagesFrom = array('https://hymnro.com/'); | ||
</pre> | </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/');