Template:Colour: Difference between revisions

From AniDB
Jump to navigation Jump to search
(Template to replace the <font colour=...>...</font> HTML code.)
 
m (Replacing page with '<includeonly><span style="color:{{{1}}};">{{{2}}}</span></includeonly><noinclude>{{{{PAGENAME}}/doc}}Category:Template</noinclude>')
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><span style="color:{{CatWcolFrame|{{{1}}}}};">{{{2}}}</span></includeonly><noinclude>
<includeonly><span style="color:{{{1}}};">{{{2}}}</span></includeonly><noinclude>{{{{PAGENAME}}/doc}}[[Category:Template]]</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.
 
;Syntax : {{m|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 : {{m|colour|blue|This text is blue!}}<br>{{colour|blue|This text is blue!}}
 
[[Category:Template]]</noinclude>

Latest revision as of 15:57, 16 May 2009

Set the colour of the text explicitly (not recommended usually). The template replaces the HTML tag

<font color=...>...</font>,

using the any valid HTML colour names e.g. pink, or colour codes e.g. #FF8000 for orange.

Syntax

The template can have 2 parameters:

  1. {{colour|<colour>|<text>}} - Set the colour for your text.
<colour>  =  red    -  Just a few of the valid colour names.
             green
             blue
             grey 
             purple

  <text>  =  The text you would like to colour.

Examples

{{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!