Jump to content

Template:Color

From The Petit Planet Wiki
Revision as of 14:46, 25 November 2025 by Stevium (talk | contribs) (Added TemplateStyles)
Template documentation
Note: parts of or the entire template might not be visible without values provided.
This template uses Module:Color, a script written in Lua.
This template uses CSS found at MediaWiki:Gadget-Color.css.

Template that adds color to text.

Syntax

{{Color}}

This template has 2 unnamed parameters:

  • 1 – Color type, alias, or a valid color code.
  • 2 – Text that will be colored.
  • no_bold – Set to 1 to disable the auto bold.

Colors

Type Aliases Color
Light Theme Dark Theme
Accent #EAC863 #DDBC5B
Buzz Buzzword, Bz #499AA1 #54B2BA
Highlight Neighbor #80A132 #9DC43D
Menu #937C6E #D3BC8E
New Green #317E2A #41BE3A
Old Red #932015 #ED6D59
Help Tutorial, Item #BB8010 #E0BB00
Catch #17744B #85CDAE
Whisper wp #919175 #7C7F91

Examples

Default

Additional

Template Data

Template that adds color to text.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Color1

Color type, alias, or a valid color code.

Stringrequired
Text2

Text that will be colored.

Contentsuggested
No boldno_bold

Set to 1 to disable the auto bold.

Booleanoptional