Template:ItemSummary: Difference between revisions

Jump to navigation Jump to search
TheMilkMan (talk | contribs)
Changing template to handle all relevant body text.
TheMilkMan (talk | contribs)
Added support for Legendary items
Line 6: Line 6:
-->{{#vardefine:component2cost|{{#invoke:ItemData|get_cost|{{#var:component2}}}}}}<!--
-->{{#vardefine:component2cost|{{#invoke:ItemData|get_cost|{{#var:component2}}}}}}<!--


-->'''{{#var:item_key_or_en}}''' is a Tier {{#invoke:ItemData|get_prop|{{#var:item_key_or_en}}|Tier}} {{ItemType|{{#invoke:ItemData|get_prop|{{#var:item_key_or_en}}|Slot}}|color=true}} that can be purchased from the [[The Curiosity Shop|Shop]] for {{Souls|{{#invoke:ItemData|get_cost|{{#var:item_key_or_en}}}}}}. <!--
-->'''{{#var:item_key_or_en}}''' is a {{#ifeq:{{#invoke:ItemData|get_prop|{{#var:item_key_or_en}}|Tier}}|5
|Legendary {{ItemType|{{#invoke:ItemData|get_prop|{{#var:item_key_or_en}}|Slot}}|color=true}} that can be obtained only in [[Street Brawl]].
|Tier {{#invoke:ItemData|get_prop|{{#var:item_key_or_en}}|Tier}} {{ItemType|{{#invoke:ItemData|get_prop|{{#var:item_key_or_en}}|Slot}}|color=true}} that can be purchased from the [[The Curiosity Shop|Shop]] for {{Souls|{{#invoke:ItemData|get_cost|{{#var:item_key_or_en}}}}}}.}} <!--


-->{{#if:{{#var:component2}}|
-->{{#if:{{#var:component2}}|
Line 14: Line 16:
-->{{#ifexpr:({{#invoke:ItemData|get_builds_into_count|{{#var:item_key_or_en}}}} + 0) > 0|<span></span>
-->{{#ifexpr:({{#invoke:ItemData|get_builds_into_count|{{#var:item_key_or_en}}}} + 0) > 0|<span></span>


'''{{#var:item_key_or_en}}''' is a {{#if:{{#var:component1}}|component|[[Components|component]]}} of {{#invoke:ItemData|get_builds_into|{{#var:item_key_or_en}}}}.}}</includeonly><noinclude>{{User:TheMilkMan/SandboxTemplate|Healing Booster}}</noinclude>
'''{{#var:item_key_or_en}}''' is a {{#if:{{#var:component1}}|component|[[Components|component]]}} of {{#invoke:ItemData|get_builds_into|{{#var:item_key_or_en}}}}.}}</includeonly><noinclude>{{Template:ItemSummary|Healing Booster}}</noinclude>