Difference between revisions of "Template:Equipment footer"
Jump to navigation
Jump to search
m |
m |
||
Line 1: | Line 1: | ||
<includeonly><div class="equipment-footer"><!-- | <includeonly><div class="equipment-footer"><!-- | ||
-->{{#if:{{{1|}}}|<div class="equipment-melding">{{#arraymap:{{#switch:{{{1}}}|1=m|2=m,m|3=m,m,m|4=m,m,m,m|5=m,m,m,m,m|6=m,m,m,m,m,m}}|,|@@@|[[File:Materia slot.png|14px|link=]]| }}</div>{{#set:Has materia slots={{{1}}}}}|{{#set:Has materia slots=0}}}}<!-- | -->{{#if:{{{1|}}}|<div class="equipment-melding" title="Up to {{{1}}} materia(s) can be affixed to this item.">{{#arraymap:{{#switch:{{{1}}}|1=m|2=m,m|3=m,m,m|4=m,m,m,m|5=m,m,m,m,m|6=m,m,m,m,m,m}}|,|@@@|[[File:Materia slot.png|14px|link=]]| }}</div>{{#set:Has materia slots={{{1}}}}}|{{#set:Has materia slots=0}}}}<!-- | ||
-->{{#ifeq: {{{2|n}}}|n|<div class="adv-melding">Advanced Melding Forbidden</div>{{#set:Has advanced melding=No}}|{{#set:Has advanced melding=Yes}}}} | -->{{#ifeq: {{{2|n}}}|n|<div class="adv-melding" title="This item cannot undergo overmelding.">Advanced Melding Forbidden</div>{{#set:Has advanced melding=No}}|{{#set:Has advanced melding=Yes}}}} | ||
<hr><!-- | <hr><!-- | ||
--><div class="equip-props"><span class="equip-prop {{#vardefineecho:is-convertible|{{#if:{{{3|}}}|yes|no}}}}">{{#set:Is convertible={{#var:is-convertible}}}}Convertible</span> • <span class="equip-prop {{#vardefineecho:is-projectable|{{#if:{{{4|}}}|yes|no}}}}">{{#set:Is projectable={{#var:is-projectable}}}}Projectable</span> • <span class="equip-prop {{#vardefineecho:is-desynthesizable|{{#if:{{{5|}}}|yes|no}}}}">{{#set:Is desynthesizable={{#var:is-desynthesizable}}}}Desynthesizable</span> • <span class="equip-prop {{#vardefineecho:is-dyeable|{{#if:{{{6|}}}|yes|no}}}}">{{#set:Is dyeable={{#var:is-dyeable}}}}Dyeable</span></div> | --><div class="equip-props"><span class="equip-prop {{#vardefineecho:is-convertible|{{#if:{{{3|}}}|yes|no}}}}" title="{{#if:{{{3|}}}|This item can be converted into a materia.|This item cannot be converted into a materia.}}">{{#set:Is convertible={{#var:is-convertible}}}}Convertible</span> • <span class="equip-prop {{#vardefineecho:is-projectable|{{#if:{{{4|}}}|yes|no}}}}" title="{{#if:{{{4|}}}|This item can have its appearance projected onto another similar item.|This item cannot have its appearance projected onto another similar item.}}">{{#set:Is projectable={{#var:is-projectable}}}}Projectable</span> • <span class="equip-prop {{#vardefineecho:is-desynthesizable|{{#if:{{{5|}}}|yes|no}}}}" title="{{#if:{{{5|}}}|This item can be desynthesized into base materials.|This item cannot be desynthesized into base materials.}}">{{#set:Is desynthesizable={{#var:is-desynthesizable}}}}Desynthesizable</span> • <span class="equip-prop {{#vardefineecho:is-dyeable|{{#if:{{{6|}}}|yes|no}}}}" title="{{#if:{{{6|}}}|This item can be dyed.|This item cannot be dyed.}}">{{#set:Is dyeable={{#var:is-dyeable}}}}Dyeable</span></div> | ||
</div></includeonly><noinclude> | </div></includeonly><noinclude> | ||
== Description == | == Description == |
Revision as of 19:33, 30 November 2017
Description
Adds a footer with equipment-related properties such as melding slots, convertible status, projectable status, desynthesizable status, dyeable status, etc. Meant to be used by {{Weapon infobox}}, {{Armor infobox}}, and {{Trinket infobox}}.
Parameters
- Materia slots
- Advanced melding
- Convertible?
- Projectable?
- Desynthesizable?
- Dyeable?