Difference between revisions of "Template:AugmentColorUse"

From DDO Compendium
 
(24 intermediate revisions by the same user not shown)
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}}
|example4 = <nowiki>{{AugmentColorUse|IODSet}}</nowiki>
|example4output = {{AugmentColorUse|IODSet}}
|parameter1name = Color
|parameter1name = Color
|parameter1description = This is the color of the augment.
|parameter1description = This is the color of the augment.
|parameter1values =  
|parameter1values =  
* Colorless
* Colorless or C
* Yellow
* Yellow or Y
* Red
* Red or R
* Blue
* Blue or B
* Green
* Green or G
* Purple
* Purple or P
* Orange
* 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
* IOD Set Bonus or IODSet
* Sun or S
* Moon or M
}}
}}
</noinclude>
</noinclude>
<onlyinclude>{{#switch: {{lc:{{{1}}}}}
<onlyinclude>{{#dplvar:set|augmentcolor|{{{1}}}}}{{#switch: {{lc:{{{1}}}}}
|c=|colorless=Any augment slot.
|c=|colorless={{#dplvar:set|augmentuse|Any [[:Category:Items with an Augment|augment]] slot.}}{{#dplvar:set|seoaugmentuse|Any augment slot.}}
|y=|yellow=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 [[:Category:Items with a Green Augment|Green]] augment slots.}}{{#dplvar:set|seoaugmentuse|Yellow, Orange, or Green augment slot.}}
|r=|red=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.}}{{#dplvar:set|seoaugmentuse|Red, Orange, or Purple augment slot.}}
|b=|blue=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.}}{{#dplvar:set|seoaugmentuse|Blue, Green, or Purple augment slot.}}
|g=|green=Green augment slot.
|g=|green={{#dplvar:set|augmentuse|[[:Category:Items with a Green Augment|Green]] augment slot.}}{{#dplvar:set|seoaugmentuse|Green augment slot.}}
|p=|purple=Purple augment slot.
|p=|purple={{#dplvar:set|augmentuse|[[:Category:Items with a Purple Augment|Purple]] augment slot.}}{{#dplvar:set|seoaugmentuse|Purple augment slot.}}
|o=|orange=Orange augment slot.
|o=|orange={{#dplvar:set|augmentuse|[[:Category:Items with an Orange Augment|Orange]] augment slot.}}{{#dplvar:set|seoaugmentuse|Orange augment slot.}}
}}{{#ifeq: {{FULLPAGENAME}} |Template:AugmentColorUse||{{#switch: {{lc:{{{1}}}}}
|scale armor=|sa={{#dplvar:set|augmentuse|Isle of Dread: [[:Category:Items with Isle of Dread Scale Armor Augment|Scale (Armor)]] slot.}}{{#dplvar:set|seoaugmentuse|Isle of Dread Scale (Armor) augment slot.}}
|c=|colorless=[[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]]
|scale weapon=|sw={{#dplvar:set|augmentuse|Isle of Dread: [[:Category:Items with Isle of Dread Scale Weapon Augment|Scale (Weapon)]] slot.}}{{#dplvar:set|seoaugmentuse|Isle of Dread Scale (Weapon) augment slot.}}
|y=|yellow=[[Category:Augments that can be slotted into a Yellow Slot]][[Category:Augments that can be slotted into a Orange Slot]][[Category:Augments that can be slotted into a Green Slot]]
|scale accessory=|se={{#dplvar:set|augmentuse|Isle of Dread: [[:Category:Items with Isle of Dread Scale Accessory Augment|Scale (Accessory)]] slot.}}{{#dplvar:set|seoaugmentuse|Isle of Dread Scale (Accessory) augment slot.}}
|r=|red=[[Category:Augments that can be slotted into a Red Slot]][[Category:Augments that can be slotted into na Orange Slot]][[Category:Augments that can be slotted into a Purple Slot]]
|fang armor=|fa={{#dplvar:set|augmentuse|Isle of Dread: [[:Category:Items with Isle of Dread Fang Armor Augment|Fang (Armor)]] slot.}}{{#dplvar:set|seoaugmentuse|Isle of Dread Fang (Armor) augment slot.}}
|b=|blue=[[Category:Augments that can be slotted into a Blue Slot]][[Category:Augments that can be slotted into a Green Slot]][[Category:Augments that can be slotted into a Purple Slot]]
|fang weapon=|fw ={{#dplvar:set|augmentuse|Isle of Dread: [[:Category:Items with Isle of Dread Fang Weapon Augment|Fang (Weapon)]] slot.}}{{#dplvar:set|seoaugmentuse|Isle of Dread Fang (Weapon) augment slot.}}
|g=|green=[[Category:Augments that can be slotted into a Green Slot]]
|fang accessory=|fe={{#dplvar:set|augmentuse|Isle of Dread: [[:Category:Items with Isle of Dread Fang Accessory Augment|Fang (Accessory)]] slot.}}{{#dplvar:set|seoaugmentuse|Isle of Dread Fang (Accessory) augment slot.}}
|p=|purple=[[Category:Augments that can be slotted into a Purple Slot]]
|claw armor=|ca={{#dplvar:set|augmentuse|Isle of Dread: [[:Category:Items with Isle of Dread Claw Armor Augment|Claw (Armor)]] slot.}}{{#dplvar:set|seoaugmentuse|Isle of Dread Claw (Armor) augment slot.}}
|o=|orange=[[Category:Augments that can be slotted into an Orange Slot]]
|claw weapon=|cw={{#dplvar:set|augmentuse|Isle of Dread: [[:Category:Items with Isle of Dread Claw Weapon Augment|Claw (Weapon)]] slot.}}{{#dplvar:set|seoaugmentuse|Isle of Dread Claw (Weapon) augment slot.}}
}}}}
|claw accessory=|ce={{#dplvar:set|augmentuse|Isle of Dread: [[:Category:Items with Isle of Dread Claw Accessory Augment|Claw (Accessory)]] slot.}}{{#dplvar:set|seoaugmentuse|Isle of Dread Claw (Accessory) augment slot.}}
</onlyinclude>
|horn armor=|ha={{#dplvar:set|augmentuse|Isle of Dread: [[:Category:Items with Isle of Dread Horn Armor Augment|Horn (Armor)]] slot.}}{{#dplvar:set|seoaugmentuse|Isle of Dread Horn (Armor) augment slot.}}
|horn weapon=|hw={{#dplvar:set|augmentuse|Isle of Dread: [[:Category:Items with Isle of Dread Horn Weapon Augment|Horn (Weapon)]] slot.}}{{#dplvar:set|seoaugmentuse|Isle of Dread Horn (Weapon) augment slot.}}
|horn accessory=|he={{#dplvar:set|augmentuse|Isle of Dread: [[:Category:Items with Isle of Dread Horn Accessory Augment|Horn (Accessory)]] slot.}}{{#dplvar:set|seoaugmentuse|Isle of Dread Horn (Accessory) augment slot.}}
|iod set bonus=|iodset={{#dplvar:set|augmentuse|Isle of Dread: [[:Category:Items with Isle of Dread Set Bonus Augment|Isle of Dread Set Bonus]] slot.}}{{#dplvar:set|seoaugmentuse|Isle of Dread Set Bonus augment slot.}}
|sun|s={{#dplvar:set|augmentuse|[[:Category:Items with a Sun Augment|Sun]] augment slot.}}{{#dplvar:set|seoaugmentuse|Sun augment slot.}}
|moon|m={{#dplvar:set|augmentuse|[[:Category:Items with a Moon Augment|Moon]] augment slot.}}{{#dplvar:set|seoaugmentuse|Moon augment slot.}}
}}{{#switch: {{lc:{{#dplvar:displaystyle}}}}
|table={{#bootstrap_tooltip: {{{1}}} | text=  {{#dplvar:augmentuse}}}}
|#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]]
|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]]
|r=|red=[[Category: Red Augments]][[Category:Augments that can be slotted into a Red Slot]][[Category:Augments that can be slotted into an Orange Slot]][[Category:Augments that can be slotted into a Purple Slot]]
|b=|blue=[[Category: Blue Augments]][[Category:Augments that can be slotted into a Blue Slot]][[Category:Augments that can be slotted into a Green Slot]][[Category:Augments that can be slotted into a Purple Slot]]
|g=|green=[[Category: Green Augments]][[Category:Augments that can be slotted into a Green Slot]]
|p=|purple=[[Category: Purple Augments]][[Category:Augments that can be slotted into a Purple Slot]]
|o=|orange=[[Category: Orange Augments]][[Category:Augments that can be slotted into an Orange Slot]]
|scale armor=|sa=[[Category: Scale Armor Augments]][[Category:Augments that can be slotted into a Scale Armor Slot]]
|scale weapon=|sw=[[Category: Scale Weapon Augments]][[Category:Augments that can be slotted into a Scale Weapon Slot]]
|scale accessory=|se=[[Category: Scale Accessory Augments]][[Category:Augments that can be slotted into a Scale Accessory Slot]]
|fang armor=|fa=[[Category: Fang Armor Augments]][[Category:Augments that can be slotted into a Fang Armor Slot]]
|fang weapon=|fw =[[Category: Fang Weapon Augments]][[Category:Augments that can be slotted into a Fang Weapon Slot]]
|fang accessory=|fe=[[Category: Fang Accessory Augments]][[Category:Augments that can be slotted into a Fang Accessory Slot]]
|claw armor=|ca=[[Category: Claw Armor Augments]][[Category:Augments that can be slotted into a Claw Armor Slot]]
|claw weapon=|cw=[[Category: Claw Weapon Augments]][[Category:Augments that can be slotted into a Claw Weapon Slot]]
|claw accessory=|ce=[[Category: Claw Accessory Augments]][[Category:Augments that can be slotted into a Claw Accessory Slot]]
|horn armor=|ha=[[Category: Horn Armor Augments]][[Category:Augments that can be slotted into a Horn Armor Slot]]
|horn weapon=|hw=[[Category: Horn Weapon Augments]][[Category:Augments that can be slotted into a Horn Weapon Slot]]
|horn accessory=|he=[[Category: Horn Accessory Augments]][[Category:Augments that can be slotted into a Horn Accessory Slot]]
|iod set bonus=|iodset=[[Category: Isle of Dread Set Bonus Augments]][[Category:Augments that can be slotted into a Isle of Dread Set Bonus Slot]]
|s=|sun=[[Category: Sun Augments]][[Category:Augments that can be slotted into a Sun Slot]]
|m=|moon=[[Category: Moon Augments]][[Category:Augments that can be slotted into a Moon Slot]]
}}}}{{#dplvar:set|augmentuse|}}</onlyinclude>

Latest revision as of 22:02, 21 December 2024

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.
{{AugmentColorUse|IODSet}}Isle of Dread: Isle of Dread Set Bonus 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
  • IOD Set Bonus or IODSet
  • Sun or S
  • Moon or M

Template

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