Template:MobCard: Difference between revisions
Template page
More actions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly><div class="mob-card" style="width: 250px; border: 1px solid #ccc; margin: 10px; padding: 10px; text-align: center; float: left; background: #f9f9f9;"> | <includeonly><div class="mob-card" style="width: 250px; border: 1px solid #ccc; margin: 10px; padding: 10px; text-align: center; float: left; background: #f9f9f9;"> | ||
<div style="font-weight: bold; font-size: 1.2em; color: {{{namecolor|inherit}}};">{{{name}}}</div> | |||
<div style="margin: 5px 0;"> | |||
[[File:{{#if:{{{image|}}}|{{{image}}}|Mobicon_{{{name}}}.png}}|x150px]] | [[File:{{#if:{{{image|}}}|{{{image}}}|Mobicon_{{{name}}}.png}}|x150px]] | ||
</div> | |||
<div style="text-align: left; padding-top: 5px;"> | |||
<strong>Health:</strong> {{{health|Unknown}}}<br> | |||
<strong>Category:</strong> {{{category|Unknown}}} | |||
</div> | |||
<div style="text-align: left; padding-top: 5px;"> | |||
<strong>Danger Rating:</strong><br> | |||
<span class="danger-rating">{{#invoke:StarDisplay|render|{{{danger|0}}}}}</span> | |||
{{#invoke:StarDisplay|render|{{{danger|0}}}}} | </div> | ||
<div style="text-align: left; padding-top: 5px;"> | |||
<strong>Drops:</strong><br> | |||
{{{drops|None}}} | |||
</div> | |||
</div></includeonly><noinclude> | |||
</div></includeonly> | |||
<noinclude> | |||
<templatedata> | <templatedata> | ||
{ | { | ||
Revision as of 17:04, 7 March 2026
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| name | name | The display name of the mob. | String | required |
| namecolor | namecolor | The hex color code for the mob's name (e.g., #00FFFF).
| String | optional |
| image | image | The filename of the mob's image. | File | optional |
| health | health | The health points of the mob. | Number | optional |
| category | category | The behavior category of the mob (e.g., Hostile, Passive, Flying, Swimming). | String | optional |
| danger | danger | The danger rating (number of stars).
| Number | optional |
| drops | drops | A list of items dropped by the mob. | Content | optional |