Template:Color: Difference between revisions
Jump to navigation
Jump to search
create |
m fix parsing |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly><span style="color:{{{1|}}}{{#if:{{{3|}}}| | <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.