Difference between revisions of "Template:C"

From The Urban Dead Wiki
Jump to navigationJump to search
 
Line 1: Line 1:
<span style="color: {{{1}}}; background-color:{{{3|transparent}}}">{{{2}}}</span><noinclude>
<noinclude>{{Doc}}[[Category:Utility Templates|{{PAGENAME}}]]</noinclude><span style="color:{{{1|}}};background-color:{{{3|transparent}}}">{{{2}}}</span>
 
==Usage==
 
this template is for easily making text different colors:
 
just type <code><nowiki>{{c|some color|text you want to change}}</nowiki></code>
 
so you could type <code><nowiki>{{c|red|ZOMFG YOU ARE AN IDIOT.}}</nowiki></code> and it would produce {{c|red|ZOMFG YOU ARE AN IDIOT.}}
 
A list of usable colour names are [http://en.wikipedia.org/wiki/Web_colors here] in the large table under the heading "X11 color names". They are on the [[Web Colours]] page too.
 
You can add a background colour:
 
just type <code><nowiki>{{c|text color|text you want to change|background colour}}</nowiki></code>
 
eg <code><nowiki>{{c|green|Hello world!|yellow}}</nowiki></code> would produce {{c|green|Hello world!|yellow}}
 
 
Alternatively, a hash followed by a hexadecimal number from #000000 to #FFFFFF can be used to pick the colours.
 
So you could type <code><nowiki>{{c|#32CD31|some writing}}</nowiki></code> and it would produce {{c|#32CD31|some writing}}.
 
[[Category:Utility Templates|{{PAGENAME}}]]</noinclude>

Latest revision as of 18:59, 6 June 2011

Documentation
See the talk page for details.

{{{2}}}