Difference between revisions of "Template:Color"
From Ouroboros Portal
m (6 revisions) |
GuyPerfect (Talk | contribs) m (→Note) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly><span style="color: {{{1}}};">{{{2}}}</span></includeonly><noinclude>[[Category:Formatting | + | <includeonly><span style="color: {{{1}}};">{{{2}}}</span></includeonly><noinclude>[[Category:Formatting templates|{{PAGENAME}}]] |
==Code== | ==Code== | ||
<code><nowiki><span style="color: {{{1}}};">{{{2}}}</span></nowiki></code> | <code><nowiki><span style="color: {{{1}}};">{{{2}}}</span></nowiki></code> | ||
Line 9: | Line 9: | ||
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. | 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. | ||
:<nowiki>{{color|blue|stuff}}</nowiki> {{color|blue|stuff}} | :<nowiki>{{color|blue|stuff}}</nowiki> {{color|blue|stuff}} | ||
− | :<nowiki>{{color| | + | :<nowiki>{{color|#006600; font-weight: bold|stuff}}</nowiki> {{color|#006600; font-weight: bold|stuff}} |
==See Also== | ==See Also== |
Latest revision as of 07:13, 2 March 2009
Contents
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|#006600; font-weight: bold|stuff}} stuff