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;"> | <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;">{{{name}}}</div> | <div style="font-weight: bold; font-size: 1.2em; color: {{{namecolor|inherit}}};">{{{name}}}</div> | ||
<div style="margin: 5px 0;"> | <div style="margin: 5px 0;"> | ||
[[File:{{#if:{{{image|}}}|{{{image}}}|Mobicon_{{{name}}}.png}}|x150px]] | [[File:{{#if:{{{image|}}}|{{{image}}}|Mobicon_{{{name}}}.png}}|x150px]] | ||
</div> | </div> | ||
<div> | <div style="text-align: left; padding-top: 5px;"> | ||
<strong> | <strong>Health:</strong> {{{health|Unknown}}}<br> | ||
{{{ | <strong>Category:</strong> {{{category|Unknown}}}<br> | ||
</div> | </div> | ||
<div> | <div style="text-align: left; padding-top: 5px;"> | ||
<strong>Danger Rating:</strong><br> | <strong>Danger Rating:</strong><br> | ||
<span class="danger-rating"> | <span class="danger-rating"> | ||
{{#invoke:StarDisplay|render|{{{danger|0}}}}} | {{#invoke:StarDisplay|render|{{{danger|0}}}}} | ||
</span> | </span> | ||
</div> | |||
<div style="text-align: left; padding-top: 5px;"> | |||
<strong>Drops:</strong><br> | |||
{{{drops|None}}} | |||
</div> | </div> | ||
</div></includeonly> | </div></includeonly> | ||
| Line 19: | Line 23: | ||
{ | { | ||
"params": { | "params": { | ||
"name": {}, | "name": { | ||
"image": {}, | "description": "The display name of the mob.", | ||
" | "type": "string", | ||
"danger": {} | "required": true | ||
}, | |||
"namecolor": { | |||
"description": "The hex color code for the mob's name (e.g., #00FFFF).", | |||
"type": "string", | |||
"default": "inherit" | |||
}, | |||
"image": { | |||
"description": "The filename of the mob's image.", | |||
"type": "wiki-file-name" | |||
}, | |||
"health": { | |||
"description": "The health points of the mob.", | |||
"type": "number" | |||
}, | |||
"category": { | |||
"description": "The behavior category of the mob (e.g., Hostile, Passive, Flying, Swimming).", | |||
"type": "string" | |||
}, | |||
"danger": { | |||
"description": "The danger rating (number of stars).", | |||
"type": "number", | |||
"default": "0" | |||
}, | |||
"drops": { | |||
"description": "A list of items dropped by the mob.", | |||
"type": "content" | |||
} | |||
} | } | ||
} | } | ||
Revision as of 17:02, 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 |