Template:Color

From Zombie Panic! Official Wiki
Jump to navigation Jump to search
Documentation icon 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:Colors.css (edit | hist).

This Color template is used to add predefined formatted color to text. This uses the color classes in MediaWiki:Colors.css. If you want make additions or changes, please send suggestions to the Admins.

Syntax

There are two unnamed parameters that can be used. The first parameter declares the type of color (based on element or other identifier determined beforehand), and the second parameter is used to display the text.

If the second parameter is missing, the first parameter will be displayed.

Use the link parameter to set a link for the text to link to. Set as 1 to use text as link.

Type Aliases Color
Buzzword Bz, Buzz #FFAF2A
Green New #2BAD00
Help Tutorial #E0BB00
Menu Action #D3BC8E
Red Old #CF4029
Electric shock, zap #33B6FE
Fire Burn, Blaze #FF5623
Ice Freeze, Freezing, frost, Frostbite, Frostburn, Frozen, Shatter, #95EAE9
Orange Gold, Yellow #EDCC2C
Wind #4BEEA7

Examples

  • {{Color|Buzzword|This text is colored as quest buzzwords}} yields: This text is colored as quest buzzwords
  • {{Color|menu|This text is colored as menu titles}} yields: This text is colored as menu titles
  • {{Color|new|This text is colored as new}} yields: This text is colored as new
  • {{Color|old|This text is colored as old}} yields: This text is colored as old
  • {{Color|help|This text has the tutorial help text}} yields: This text has the tutorial help text
  • {{Color|gold|This text is colored as gold}} yields: This text is colored as gold
  • {{Color|ice|This text is colored as ice}} yields: This text is colored as ice
  • {{Color|electric|This text is colored as electric}} yields: This text is colored as electric
  • {{Color|fire|This text is colored as fire}} yields: This text is colored as fire
  • {{Color|wind|This text is colored as wind}} yields: This text is colored as wind