Difference between revisions of "Template:ColorText"

From DDO Compendium
Line 5: Line 5:
|example1 = <nowiki>Normal text {{ColorText||Colored Text}} Normal Text</nowiki>
|example1 = <nowiki>Normal text {{ColorText||Colored Text}} Normal Text</nowiki>
|example1output = Normal text {{ColorText||Colored Text}} Normal Text
|example1output = Normal text {{ColorText||Colored Text}} Normal Text
|example2 = <nowiki>Normal text {{ColorText|Purple|Colored Text}} Normal Text</nowiki>
|example2output = Normal text {{ColorText|Purple|Colored Text}} Normal Text
|parameter1name = Color
|parameter1name = Color
|parameter1description = The color to use
|parameter1description = The color to use
Line 36: Line 38:
| orange = orange
| orange = orange
| blue = #0060B5
| blue = #0060B5
| purple = light purple
| purple = #8a2be2
| mantle= #FB1ABB
| mantle= #FB1ABB
| epicmoment= #FFE400
| epicmoment= #FFE400
|#default = #00eeef
|#default = #00eeef
}}">{{{2}}}</span></onlyinclude>
}}">{{{2}}}</span></onlyinclude>

Revision as of 15:01, 19 April 2022

ColorText[edit]

This template is to put a color (teal by default) around the specified text.

Example Usage
Normal text {{ColorText||Colored Text}} Normal TextNormal text Colored Text Normal Text
Normal text {{ColorText|Purple|Colored Text}} Normal TextNormal text Colored Text Normal Text

Usage[edit]

{{ColorText|(Color)|(Text)|(Color)}}

Parameter Documentation
ColorThe color to use
Possible Values:
  • Teal
  • Light Red
  • Red
  • Yellow
  • Light blue
  • Chat Blue
  • Blue
  • Green
  • Mantle - this is the color of the mantle name in epic destinies
  • EpicStrike - this is the color of the Epic Strike name in epic destinies
  • EpicMoment - this is the color of the Epic Moment name in epic destinies
  • Custom - color is in the last parameter
TextThe text to wrap
ColorThe custom color text

Template

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


{{{2}}}