Template:ColorText

From CruisersWiki

(Difference between revisions)
Jump to: navigation, search
m (moved Template:Cyan to Template:ColorText: Better name)
m (Updated)
 
(2 intermediate revisions not shown)
Line 1: Line 1:
-
<span style="color:{{{1}}}">{{{2}}}</span>
+
<includeonly><span style="color:{{{1}}}">{{{2}}}</span></includeonly><noinclude>
 +
 
 +
This template displays text in a given color.
 +
 
 +
== Usage ==
 +
 
 +
Copy and paste:
 +
<pre><nowiki>{{ColorText|color|Message}}</nowiki></pre >
 +
 
 +
Example:
 +
<pre><nowiki>{{ColorText|red|This should be red}}</nowiki></pre>
 +
expands to:
 +
<span style="color:red">This should be red</span>
 +
 
 +
[[Category:Templates|ColorText]]
 +
</noinclude>

Latest revision as of 19:50, 25 March 2015


This template displays text in a given color.

Usage

Copy and paste:

{{ColorText|color|Message}}

Example:

{{ColorText|red|This should be red}}

expands to: This should be red

Personal tools
advertisement
Friends of Cruisers Wiki