Template:Color/doc: Difference between revisions
Content added Content deleted
(Undo revision 2057997 by Robkelk (talk) unfortunately, switching to the template that des not generate lint errors removes needed functionality) Tag: Undo |
(removing Lint Errors) |
||
Line 8:
==Features==
With two parameters, the first parameter sets the text color, and the second parameter is the text to be displayed. For example, <code><nowiki>{{
With three parameters, the first parameter sets the text color, the second parameter sets the background color, and the third parameter is the text to be displayed. For example,<br/> <code><nowiki>{{
Parameters will also accept hex codes. For instance, <code><nowiki>{{
<noinclude>[[Category:ATT Template Documentation]]</noinclude>
|
Latest revision as of 14:48, 22 May 2024
Usage
{{color|<name of color>|text}}
Bugs
Does not work properly with wiki worded text, use only on plain text.
Using inside a {{quote}} causes a lint error.
Features
With two parameters, the first parameter sets the text color, and the second parameter is the text to be displayed. For example, {{color|red|yellow}}
gives: yellow
With three parameters, the first parameter sets the text color, the second parameter sets the background color, and the third parameter is the text to be displayed. For example,
{{color|red|yellow|blue}}
gives: blue
Parameters will also accept hex codes. For instance, {{color|#016789|#78deef|text such as this}}
gives: text such as this