Difference between revisions of "Template:AugmentColorUse"

From DDO Compendium
Line 7: Line 7:
|example2 = <nowiki>{{AugmentColorUse|Colorless}}</nowiki>
|example2 = <nowiki>{{AugmentColorUse|Colorless}}</nowiki>
|example2output = {{AugmentColorUse|Colorless}}
|example2output = {{AugmentColorUse|Colorless}}
|example3 = <nowiki>{{AugmentColorUse|Orange}}</nowiki>
|example3 = <nowiki>{{AugmentColorUse|CW}}</nowiki>
|example3output = {{AugmentColorUse|Orange}}
|example3output = {{AugmentColorUse|CW}}
|parameter1name = Color
|parameter1name = Color
|parameter1description = This is the color of the augment.
|parameter1description = This is the color of the augment.
Line 44: Line 44:
|p=|purple={{#dplvar:set|augmentuse|Purple augment slot.}}
|p=|purple={{#dplvar:set|augmentuse|Purple augment slot.}}
|o=|orange={{#dplvar:set|augmentuse|Orange augment slot.}}
|o=|orange={{#dplvar:set|augmentuse|Orange augment slot.}}
|scale armor=|sa={{#dplvar:set|augmentuse|Isle of Dread: Scale (Armor) slot.}}
|scale armor=|sa={{#dplvar:set|augmentuse|Isle of Dread: Scale (Armor) slot.|itemlinkpart|Isle of Dread Scale Armor}}
|scale weapon=|sw={{#dplvar:set|augmentuse|Isle of Dread: Scale (Weapon) slot.}}
|scale weapon=|sw={{#dplvar:set|augmentuse|Isle of Dread: Scale (Weapon) slot.|itemlinkpart|Isle of Dread Scale Weapon}}
|scale accessory=|se={{#dplvar:set|augmentuse|Isle of Dread: Scale (Accessory) slot.}}
|scale accessory=|se={{#dplvar:set|augmentuse|Isle of Dread: Scale (Accessory) slot.|itemlinkpart|Isle of Dread Scale Accessory}}
|fang armor=|fa={{#dplvar:set|augmentuse|Isle of Dread: Fang (Armor) slot.}}
|fang armor=|fa={{#dplvar:set|augmentuse|Isle of Dread: Fang (Armor) slot.|itemlinkpart|Isle of Dread Fang Armor}}
|fang weapon=|fw ={{#dplvar:set|augmentuse|Isle of Dread: Fang (Weapon) slot.}}
|fang weapon=|fw ={{#dplvar:set|augmentuse|Isle of Dread: Fang (Weapon) slot.|itemlinkpart|Isle of Dread Fang Weapon}}
|fang accessory=|fe={{#dplvar:set|augmentuse|Isle of Dread: Fang (Accessory) slot.}}
|fang accessory=|fe={{#dplvar:set|augmentuse|Isle of Dread: Fang (Accessory) slot.|itemlinkpart|Isle of Dread Fang Accessory}}
|claw armor=|ca={{#dplvar:set|augmentuse|Isle of Dread: Claw (Armor) slot.}}
|claw armor=|ca={{#dplvar:set|augmentuse|Isle of Dread: Claw (Armor) slot.|itemlinkpart|Isle of Dread Claw Armor}}
|claw weapon=|cw={{#dplvar:set|augmentuse|Isle of Dread: Claw (Weapon) slot.}}
|claw weapon=|cw={{#dplvar:set|augmentuse|Isle of Dread: Claw (Weapon) slot.|itemlinkpart|Isle of Dread Claw Weapon}}
|claw accessory=|ce={{#dplvar:set|augmentuse|Isle of Dread: Claw (Accessory) slot.}}
|claw accessory=|ce={{#dplvar:set|augmentuse|Isle of Dread: Claw (Accessory) slot.|itemlinkpart|Isle of Dread Claw Accessory}}
|horn armor=|ha={{#dplvar:set|augmentuse|Isle of Dread: Horn (Armor) slot.}}
|horn armor=|ha={{#dplvar:set|augmentuse|Isle of Dread: Horn (Armor) slot.|itemlinkpart|Isle of Dread Horn Armor}}
|horn weapon=|hw={{#dplvar:set|augmentuse|Isle of Dread: Horn (Weapon) slot.}}
|horn weapon=|hw={{#dplvar:set|augmentuse|Isle of Dread: Horn (Weapon) slot.|itemlinkpart|Isle of Dread Horn Weapon}}
|horn accessory=|he={{#dplvar:set|augmentuse|Isle of Dread: Horn (Accessory) slot.}}
|horn accessory=|he={{#dplvar:set|augmentuse|Isle of Dread: Horn (Accessory) slot.|itemlinkpart|Isle of Horn Claw Accessory}}
|set armor=|ea={{#dplvar:set|augmentuse|Isle of Dread: Set Bonus (Armor) slot.}}
|set armor=|ea={{#dplvar:set|augmentuse|Isle of Dread: Set Bonus (Armor) slot.|itemlinkpart|Isle of Dread Set Bonus Armor}}
|set weapon=|ew={{#dplvar:set|augmentuse|Isle of Dread: Set Bonus (Weapon) slot.}}
|set weapon=|ew={{#dplvar:set|augmentuse|Isle of Dread: Set Bonus (Weapon) slot.|itemlinkpart|Isle of Dread Set Bonus Weapon}}
|set accessory=|ee={{{#dplvar:set|augmentuse|Isle of Dread: Set Bonus (Accessory) slot.}}
|set accessory=|ee={{{#dplvar:set|augmentuse|Isle of Dread: Set Bonus (Accessory) slot.|itemlinkpart|Isle of Dread Set Bonus Accessory}}
}}{{#switch: {{lc:{{#dplvar:displaystyle}}}}
}}{{#switch: {{lc:{{#dplvar:displaystyle}}}}
|table={{#bootstrap_tooltip: {{{1}}} | text=  {{#dplvar:augmentuse}}}}
|table={{#bootstrap_tooltip: {{{1}}} | text=  {{#dplvar:augmentuse}}}}
|#default={{#dplvar:augmentuse}}{{#ifeq: {{FULLPAGENAME}} |Template:AugmentColorUse||{{#switch: {{lc:{{{1}}}}}
|#default={{#dplvar:augmentuse}}{{#if: {{#dplvar:itemlinkpart}}|{{SmallLink|(Items)|:Category:Items with {{#dplvar:itemlinkpart}} Augment}}}}}}{{#ifeq: {{FULLPAGENAME}} |Template:AugmentColorUse||{{#switch: {{lc:{{{1}}}}}
|c=|colorless=[[Category: Colorless Augments]][[Category:Augments that can be slotted into a Colorless Slot]][[Category:Augments that can be slotted into a Yellow Slot]][[Category:Augments that can be slotted into an Orange Slot]][[Category:Augments that can be slotted into a Green Slot]][[Category:Augments that can be slotted into a Red Slot]][[Category:Augments that can be slotted into a Purple Slot]][[Category:Augments that can be slotted into a Blue Slot]]
|c=|colorless=[[Category: Colorless Augments]][[Category:Augments that can be slotted into a Colorless Slot]][[Category:Augments that can be slotted into a Yellow Slot]][[Category:Augments that can be slotted into an Orange Slot]][[Category:Augments that can be slotted into a Green Slot]][[Category:Augments that can be slotted into a Red Slot]][[Category:Augments that can be slotted into a Purple Slot]][[Category:Augments that can be slotted into a Blue Slot]]
|y=|yellow=[[Category: Yellow Augments]][[Category:Augments that can be slotted into a Yellow Slot]][[Category:Augments that can be slotted into an Orange Slot]][[Category:Augments that can be slotted into a Green Slot]]
|y=|yellow=[[Category: Yellow Augments]][[Category:Augments that can be slotted into a Yellow Slot]][[Category:Augments that can be slotted into an Orange Slot]][[Category:Augments that can be slotted into a Green Slot]]
Line 84: Line 84:
|set weapon=|ew=[[Category: Set Bonus Weapon Augments]][[Category:Augments that can be slotted into a Set Bonus Weapon Slot]]
|set weapon=|ew=[[Category: Set Bonus Weapon Augments]][[Category:Augments that can be slotted into a Set Bonus Weapon Slot]]
|set accessory=|ee=[[Category: Set Bonus Accessory Augments]][[Category:Augments that can be slotted into a Set Bonus Accessory Slot]]
|set accessory=|ee=[[Category: Set Bonus Accessory Augments]][[Category:Augments that can be slotted into a Set Bonus Accessory Slot]]
}}}}}}{{#dplvar:set|augmentuse|}}</onlyinclude>
}}}}{{#dplvar:set|augmentuse|}}</onlyinclude>

Revision as of 23:46, 1 July 2022

AugmentColorUse[edit]

This template is used on augments to correctly format that the "used in" field. It also adds the categories for each

Example Usage
{{AugmentColorUse|Blue}}Blue, Green or Purple augment slots.
{{AugmentColorUse|Colorless}}Any augment slot.
{{AugmentColorUse|CW}}Isle of Dread: Claw (Weapon) slot.(Items)

Usage[edit]

{{AugmentColorUse|(Color)}}

Parameter Documentation
ColorThis is the color of the augment.
Possible Values:
  • Colorless or C
  • Yellow or Y
  • Red or R
  • Blue or B
  • Green or G
  • Purple or P
  • Orange or O
  • Scale Armor or SA
  • Scale Weapon or SW
  • Scale Accessory or SE
  • Fang Armor or FA
  • Fang Weapon or FW
  • Fang Accessory or FE
  • Claw Armor or CA
  • Claw Weapon or CW
  • Claw Accessory or CE
  • Horn Armor or HA
  • Horn Weapon or HW
  • Horn Accessory or HE
  • Set Armor or EA
  • Set Weapon or EW
  • Set Accessory or EE

Template

Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.


(Items)