Jump to content

Template:Color

From DynamicPageList3 Manual
Template documentation
Note: portions of the template sample may not be visible without values provided.
View or edit this template's documentation (edit) (about template documentation).
No TemplateStyles exist (create). Remember to add after the opening <includeonly> tag:
<templatestyles src="Template:Color/styles.css" />


Example(s)

[edit source]
  • {{color|green}} gives: green
  • {{color|#ccc|text}} gives: text
  • {{color|blue|Some text}} gives: Some text
  • {{color|red|Other text}} gives: Other text

Template Data

[edit source]

Wraps an HTML span element around the given content and changes the text color to whatever Hex Code RGB color is set.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
11

Enter the text content to color.

Stringrequired
22

To override the default color, specify a valid CSS color name or hex color value, including the # character.

Default
black
Example
#ccc
Stringoptional


Cookies help us deliver our services. By using our services, you agree to our use of cookies.