Template:Item: Difference between revisions
From StrawberryMC
CmdBlock00 (talk | contribs) No edit summary |
CmdBlock00 (talk | contribs) mNo edit summary |
||
| (28 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
== | == Parameters == | ||
{| class="wikitable" | |||
|+ Caption text | |||
< | |- | ||
! Parameter !! Extra Information !! Required<br>(Y/N) | |||
|- | |||
| ''name'' ||The item's name (e.g. Iron Sword)|| Yes | |||
|- | |||
| ''image'' ||An image of the item|| Yes | |||
|- | |||
| ''lore'' ||Do <nowiki>"<br>"</nowiki> for new line|| No | |||
|- | |||
| ''[[Rarity|rarity]]'' ||The item's rarity|| Yes | |||
|- | |||
| ''type'' ||The item's type (e.g. food, weapon)|| Yes | |||
|- | |||
| ''[[stats]]'' ||Use the stat as the parameter || No | |||
|- | |||
|} | |||
[[Magic Find|magicFind]] [[Fortune|fortune]] [[Blast|blast]] income exp [[Speed|speed]] [[Digging Power|diggingPower]] | |||
== Example == | |||
{{Item | {{Item | ||
| name = Item Name | | name = Item Name | ||
| image = File:Placeholder.png | |||
| lore = Nothing. | |||
| type = tool | |||
| rarity = epic | | rarity = epic | ||
| magicFind = 10 | |||
| magicFind = 10 | |||
| fortune = 25 | | fortune = 25 | ||
| blast = 100 | | blast = 100 | ||
| moneyMulti = 50 | | moneyMulti = 50 | ||
| xpMulti = 100 | | xpMulti = 100 | ||
| speed = 120 | | speed = 120 | ||
| diggingPower = 300 | | diggingPower = 300 | ||
}} | }} | ||
< | <div class="mw-code"><nowiki>{{Item | ||
| name = Item Name | |||
| image = File:Placeholder.png | |||
| lore = Nothing. | |||
| type = tool | |||
| rarity = epic | |||
< | | magicFind = 10 | ||
{{ | | fortune = 25 | ||
| blast = 100 | |||
| moneyMulti = 50 | |||
| xpMulti = 100 | |||
| speed = 120 | |||
| diggingPower = 300 | |||
}}</nowiki></div> | |||
[[Category:Templates]] | |||
</noinclude> | </noinclude> | ||
<includeonly> | <includeonly> | ||
<!-- Template:Item Display Code --> | <!-- Template:Item Display Code --> | ||
<div class="infobox"> | |||
< | <div class="infobox-title item-rarity-{{{rarity|common}}}">'''{{{name|Unnamed Item}}}''' | ||
</div> | |||
<div class="image"> | |||
[[{{{image|File:Placeholder.png}}}|200px|center]] | |||
</div> | |||
<div class="item-lore"> | |||
{{{lore|}}} | |||
</div> | |||
<!-- Info --> | |||
<div class="infobox-header"><div class="infobox-htxt">Information</div></div> | |||
<div class="item-rarity item-rarity-{{{rarity|common}}}"><span class="infobox-label">Rarity:</span> {{ucfirst:{{{rarity|common}}}}}'''</div> | |||
<div class="item-info"><span class="infobox-label">Type:</span> {{ucfirst:{{{type}}}}}</div> | |||
<!-- Stats --> | |||
{{#iferror: {{#expr:{{{magicFind}}}{{{fortune}}}{{{blast}}}{{{moneyMulti}}}{{{xpMulti}}}{{{speed}}}{{{diggingPower}}}}}||{{#ifexpr:({{{magicFind|}}} + {{{fortune|}}} + {{{blast|}}} + | |||
{{{moneyMulti|}}} + {{{xpMulti|}}} + {{{speed|}}} + {{{diggingPower|}}}) > 0|<div class="infobox-header"><div class="infobox-htxt">Statistics</div></div>}}}} | |||
{{#iferror:{{#expr:{{{magicFind|}}} > 0}}|<div style= display:none></div>|<div class="item-stat"><span class="infobox-label">Magic Find:</span> {{{magicFind}}}</div>}} | |||
{{#iferror: {{#expr:{{{fortune|}}} > 0}}|<div style= display:none></div>|<div class="item-stat"><span class="infobox-label">Fortune:</span> {{{fortune}}}</div>}} | |||
{{#iferror:{{#expr:{{{blast|}}} > 0}}|<div style= display:none></div>| <div class="item-stat"><span class="infobox-label">Blast:</span> {{{blast}}}</div>}} | |||
{{#iferror:{{#expr:{{{moneyMulti|}}} > 0}}|<div style= display:none></div>|<div class="item-stat"><span class="infobox-label">Money Multiplier:</span> +{{{moneyMulti}}}</div>}} | |||
{{#iferror:{{#expr:{{{xpMulti|}}} > 0}}|<div style= display:none></div>|<div class="item-stat"><span class="infobox-label">XP Multiplier:</span> +{{{xpMulti}}}</div>}} | |||
{{#iferror:{{#expr:{{{speed|}}} > 0}}|<div style= display:none></div>|<div class="item-stat"><span class="infobox-label">Speed:</span> {{{speed}}}</div>}} | |||
{{#iferror:{{#expr:{{{diggingPower|}}} > 0}}|<div style= display:none></div>|<div class="item-stat"><span class="infobox-label">Digging Power:</span> {{{diggingPower}}}</div>}} | |||
} | |||
} | |||
} | |||
</ | |||
<div class=" | |||
</div> | </div> | ||
Latest revision as of 20:01, 6 November 2025
Parameters
| Parameter | Extra Information | Required (Y/N) |
|---|---|---|
| name | The item's name (e.g. Iron Sword) | Yes |
| image | An image of the item | Yes |
| lore | Do "<br>" for new line | No |
| rarity | The item's rarity | Yes |
| type | The item's type (e.g. food, weapon) | Yes |
| stats | Use the stat as the parameter | No |
magicFind fortune blast income exp speed diggingPower
Example
Item Name
Nothing.
Information
Rarity: Epic
Type: Tool
Statistics
Magic Find: 10
Fortune: 25
Blast: 100
Money Multiplier: +50
XP Multiplier: +100
Speed: 120
Digging Power: 300
{{Item
| name = Item Name
| image = File:Placeholder.png
| lore = Nothing.
| type = tool
| rarity = epic
| magicFind = 10
| fortune = 25
| blast = 100
| moneyMulti = 50
| xpMulti = 100
| speed = 120
| diggingPower = 300
}}
