Template:Color: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<span style = "color:{{{2|black}}};">{{{1}}}</span><noinclude><br | <span style = "color:{{{2|black}}};">{{{1}}}</span><noinclude> | ||
{{documentation | |||
|This template makes colored text. One can use either the color name or an HTML RGB code.<br> | |||
'''''Note: This may cause unwanted line breaks.''''' | |||
|<code><nowiki>{{color|<text>|<color name or HTML code>}}</nowiki></code> | |||
|<code><nowiki>{{color|This very text will come out purple.|#ffaaff}}</nowiki></code><br> | |||
Output: {{color|This very text will come out purple.|#ffaaff}}<br> | |||
<code><nowiki>{{color|And this second example will come out lime green.|lime}}</nowiki></code><br> | |||
Output: {{color|And this second example will come out lime green.|lime}} | |||
}}[[Category:Templates]]</noinclude> |
Revision as of 22:24, 18 November 2021
{{{1}}}
Template Documentation
Description
This template makes colored text. One can use either the color name or an HTML RGB code.
Note: This may cause unwanted line breaks.
Syntax
{{color|<text>|<color name or HTML code>}}
Examples
{{color|This very text will come out purple.|#ffaaff}}
Output: This very text will come out purple.
{{color|And this second example will come out lime green.|lime}}
Output: And this second example will come out lime green.