Difference between revisions of "Template:AugmentColorUse"

From DDO Compendium
Line 37: Line 37:
</noinclude>
</noinclude>
<onlyinclude>{{#dplvar:set|augmentcolor|{{{1}}}}}{{#switch: {{lc:{{{1}}}}}
<onlyinclude>{{#dplvar:set|augmentcolor|{{{1}}}}}{{#switch: {{lc:{{{1}}}}}
|c=|colorless={{#dplvar:set|augmentuse|Any augment slot.}}
|c=|colorless={{#dplvar:set|augmentuse|Any [[:Category:Items with an Augment|augment]] slot.}}
|y=|yellow={{#dplvar:set|augmentuse|Yellow, Orange or Green augment slots.}}
|y=|yellow={{#dplvar:set|augmentuse|[[:Category:Items with a Yellow Augment|Yellow]], [[:Category:Items with an Orange Augment|Orange]] or Green augment slots.}}
|r=|red={{#dplvar:set|augmentuse|Red, Orange or Purple augment slots.}}
|r=|red={{#dplvar:set|augmentuse|[[:Category:Items with a Red Augment|Red]], [[:Category:Items with an Orange Augment|Orange]] or [[:Category:Items with a Purple Augment|Purple]] augment slots.}}
|b=|blue={{#dplvar:set|augmentuse|Blue, Green or Purple augment slots.}}
|b=|blue={{#dplvar:set|augmentuse|[[:Category:Items with a Blue Augment|Blue]], [[:Category:Items with a Green Augment|Green]] or [[:Category:Items with a Purple Augment|Purple]] augment slots.}}
|g=|green={{#dplvar:set|augmentuse|Green augment slot.}}
|g=|green={{#dplvar:set|augmentuse|[[:Category:Items with a Green Augment|Green]] augment slot.}}
|p=|purple={{#dplvar:set|augmentuse|Purple augment slot.}}
|p=|purple={{#dplvar:set|augmentuse|[[:Category:Items with a Purple Augment|Purple]] augment slot.}}
|o=|orange={{#dplvar:set|augmentuse|Orange augment slot.}}
|o=|orange={{#dplvar:set|augmentuse|[[:Category:Items with an Orange Augment|Orange]] augment slot.}}
|scale armor=|sa={{#dplvar:set|augmentuse|Isle of Dread: Scale (Armor) slot.|itemlinkpart|Isle of Dread Scale Armor}}
|scale armor=|sa={{#dplvar:set|augmentuse|Isle of Dread: [[:Category:Items with Isle of Dread Scale Armor Augment|Scale (Armor)]] slot.}}
|scale weapon=|sw={{#dplvar:set|augmentuse|Isle of Dread: Scale (Weapon) slot.|itemlinkpart|Isle of Dread Scale Weapon}}
|scale weapon=|sw={{#dplvar:set|augmentuse|Isle of Dread: [[:Category:Items with Isle of Dread Scale Weapon Augment|Scale (Weapon)]] slot.}}
|scale accessory=|se={{#dplvar:set|augmentuse|Isle of Dread: Scale (Accessory) slot.|itemlinkpart|Isle of Dread Scale Accessory}}
|scale accessory=|se={{#dplvar:set|augmentuse|Isle of Dread: [[:Category:Items with Isle of Dread Scale Accessory Augment|Scale (Accessory)]] slot.}}
|fang armor=|fa={{#dplvar:set|augmentuse|Isle of Dread: Fang (Armor) slot.|itemlinkpart|Isle of Dread Fang Armor}}
|fang armor=|fa={{#dplvar:set|augmentuse|Isle of Dread: [[:Category:Items with Isle of Dread Fang Armor Augment|Fang (Armor)]] slot.}}
|fang weapon=|fw ={{#dplvar:set|augmentuse|Isle of Dread: Fang (Weapon) slot.|itemlinkpart|Isle of Dread Fang Weapon}}
|fang weapon=|fw ={{#dplvar:set|augmentuse|Isle of Dread: [[:Category:Items with Isle of Dread Fang Weapon Augment|Fang (Weapon)]] slot.}}
|fang accessory=|fe={{#dplvar:set|augmentuse|Isle of Dread: Fang (Accessory) slot.|itemlinkpart|Isle of Dread Fang Accessory}}
|fang accessory=|fe={{#dplvar:set|augmentuse|Isle of Dread: [[:Category:Items with Isle of Dread Fang Accessory Augment|Fang (Accessory)]] slot.}}
|claw armor=|ca={{#dplvar:set|augmentuse|Isle of Dread: Claw (Armor) slot.|itemlinkpart|Isle of Dread Claw Armor}}
|claw armor=|ca={{#dplvar:set|augmentuse|Isle of Dread: [[:Category:Items with Isle of Dread Claw Armor Augment|Claw (Armor)]] slot.}}
|claw weapon=|cw={{#dplvar:set|augmentuse|Isle of Dread: Claw (Weapon) slot.|itemlinkpart|Isle of Dread Claw Weapon}}
|claw weapon=|cw={{#dplvar:set|augmentuse|Isle of Dread: [[:Category:Items with Isle of Dread Claw Weapon Augment|Claw (Weapon)]] slot.}}
|claw accessory=|ce={{#dplvar:set|augmentuse|Isle of Dread: Claw (Accessory) slot.|itemlinkpart|Isle of Dread Claw Accessory}}
|claw accessory=|ce={{#dplvar:set|augmentuse|Isle of Dread: [[:Category:Items with Isle of Dread Claw Accessory Augment|Claw (Accessory)]] slot.}}
|horn armor=|ha={{#dplvar:set|augmentuse|Isle of Dread: Horn (Armor) slot.|itemlinkpart|Isle of Dread Horn Armor}}
|horn armor=|ha={{#dplvar:set|augmentuse|Isle of Dread: [[:Category:Items with Isle of Dread Horn Armor Augment|Horn (Armor)]] slot.}}
|horn weapon=|hw={{#dplvar:set|augmentuse|Isle of Dread: Horn (Weapon) slot.|itemlinkpart|Isle of Dread Horn Weapon}}
|horn weapon=|hw={{#dplvar:set|augmentuse|Isle of Dread: [[:Category:Items with Isle of Dread Horn Weapon Augment|Horn (Weapon)]] slot.}}
|horn accessory=|he={{#dplvar:set|augmentuse|Isle of Dread: Horn (Accessory) slot.|itemlinkpart|Isle of Horn Claw Accessory}}
|horn accessory=|he={{#dplvar:set|augmentuse|Isle of Dread: [[:Category:Items with Isle of Dread Horn Accessory Augment|Horn (Accessory)]] slot.}}
|set armor=|ea={{#dplvar:set|augmentuse|Isle of Dread: Set Bonus (Armor) slot.|itemlinkpart|Isle of Dread Set Bonus Armor}}
|set armor=|ea={{#dplvar:set|augmentuse|Isle of Dread: [[:Category:Items with Isle of Dread Set Bonus Armor Augment|Set Bonus (Armor)]] slot.}}
|set weapon=|ew={{#dplvar:set|augmentuse|Isle of Dread: Set Bonus (Weapon) slot.|itemlinkpart|Isle of Dread Set Bonus Weapon}}
|set weapon=|ew={{#dplvar:set|augmentuse|Isle of Dread: [[:Category:Items with Isle of Dread Set Bonus Weapon Augment|Set Bonus (Weapon)]] slot.}}
|set accessory=|ee={{{#dplvar:set|augmentuse|Isle of Dread: Set Bonus (Accessory) slot.|itemlinkpart|Isle of Dread Set Bonus Accessory}}
|set accessory=|ee={{{#dplvar:set|augmentuse|Isle of Dread: [[:Category:Items with Isle of Dread Set Bonus Accessory Augment|Set Bonus (Accessory)]] slot.}}
}}{{#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}}{{#if: {{#dplvar:itemlinkpart}}|&nbsp;{{SmallLink|(Items)|:Category:Items with {{#dplvar:itemlinkpart}} Augment}}}}}}{{#ifeq: {{FULLPAGENAME}} |Template:AugmentColorUse||{{#switch: {{lc:{{{1}}}}}
|#default={{#dplvar:augmentuse}}}}{{#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]]

Revision as of 00:08, 2 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.

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.