Template:Color/doc: Difference between revisions

Everything About Fiction You Never Wanted to Know.
Content added Content deleted
No edit summary
(removing Lint Errors)
 
(3 intermediate revisions by the same user not shown)
Line 2: Line 2:
<nowiki> {{color|<name of color>|text}} </nowiki>
<nowiki> {{color|<name of color>|text}} </nowiki>


== '''Bugs''' ==
Does not work properly with wiki worded text, use only on plain text.
Does not work properly with wiki worded text, use only on plain text.

Using inside a {{tl|quote}} causes a [[Special:LintErrors/stripped-tag|lint error]].


==Features==
==Features==
With two parameters, the first parameter sets the text color, and the second parameter is the text to be displayed. For example, {{t|color|red|yellow}} gives: {{color|red|yellow}}
With two parameters, the first parameter sets the text color, and the second parameter is the text to be displayed. For example, <code><nowiki>{{color|red|yellow}}</nowiki></code> gives: {{color|red|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,<br/> {{t|color|red|yellow|blue}} gives: {{color|red|yellow|blue}}
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>{{color|red|yellow|blue}}</nowiki></code> gives: {{color|red|yellow|blue}}


Parameters will also accept hex codes. For instance, {{t|color|#016789|#78deef|text such as this}} gives: {{color|#016789|#78deef|text such as this}}
Parameters will also accept hex codes. For instance, <code><nowiki>{{color|#016789|#78deef|text such as this}}</nowiki></code> gives: {{color|#016789|#78deef|text such as this}}


<noinclude>[[Category:ATT Template Documentation]]</noinclude>
<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