Template:Color/doc: Difference between revisions
No edit summary |
No edit summary |
||
| Line 31: | Line 31: | ||
** {{T|Color|AoE Hydro DMG|p2=link=Hydro|_Y_=1}} | ** {{T|Color|AoE Hydro DMG|p2=link=Hydro|_Y_=1}} | ||
--> | --> | ||
** <code><nowiki>{{Color|help|Anima|nobold=1}}</nowiki></code> yields: {{Color|help|Anima|nobold=1}} | ** <code><nowiki>{{Color|help|[[Anima|link to Animas]]|nobold=1}}</nowiki></code> yields: {{Color|help|[[Anima|link to Animas]]|nobold=1}} | ||
** <code><nowiki>{{Color|#AAAAAA|[[Anima|link to Animas]]}}</nowiki></code> yields: {{Color|#AAAAAA|[[Anima|link to Animas]]}} (custom hex colors do not work with links) | ** <code><nowiki>{{Color|#AAAAAA|[[Anima|link to Animas]]}}</nowiki></code> yields: {{Color|#AAAAAA|[[Anima|link to Animas]]}} (custom hex colors do not work with links) | ||
Revision as of 17:51, 30 August 2025
This is the documentation page for Color. It contains usage information, categories, and other content not part of the original template page. | ||
|---|---|---|
| Main | Documentation | Usage |
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:
- {{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.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Color Type | 1 | Type of color to use. If no second argument "Text", then searches for color type in text. | String | required |
| Text | 2 | Text to color. | String | optional |
| Link | link | Set to 1 to link to text. If string then links to page name. | String | optional |
| No Bold | nobold | Set to 1 to have normal text instead of bold. | Boolean | optional |