Difference between revisions of "Template:Ctx"
Jump to navigation
Jump to search
(A way to do colortext simply, without having to span it all; documentation soon) |
m (Transcluded doc) |
||
Line 1: | Line 1: | ||
{{#if: {{{1|}}}|<span style="color:{{#switch: {{{1|}}}|yes=green|no=firebrick|maybe=#aa0|rad=#0A0|}}">{{{2}}}</span>|<!-- nothing provided -->}}<noinclude>{{ | {{#if: {{{1|}}}|<span style="color:{{#switch: {{{1|}}}|yes=green|no=firebrick|maybe=#aa0|rad=#0A0|}}">{{{2}}}</span>|<!-- nothing provided -->}}<noinclude>{{Ctx/doc}}</noinclude> |
Latest revision as of 10:22, 22 December 2016
A simple way to color text, consistently, without constantly using 'span style color=' etc.
For now the following color options are available: yes, no, maybe, and rad (radiation).
{{Ctx|yes|the color of yes}}
= the color of yes
{{Ctx|no|the color of nope.jpg}}
= the color of nope.jpg
{{Ctx|maybe|I'm not sure}}
= I'm not sure
'''{{Ctx|rad|hazardous to your health}}'''
= hazardous to your healthThe above documentation is transcluded from Template:Ctx/doc. (edit | history)