Template:Colour: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (Using HTML colour names for now.) |
||
Line 1: | Line 1: | ||
<includeonly><span style="color: | <includeonly><span style="color:{{{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! | ;Issue : The frame colours though nice are simply to light, i.e. too much pastel. Will need to fix this! | ||
: Old code: <tt><nowiki><span style="color:#{{CatWcolFrame|{{{1}}}}};">{{{2}}}</span></nowiki></tt> | |||
;Current Version : The present version simply accepts valid HTML colour names e.g. <tt>pink</tt>, and colour codes e.g. <tt>#FF8000</tt> for orange. | |||
;Syntax : {{m|colour|<colour>|<text>}} | ;Syntax : {{m|colour|<colour>|<text>}} | ||
Line 11: | Line 15: | ||
'''grey''' | '''grey''' | ||
'''purple''' (default) | '''purple''' (default) | ||
For a complete list of valid colour names see the [[Template:CatWcolFrame]] template. | (For a complete list of valid colour names see the [[Template:CatWcolFrame]] template.) | ||
'''<text>''' = The text you would like to colour. | '''<text>''' = The text you would like to colour. |
Revision as of 09:05, 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!
- Old code: <span style="color:#{{CatWcolFrame|{{{1}}}}};">{{{2}}}</span>
- Current Version
- The present version simply accepts valid HTML colour names e.g. pink, and colour codes e.g. #FF8000 for orange.
- 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!