Template:Colour: Difference between revisions

m
Replacing page with '<includeonly><span style="color:{{{1}}};">{{{2}}}</span></includeonly><noinclude>{{{{PAGENAME}}/doc}}Category:Template</noinclude>'
mNo edit summary
m (Replacing page with '<includeonly><span style="color:{{{1}}};">{{{2}}}</span></includeonly><noinclude>{{{{PAGENAME}}/doc}}Category:Template</noinclude>')
 
Line 1: Line 1:
<includeonly><span style="color:{{{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.
 
;Issue : The frame colours though nice are simply to light, i.e. too much pastel. Was fixed!
: 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>}}
'''<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
:{{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>
1,633

edits

MediaWiki spam blocked by CleanTalk.
MediaWiki spam blocked by CleanTalk.