You are viewing the MafiaScum.net Wiki. To play the game, visit the forum.

Template:Color: Difference between revisions

From MafiaWiki
Jump to navigation Jump to search
mNo edit summary
m (redo template)
Line 1: Line 1:
<includeonly><font color=#{{{1}}}>{{{2}}}</font></includeonly><noinclude>This is a template for using the <code><nowiki><font color></nowiki></code> tag.</noinclude>
<includeonly><span style="color:{{ #switch:{{{1}}}| blue=#00a | red=#a00 | green=#0a0 | light green = 0f0| #{{{1}}} }}>{{{2}}}</span></includeonly>
<noinclude>This is a template for add a specified color to text.
 
== Usage ==
<pre>
{{color
| color name or RGB code
| text
}}
</pre>
 
=== Examples ===
Curently, blue, red, green, and light green are defined. A hexadecimal RGB code is also acceptable.
 
{| border="1" cellpadding="2" cellspacing="0"
|-
| width=50% | What you type
| width=50% | What it looks like
|-
|
<pre>
{{color|blue|Example}}
</pre>
|
{{color|blue|Example}}
|-
|
<pre>
{{color|red|Example}}
</pre>
|
{{color|red|Example}}
|-
|
<pre>
{{color|green|Example}}
</pre>
|
{{color|green|Example}}
|-
|
<pre>
{{color|light green|Example}}
</pre>
|
{{color|light green|Example}}
|-
|
<pre>
{{color|ffcc00|Example}}
</pre>
|
{{color|ffcc00|Example}}
|-
|
<pre>
{{color||Example}}
</pre>
|
{{color||Example}}
}}
</noinclude>

Revision as of 23:02, 20 August 2007

This is a template for add a specified color to text.

Usage

{{color
| color name or RGB code
| text
}}

Examples

Curently, blue, red, green, and light green are defined. A hexadecimal RGB code is also acceptable.

What you type What it looks like
{{color|blue|Example}}

Example

{{color|red|Example}}

Example

{{color|green|Example}}

Example

{{color|light green|Example}}

Example

{{color|ffcc00|Example}}

Example

{{color||Example}}

Example

}}