Difference between revisions of "Template:tc"

From WikiCorporates
Jump to navigation Jump to search
m
m
Line 1: Line 1:
−
<span style="color:{{#if:{{{2|}}}|{{{1}}};">{{{2}}}|{{#if:{{{1|}}} |#fff000;">{{{1}}}| }}}}</span><noinclude>{{doc2}}</noinclude>
+
<span style="color:{{#if:{{{2|}}}|{{{1}}};">{{{2}}}|{{#if:{{{1|}}} |#ff00ff;">{{{1}}}| }}}}</span><noinclude>{{doc2}}</noinclude>

Revision as of 19:04, 23 March 2018

<span style="color:

[edit] Documentation

Usage

Tiny template to set the text colour.

It can take 1 extra parameter.

Example

{{tc
|#ff0000
|This is the text to be coloured
}}
Which will give
This is the text to be coloured
Without a colour param, you get this
This is the text to be coloured