Template:Color: Difference between revisions

From DynamicPageList3 Manual
Content added Content deleted
imported>FrozenPlum
(Create a template to use on pages and query with DPL3)
 
imported>FrozenPlum
m (Forgot the default)
Line 1: Line 1:
<span style="color:{{{1|black}}};">{{{2|Example}}}</span><noinclude>
<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==

Revision as of 02:28, 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