Template:Color: Difference between revisions
From Soygem Wiki
Jump to navigationJump to search
No edit summary Tag: Reverted |
m (Reverted edit by Ononoshemmypedoswhatsthis (talk) to last revision by Mutt) Tag: Rollback |
||
Line 1: | Line 1: | ||
<includeonly>[[{{{2}}}|<span style="color:#{{{1}}};">{{{3|{{{2}}}}}} | <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}}. | <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> | [[Category:Code templates]][[Category:Templates]]</noinclude> |
Latest revision as of 19:18, 7 September 2024
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.