Template:Color/doc: Difference between revisions

From Zombie Panic! Official Wiki
Jump to navigation Jump to search
Created page with "{{Documentation/Header}} {{Lua}} {{CSS|Colors}} This '''Color''' template is used to add predefined formatted color to text. This uses the color classes in [https://zenless-zone-zero.fandom.com/wiki/MediaWiki:Colors.css 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..."
 
No edit summary
 
Line 11: Line 11:
Use the '''link''' parameter to set a link for the text to link to. Set as ''1'' to use text as link.
Use the '''link''' parameter to set a link for the text to link to. Set as ''1'' to use text as link.


{| class= "wikitable tdc3 tdc4 thc3 thc4"
{| class= "wikitable tdc3 tdc4 thc3"
! rowspan="2" | Type
! Type || Aliases || Color
! rowspan="2" | Aliases  
! colspan="2" | Color
|-
|-
! Light Theme !! Dark Theme
|Buzzword || {{F|Bz}}, {{F|Buzz}} || <span style="color:#FFAF2A">'''#FFAF2A'''</span>
|-
|-
! colspan="4" | <center>Highlight Colors<center/>
|Green || {{F|New}} || <span style="color:#2BAD00">'''#2BAD00'''</span>  
|-
|-
|Buzzword || {{F|Bz}}, {{F|Buzz}} || colspan="2" | <span style="color:#FFAF2A">'''#FFAF2A'''</span>
|Help || {{F|Tutorial}} || <span style="color:#E0BB00">'''#E0BB00'''</span>  
|-
|-
|Green || {{F|New}} || colspan="2" | <span style="color:#2BAD00">'''#2BAD00'''</span>  
|Menu || {{F|Action}} || <span style="color:#D3BC8E">'''#D3BC8E'''</span>  
|-
|-
|Help || {{F|Tutorial}} || <span style="color:#BB8010">'''#BB8010'''</span> || <span style="color:#E0BB00">'''#E0BB00'''</span>  
|Red || {{F|Old}} || <span style="color:#CF4029">'''#CF4029'''</span>  
|-
|-
|Menu || {{F|Action}} || <span style="color:#937C6E">'''#937C6E'''</span> || <span style="color:#D3BC8E">'''#D3BC8E'''</span>  
|Electric || {{F|shock}}, {{F|zap}} || <span style="color:#33B6FE">'''#33B6FE'''</span>
|-
|-
|Red || {{F|Old}} || colspan="2" | <span style="color:#CF4029">'''#CF4029'''</span>  
|Fire|| {{F|Burn}}, {{F|Blaze}} || <span style="color:#FF5623">'''#FF5623'''</span>  
|-
|-
|Electric || {{F|shock}}, {{F|zap}} || colspan="2" | <span style="color:#33B6FE">'''#33B6FE'''</span>
|Ice || {{F|Freeze}}, {{F|Freezing}}, {{F|frost}}, {{F|Frostbite}}, {{F|Frostburn}}, {{F|Frozen}}, {{F|Shatter}},  || <span style="color:#95EAE9">'''#95EAE9'''</span>  
|-
|-
|Fire|| {{F|Burn}}, {{F|Blaze}} || colspan="2" |  <span style="color:#FF5623">'''#FF5623'''</span>  
|Orange || {{F|Gold}}, {{F|Yellow}} || <span style="color:#EDCC2C">'''#EDCC2C'''</span>
|-
|-
|Ice || {{F|Freeze}}, {{F|Freezing}}, {{F|frost}}, {{F|Frostbite}}, {{F|Frostburn}}, {{F|Frozen}}, {{F|Shatter}},  || <span style="color:#1DAFAD">'''#1DAFAD'''</span> || <span style="color:#95EAE9">'''#95EAE9'''</span>
|Wind || || <span style="color:#4BEEA7">'''#4BEEA7'''</span>
|-
|Orange || {{F|Gold}}, {{F|Yellow}} || <span style="color:#C2A30A">'''#C2A30A'''</span> || <span style="color:#EDCC2C">'''#EDCC2C'''</span>
|-
|Wind || || <span style="color:#0AC272">'''#0AC272'''</span> || <span style="color:#4BEEA7">'''#4BEEA7'''</span>
|}
|}


Line 47: Line 41:
* {{T|Color|old|This text is colored as old|_Y_=1}}
* {{T|Color|old|This text is colored as old|_Y_=1}}
* {{T|Color|help|This text has the tutorial help text|_Y_=1}}
* {{T|Color|help|This text has the tutorial help text|_Y_=1}}
* {{T|Color|gold|This text is colored as physical|_Y_=1}}
* {{T|Color|gold|This text is colored as gold|_Y_=1}}
* {{T|Color|ice|This text is colored as ice|_Y_=1}}
* {{T|Color|ice|This text is colored as ice|_Y_=1}}
* {{T|Color|electric|This text is colored as electric|_Y_=1}}
* {{T|Color|electric|This text is colored as electric|_Y_=1}}
* {{T|Color|fire|This text is colored as fire|_Y_=1}}
* {{T|Color|fire|This text is colored as fire|_Y_=1}}
* {{T|Color|wind|This text is colored as wind|_Y_=1}}
* {{T|Color|wind|This text is colored as wind|_Y_=1}}

Latest revision as of 03:05, 12 June 2025

This is the documentation page for Color.
It contains usage information, categories, and other content not part of the original template page.
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