K logo.png Congratulations /k/! K logo.png
Winners of the 2024 4chan Autumn Babby Cup

Difference between revisions of "Template:Color"

From Rigged Wiki
Jump to navigation Jump to search
m (1 revision)
 
Line 1: Line 1:
[[{{{2}}}|<span style="color:#{{{1}}};">{{{3|{{{2}}}}}}</span>]]<noinclude>[[Category:Code templates]][[Category:Templates]]</noinclude>
<includeonly>[[{{{2}}}|<span style="color:#{{{1}}};">{{{3|{{{2}}}}}}</span>]]</includeonly><noinclude>Takes a colour and an article name and returns a link to the article which is the given colour (instead of the default wiki link colour). Link text may optionally be provided as a third argument; otherwise, the article name will be used.
 
<code><nowiki>{{color|000|Curses}}</nowiki></code> thus gives {{color|000|Curses}}, while <code><nowiki>{{color|F00|Curses|this link is red}}</nowiki></code> becomes {{color|F00|Curses|this link is red}}.
 
[[Category:Code templates]][[Category:Templates]]</noinclude>

Latest revision as of 05:29, 7 November 2018

Takes a colour and an article name and returns a link to the article which is the given colour (instead of the default wiki link colour). Link text may optionally be provided as a third argument; otherwise, the article name will be used.

{{color|000|Curses}} thus gives Curses, while {{color|F00|Curses|this link is red}} becomes this link is red.