Template:Item: Difference between revisions

From StrawberryMC
CmdBlock00 (talk | contribs)
mNo edit summary
CmdBlock00 (talk | contribs)
mNo edit summary
Line 40: Line 40:
  | diggingPower  = 300
  | diggingPower  = 300
}}</nowiki></div>
}}</nowiki></div>
!!WARNING!! Make sure to set stats to 0 instead of deleting them!


[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>
<includeonly>
<includeonly>
<!-- Template:Item Display Code -->
<!-- Template:Item Display Code -->
<div class="infobox">
<div class="infobox">
<div class="infobox-title item-rarity-{{{rarity|common}}}">'''{{{name|Unnamed Item}}}'''
<div class="infobox-title item-rarity-{{{rarity|common}}}">'''{{{name|Unnamed Item}}}'''
Line 60: Line 58:
'''<span class="item-rarity-label">Rarity:</span> {{ucfirst:{{{rarity|common}}}}}'''
'''<span class="item-rarity-label">Rarity:</span> {{ucfirst:{{{rarity|common}}}}}'''
</div>
</div>
   <!-- Stats -->
   <!-- Stats -->
{{#ifexpr:({{{magicFind|}}} + {{{fortune|}}} + {{{blast|}}} + {{{moneyMulti|}}} + {{{xpMulti|}}} + {{{speed|}}} + {{{diggingPower|}}}) > 0|<h2>Statistics</h2>|<div style= display: none;></div>}}
{{#iferror: {{#expr:({{{magicFind|}}} + {{{fortune|}}} + {{{blast|}}} + {{{moneyMulti|}}} + {{{xpMulti|}}} + {{{speed|}}} + {{{diggingPower|}}}) > 0}}|<div style= display: none;></div>|<h2>Statistics</h2>}}
  {{#ifexpr:{{{magicFind|}}} > 0|<div class="item-stat"><span class="item-stat-label">Magic Find<span class="tooltip">Increases chance for rare drops</span>:</span> {{{magicFind}}}</div>|<div style= display: none;></div>}}
{{#iferror:{{#expr:{{{magicFind|}}} > 0}}|<div style= display: none;></div>|<div class="item-stat"><span class="item-stat-label">Magic Find<span class="tooltip">Increases chance for rare drops</span>:</span> {{{magicFind}}}</div>}}
  {{#ifexpr:{{{fortune|}}} > 0|<div class="item-stat"><span class="item-stat-label">Fortune<span class="tooltip">Increases item yield</span>:</span> {{{fortune}}}</div>|<div style= display: none;></div>}}
{{#iferror: {{#expr:{{{fortune|}}} > 0}}|<div style= display: none;></div>|<div class="item-stat"><span class="item-stat-label">Fortune<span class="tooltip">Increases item yield</span>:</span> {{{fortune}}}</div>}}
  {{#ifexpr:{{{blast|}}} > 0|<div class="item-stat"><span class="item-stat-label">Blast<span class="tooltip">Blast radius or power</span>:</span> {{{blast}}}</div>|<div style= display: none;></div>}}
{{#iferror:{{#expr:{{{blast|}}} > 0}}|<div style= display: none;></div>| <div class="item-stat"><span class="item-stat-label">Blast<span class="tooltip">Blast radius or power</span>:</span> {{{blast}}}</div>}}
  {{#ifexpr:{{{moneyMulti|}}} > 0|<div class="item-stat"><span class="item-stat-label">Money Multiplier<span class="tooltip">Increases coin gain</span>:</span> +{{{moneyMulti}}}</div>|<div style= display: none;>}}
{{#iferror:{{#expr:{{{moneyMulti|}}} > 0}}|<div style= display: none;></div>|<div class="item-stat"><span class="item-stat-label">Money Multiplier<span class="tooltip">Increases coin gain</span>:</span> +{{{moneyMulti}}}</div>}}
  {{#ifexpr:{{{xpMulti|}}} > 0|<div class="item-stat"><span class="item-stat-label">XP Multiplier<span class="tooltip">Increases XP earned</span>:</span> +{{{xpMulti}}}</div>|<div style= display: none;></div>}}
{{#iferror:{{#expr:{{{xpMulti|}}} > 0}}|<div style= display: none;></div>|<div class="item-stat"><span class="item-stat-label">XP Multiplier<span class="tooltip">Increases XP earned</span>:</span> +{{{xpMulti}}}</div>}}
  {{#ifexpr:{{{speed|}}} > 0|<div class="item-stat"><span class="item-stat-label">Speed<span class="tooltip">Affects movement speed</span>:</span> {{{speed}}}</div>|<div style= display: none;></div>}}
{{#iferror:{{#expr:{{{speed|}}} > 0}}|<div style= display: none;></div>|<div class="item-stat"><span class="item-stat-label">Speed<span class="tooltip">Affects movement speed</span>:</span> {{{speed}}}</div>}}
  {{#ifexpr:{{{diggingPower|}}} > 0|<div class="item-stat"><span class="item-stat-label">Digging Power<span class="tooltip">Damage you deal to enemies</span>:</span> {{{diggingPower}}}</div>|<div style= display: none;></div>}}
{{#iferror:{{#expr:{{{diggingPower|}}} > 0}}|<div style= display: none;></div>|<div class="item-stat"><span class="item-stat-label">Digging Power<span class="tooltip">Damage you deal to enemies</span>:</span> {{{diggingPower}}}</div>}}
</div>
</div>

Revision as of 16:48, 15 October 2025

Parameters

Example

Item Name

Nothing.

Rarity: Epic

Statistics

Magic FindIncreases chance for rare drops: 10
FortuneIncreases item yield: 25
BlastBlast radius or power: 100
Money MultiplierIncreases coin gain: +50
XP MultiplierIncreases XP earned: +100
SpeedAffects movement speed: 120
Digging PowerDamage you deal to enemies: 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 }}