Template:ItemProperties: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
No edit summary
No edit summary
Line 120: Line 120:
IfMatch| trader style | {{{special}}} | true=*This {{{itype}}} is styled or has special functions for [[guild association is::Trader]]s.[[has item property::Trader style| ]]}}{{
IfMatch| trader style | {{{special}}} | true=*This {{{itype}}} is styled or has special functions for [[guild association is::Trader]]s.[[has item property::Trader style| ]]}}{{
IfMatch| warrior mage style | {{{special}}} | true=*This {{{itype}}} is styled or has special functions for [[guild association is::Warrior Mage]]s.[[has item property::Warrior Mage style| ]]}}
IfMatch| warrior mage style | {{{special}}} | true=*This {{{itype}}} is styled or has special functions for [[guild association is::Warrior Mage]]s.[[has item property::Warrior Mage style| ]]}}
}} }}{{#if:{{{rtype|}}}|{{#switch:{{{rtype}}} | n | -= | *This item is styled or has special functions for {{#arraymap:{{{rtype}}}|,|@@@@|{{#switch:{{lc:@@@@}}| rakash | fae | merelew= [[race association is::{{ucfirst:@@@@}}]] | elf= [[race association is::{{ucfirst:@@@@}}|Elves]] | dwarf= [[race association is::{{ucfirst:@@@@}}|Dwarves]] | [[race association is::{{ucfirst:@@@@}}]]s}}| and }}.}} | }}{{#if:{{{gtype|}}}|{{#switch:{{{gtype}}} | n | -= | *This item is styled or has special functions for {{#arraymap:{{{gtype}}}|,|@@@@|{{#switch:{{lc:@@@@}}| moon mage= [[guild association is::Moon Mage]] | warrior mage= [[guild association is::Warrior Mage]] | [[guild association is::{{ucfirst:@@@@}}]]s}}| and }}.}} | }}
}} }}{{#if:{{{rtype|}}}|{{#switch:{{{rtype}}} | n | -= | *This item is styled or has special functions for {{#arraymap:{{{rtype}}}|,|@@@@|{{#switch:{{lc:@@@@}}| rakash | fae | merelew= [[race association is::{{ucfirst:@@@@}}]] | elf= [[race association is::{{ucfirst:@@@@}}|Elves]] | dwarf= [[race association is::{{ucfirst:@@@@}}|Dwarves]] | [[race association is::{{ucfirst:@@@@}}]]s}}| and }}.}} | }}{{#if:{{{gtype|}}}|{{#switch:{{{gtype}}} | n | -= | *This item is styled or has special functions for {{#arraymap:{{{gtype}}}|,|@@@@|{{#switch:{{lc:@@@@}}| moon mage= [[guild association is::Moon Mage|Moon Mages]] | warrior mage= [[guild association is::Warrior Mage|Warrior Mages]] | [[guild association is::{{ucfirst:@@@@}}]]s}}| and }}.}} | }}
|-
|-
{{#switch:{{lc:{{{enchanted}}}}}|true|yes={{#switch: {{{potency}}} | {{!}} '''Enchantment:''' {{!}}{{!}} {{#switch:{{{span}}} | 3=colspan="3"{{!}} | 2=colspan="2" {{!}}}} {{#if:{{{potency|}}}|[[potency is::{{{potency}}}]] ([[potency is number::{{GearProcess|{{{potency}}}|potency}}]]/10)|''?''}} potency<br/>{{#if:{{{complexity|}}}|[[complexity is::{{{complexity}}}]] ([[complexity is number::{{GearProcess|{{{complexity}}}|complexity}}]]/10)|''?''}} complexity<br/>{{#if:{{{precision|}}}|[[precision is::{{{precision}}}]] ([[precision is number::{{GearProcess|{{{precision}}}| precision}}]]/11)|''?''}} precision<br/>{{#if:{{{grade|}}}|[[grade is::{{{grade}}}]] ([[grade is number::{{GearProcess|{{{grade}}}| grade}}]]/4)|''?''}} grade}}<br/>{{#if:{{{ebonus|}}}|Bonus to [[ebonus is::{{{ebonus}}}]]|Bonus to ''?''}}}}
{{#switch:{{lc:{{{enchanted}}}}}|true|yes={{#switch: {{{potency}}} | {{!}} '''Enchantment:''' {{!}}{{!}} {{#switch:{{{span}}} | 3=colspan="3"{{!}} | 2=colspan="2" {{!}}}} {{#if:{{{potency|}}}|[[potency is::{{{potency}}}]] ([[potency is number::{{GearProcess|{{{potency}}}|potency}}]]/10)|''?''}} potency<br/>{{#if:{{{complexity|}}}|[[complexity is::{{{complexity}}}]] ([[complexity is number::{{GearProcess|{{{complexity}}}|complexity}}]]/10)|''?''}} complexity<br/>{{#if:{{{precision|}}}|[[precision is::{{{precision}}}]] ([[precision is number::{{GearProcess|{{{precision}}}| precision}}]]/11)|''?''}} precision<br/>{{#if:{{{grade|}}}|[[grade is::{{{grade}}}]] ([[grade is number::{{GearProcess|{{{grade}}}| grade}}]]/4)|''?''}} grade}}<br/>{{#if:{{{ebonus|}}}|Bonus to [[ebonus is::{{{ebonus}}}]]|Bonus to ''?''}}}}

Revision as of 12:52, 19 June 2023

Essential Template
  • This template is so essential that it has been protected to prevent tampering.
  • If you have suggestions to extend its function or have observed bugs, please post to the discussion page.

This template is a display and categorization plug-in for other templates, including Template:Item, Template:Shield,Template:Armor, and Template:Weapon.

This is because several of the basic ones share features in addition to becoming too large.