Template:ColorText

From CruisersWiki

(Difference between revisions)
Jump to: navigation, search
m (moved Template:Cyan to Template:ColorText: Better name)
(New)
Line 1: Line 1:
-
<span style="color:{{{1}}}">{{{2}}}</span>
+
<span style="color:{{{1}}}">{{{2}}}</span><noinclude>
 +
 
 +
This template displays text in a given color.
 +
 
 +
== Usage ==
 +
 
 +
Quick format reference:
 +
: <code><nowiki>{{ColorText|color|Message}}</nowiki></code>
 +
 
 +
Example:
 +
: <code><nowiki>{{ColorText|red|This should be red}}</nowiki></code>, expands to
 +
: <span style="color:red">This should be red</span>
 +
</noinclude>

Revision as of 23:04, 2 April 2012

{{{2}}}

This template displays text in a given color.

Usage

Quick format reference:

{{ColorText|color|Message}}

Example:

{{ColorText|red|This should be red}}, expands to
This should be red
Personal tools
advertisement
Friends of Cruisers Wiki