Template:Colour: Difference between revisions

From AniDB
Jump to navigation Jump to search
(Template to replace the <font colour=...>...</font> HTML code.)
 
mNo edit summary
Line 1: Line 1:
<includeonly><span style="color:{{CatWcolFrame|{{{1}}}}};">{{{2}}}</span></includeonly><noinclude>
<includeonly><span style="color:#{{CatWcolFrame|{{{1}}}}};">{{{2}}}</span></includeonly><noinclude>
;Info : Set the colour of the text explicitly (not recommended usually). The template replaces the HTML tag <tt><nowiki><font color=...>...</font></nowiki></tt>, using the standardized info box frame colours for consistency.
;Info : Set the colour of the text explicitly (not recommended usually). The template replaces the HTML tag <tt><nowiki><font color=...>...</font></nowiki></tt>, using the standardized info box frame colours for consistency.


Line 13: Line 13:
   '''<text>'''  =  The text you would like to colour.
   '''<text>'''  =  The text you would like to colour.


;Example : {{m|colour|blue|This text is blue!}}<br>{{colour|blue|This text is blue!}}
;Example : {{m|colour|blue|This text is blue!}}<br>{{colour|red|This text is blue!}}


[[Category:Template]]</noinclude>
[[Category:Template]]</noinclude>

Revision as of 08:32, 13 May 2009

Info
Set the colour of the text explicitly (not recommended usually). The template replaces the HTML tag <font color=...>...</font>, using the standardized info box frame colours for consistency.
Syntax
{{colour|<colour>|<text>}}
<colour>  =  yellow   -   Just a few of the valid colour names.
             red
             green
             blue
             grey 
             purple (default)
             For a complete list of valid colour names see the Template:CatWcolFrame template.

  <text>  =  The text you would like to colour.
Example
{{colour|blue|This text is blue!}}
This text is blue!