Template:Colour: Difference between revisions

From AniDB
Jump to navigation Jump to search
mNo edit summary
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.
;Issue : The frame colours though nice are simply to light, i.e. too much pastel. Will need to fix this!


;Syntax : {{m|colour|<colour>|<text>}}
;Syntax : {{m|colour|<colour>|<text>}}
Line 13: Line 15:
   '''<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!}}
;Examples
:{{m|colour|yellow|This text is yellow!}}<br>{{colour|yellow|This text is yellow!}}
:{{m|colour|red|This text is red!}}<br>{{colour|red|This text is red!}}
:{{m|colour|green|This text is green!}}<br>{{colour|green|This text is green!}}
:{{m|colour|blue|This text is blue!}}<br>{{colour|blue|This text is blue!}}
:{{m|colour|grey|This text is grey!}}<br>{{colour|grey|This text is grey!}}
:{{m|colour|purple|This text is purple!}}<br>{{colour|purple|This text is purple!}}


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

Revision as of 08:42, 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.
Issue
The frame colours though nice are simply to light, i.e. too much pastel. Will need to fix this!
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.
Examples
{{colour|yellow|This text is yellow!}}
This text is yellow!
{{colour|red|This text is red!}}
This text is red!
{{colour|green|This text is green!}}
This text is green!
{{colour|blue|This text is blue!}}
This text is blue!
{{colour|grey|This text is grey!}}
This text is grey!
{{colour|purple|This text is purple!}}
This text is purple!