Template:Monster: Difference between revisions

Template:Monster: Difference between revisions

No edit summary
No edit summary
Tag: Reverted
Line 1: Line 1:
<includeonly>https://hymnro.com/data/monsters/{{{1}}}.gif<br>[https://hymnro.com/?module=monster&action=view&id={{{1}}} {{{2}}}]</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 a link to the database.
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 ==
Line 6: Line 9:


== 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|1023|Orc Warrior}}</nowiki></code>
* <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>

Revision as of 14:31, 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/');