Template:Infobox Monster: Difference between revisions
Use MonsterPreview, infer sprite from name (via update-page on MediaWiki MCP Server) |
Add right-aligned table styling (via update-page on MediaWiki MCP Server) |
||
| Line 1: | Line 1: | ||
<!-- Template:Infobox Monster --> | <!-- Template:Infobox Monster --> | ||
<includeonly>{| class="infobox monster-infobox" | <includeonly>{| class="infobox monster-infobox" style="float:right; clear:right; margin:0 0 1em 1em; width:250px; border:1px solid #aaa; border-collapse:collapse; background:#f9f9f9;" | ||
|- | |- | ||
! colspan="2" style="text-align:center;" | {{{name}}} | ! colspan="2" style="text-align:center; background:#ddd; padding:8px;" | {{{name}}} | ||
|- | |- | ||
| colspan="2" style="text-align:center;" | {{MonsterPreview|{{{sprite|{{{name}}}}}}|128|mode={{{mode|auto}}}|file={{{file|}}}}} | | colspan="2" style="text-align:center; padding:8px;" | {{MonsterPreview|{{{sprite|{{{name}}}}}}|128|mode={{{mode|auto}}}|file={{{file|}}}}} | ||
|- | |- | ||
{{#if:{{{hp|}}}|! HP {{!}}{{!}} {{{hp}}} | {{#if:{{{hp|}}}|! style="padding:4px 8px; border-top:1px solid #aaa;" {{!}} HP {{!}}{{!}} style="padding:4px 8px; border-top:1px solid #aaa;" {{!}} {{{hp}}} | ||
{{!}}-}} | {{!}}-}} | ||
{{#if:{{{xp|}}}|! XP {{!}}{{!}} {{{xp}}} | {{#if:{{{xp|}}}|! style="padding:4px 8px; border-top:1px solid #aaa;" {{!}} XP {{!}}{{!}} style="padding:4px 8px; border-top:1px solid #aaa;" {{!}} {{{xp}}} | ||
{{!}}-}} | {{!}}-}} | ||
{{#if:{{{arm|}}}|! Armor {{!}}{{!}} {{{arm}}} | {{#if:{{{arm|}}}|! style="padding:4px 8px; border-top:1px solid #aaa;" {{!}} Armor {{!}}{{!}} style="padding:4px 8px; border-top:1px solid #aaa;" {{!}} {{{arm}}} | ||
{{!}}-}} | {{!}}-}} | ||
{{#if:{{{def|}}}|! Defense {{!}}{{!}} {{{def}}} | {{#if:{{{def|}}}|! style="padding:4px 8px; border-top:1px solid #aaa;" {{!}} Defense {{!}}{{!}} style="padding:4px 8px; border-top:1px solid #aaa;" {{!}} {{{def}}} | ||
{{!}}-}} | {{!}}-}} | ||
{{#if:{{{as|}}}|! Attack Speed {{!}}{{!}} {{{as}}} | {{#if:{{{as|}}}|! style="padding:4px 8px; border-top:1px solid #aaa;" {{!}} Attack Speed {{!}}{{!}} style="padding:4px 8px; border-top:1px solid #aaa;" {{!}} {{{as}}} | ||
{{!}}-}} | {{!}}-}} | ||
{{#if:{{{ms|}}}|! Move Speed {{!}}{{!}} {{{ms}}} | {{#if:{{{ms|}}}|! style="padding:4px 8px; border-top:1px solid #aaa;" {{!}} Move Speed {{!}}{{!}} style="padding:4px 8px; border-top:1px solid #aaa;" {{!}} {{{ms}}} | ||
{{!}}-}} | {{!}}-}} | ||
{{#if:{{{respawn|}}}|! Respawn {{!}}{{!}} {{{respawn}}} | {{#if:{{{respawn|}}}|! style="padding:4px 8px; border-top:1px solid #aaa;" {{!}} Respawn {{!}}{{!}} style="padding:4px 8px; border-top:1px solid #aaa;" {{!}} {{{respawn}}} | ||
{{!}}-}} | {{!}}-}} | ||
|} | |} | ||
Revision as of 06:36, 22 January 2026
Documentation
The above documentation is transcluded from Template:Infobox Monster/doc. Edit