Template:Color: Difference between revisions

From NPOWiki
Jump to navigation Jump to search
mNo edit summary
m fix parsing
 
Line 1: Line 1:
<includeonly><span style="color:{{{1|}}}{{#if:{{{3|}}}|; {{#switch:{{lc:{{{2}}}}}|bold=font-weight:bold|#default={{{2}}}}};|}}">{{#if:{{{3|}}}|{{{3}}}|{{{2}}}}}</span></includeonly><noinclude>{{documentation}}</noinclude>
<includeonly><span style="color:{{{1|}}};{{#if:{{{3|}}}| {{#switch:{{lc:{{{2}}}}}|bold=font-weight:bold|#default={{{2}}}}};|}}">{{#if:{{{3|}}}|{{{3}}}|{{{2}}}}}</span></includeonly><noinclude>{{documentation}}</noinclude>

Latest revision as of 09:22, 21 October 2025

Documentation [edit]

This template is used to display given text in a different color. This should be used very sparingly for special cases or graphics.

Parameters

  • first unnamed parameter - the color to use. This can be a named color or a hex code.
  • second unnamed parameter - optionally, it is possible to apply a different style to the text. This can be one of: bold. Otherwise, this is the text to color.
  • third unnamed parameter - if a style option was used, then this is the text to color.

The above documentation is transcluded from Template:Color/doc.