Template:Color: Difference between revisions
Content added Content deleted
imported>FrozenPlum (Create a template to use on pages and query with DPL3) |
imported>FrozenPlum m (add category I missed) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<span style="color:{{{1|black}}};">{{{2| |
<span style="color:{{{1|black}}};">{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}</span><noinclude> |
||
Wraps a span around the content and changes the text color to whatever Hex Code RGB color is set. |
Wraps a span around the content and changes the text color to whatever Hex Code RGB color is set. |
||
==Examples== |
==Examples== |
||
Line 8: | Line 8: | ||
[[Category:Example templates]] |
[[Category:Example templates]] |
||
[[Category:Templates]] |
|||
</noinclude> |
</noinclude> |
Latest revision as of 05:25, 4 April 2022
{{{1}}} Wraps a span around the content and changes the text color to whatever Hex Code RGB color is set.
Examples
{{color|green}}
gives green{{color|#ccc|text}}
gives text{{color|blue|Some text}}
gives Some text{{color|red|Other text}}
gives Other text