Template:Color/doc

From Honkai: Nexus Anima Wiki
Jump to navigation Jump to search
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).

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 or plain hex code), 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.

Examples

  • Colors
    • {{Color|Old|This text is colored as Old text}} yields: This text is colored as Old text
    • {{Color|New|This text is colored as New text}} yields: This text is colored as New text
    • {{Color|Help|This text is colored as Help text}} yields: This text is colored as Help text
    • {{Color|Menu|This text is colored as Menu text}} yields: This text is colored as Menu text
    • {{Color|Buzz|This text is colored as Buzz text}} yields: This text is colored as Buzz text
    • {{Color|#EA8A56|This text has custom color based on a Hex Code}} yields: This text has custom color based on a Hex Code
    • {{Color|#d5bba5|This text has custom color based on a Hex Code}} yields: This text has custom color based on a Hex Code
  • Additional Options
    • {{Color|help|[[Anima|link to Animas]]|nobold=1}} yields: link to Animas
    • {{Color|#AAAAAA|[[Anima|link to Animas]]}} yields: link to Animas (custom hex colors do not work with links)

Template Data

Adds predefined formatted color to texts.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Color Type1

Type of color to use. If no second argument "Text", then searches for color type in text.

Stringrequired
Text2

Text to color.

Stringoptional
Linklink

Set to 1 to link to text. If string then links to page name.

Stringoptional
No Boldnobold

Set to 1 to have normal text instead of bold.

Booleanoptional