Template:Colour: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<includeonly><span style="color: {{#if:{{{1|}}}|{{{1}}}|red}};">{{{2}}}</span></includeonly><noinclude> Use it like this: {{C|<nowiki>{{color|green|Text goes here.}}</nowiki>}} </noinclude>") |
m (Willowisp moved page Template:Color to Template:Colour) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly>{{#if: {{{1|}}} | <span style="color: {{{1}}};">{{trim | {{{2}}} }}</span> | {{{2}}} }}</includeonly><noinclude> | ||
Usage: {{code|<nowiki>Blah. {{color|limegreen|Text goes here.}} Blub.</nowiki>}} | |||
{{ | Result: Blah. {{color|limegreen|Text goes here.}} Blah. | ||
Usage: {{code|<nowiki>Blah. {{color|#00ff00|Text goes here.}} Blah.</nowiki>}} | |||
Result: Blah. {{color|#00ff00|Text goes here.}} Blah. | |||
Usage: {{code|<nowiki>Blah. {{color||Text goes here.}} Blah.</nowiki>}} | |||
Result: Blah. {{color||Text goes here.}} Blah. | |||
</noinclude> | </noinclude> |
Latest revision as of 15:23, 1 November 2023
Usage: Blah. {{color|limegreen|Text goes here.}} Blub.
Result: Blah. Text goes here. Blah.
Usage: Blah. {{color|#00ff00|Text goes here.}} Blah.
Result: Blah. Text goes here. Blah.
Usage: Blah. {{color||Text goes here.}} Blah.
Result: Blah. Text goes here. Blah.