Template:Color: Difference between revisions

From Unofficial Homecoming Wiki
Jump to navigation Jump to search
imported>Sekoia
(minor tweaks, also adding see also to shortcut templates)
imported>Aggelakis
m (cat)
Line 1: Line 1:
<includeonly><span style="color: {{{1}}};">{{{2}}}</span></includeonly><noinclude>[[Category:Formatting Templates|{{PAGENAME}}]]
<includeonly><span style="color: {{{1}}};">{{{2}}}</span></includeonly><noinclude>[[Category:Text Color Templates]]
==Code==
==Code==
<code><nowiki><span style="color: {{{1}}};">{{{2}}}</span></nowiki></code>
<code><nowiki><span style="color: {{{1}}};">{{{2}}}</span></nowiki></code>
Line 12: Line 12:


==See Also==
==See Also==
* {{tl|blue}} - Shortcut for blue text.
* {{tl|blue}}
* {{tl|orange}} - Shortcut for orange text.
* {{tl|green}}
* {{tl|red}} - Shortcut for red text.
* {{tl|orange}}
* {{tl|mauve}}
* {{tl|red}}
* {{tl|teal}}
</noinclude>
</noinclude>

Revision as of 21:19, 22 March 2009

Code

<span style="color: {{{1}}};">{{{2}}}</span>

Usage

{{color|your_color|your_text}}
your_color can be any recognized color name, or the RGB or Hex. Red, rbg(255,0,0) and #FF0000 all net the same result. List of color names and Hex equivalents, RGB can be found on nearby pages

Note

Those familiar with CSS will note that you could add more CSS code in place of your_color, as long as a color is specified first, and you are aware of the final semicolon.

{{color|blue|stuff}} stuff
{{color|blue; font-weight: bold|stuff}} stuff

See Also