Difference between revisions of "Template:Colored link"

From blackwiki
Jump to navigation Jump to search
imported>Lightsup55
m (compare first parameter in upper case against "#CC2200", this way BOTH "#cc2200" and "#CC2200" will match "#CC2200".)
imported>Primefac
m (Changed protection level for "Template:Colored link": high-risk template with 4000+ transclusions ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite)))
 
(10 intermediate revisions by 10 users not shown)
Line 1: Line 1:
<includeonly>{{#ifeq:{{uc:{{{1}}}}}|#CC2200|{{red link|{{{2}}}|{{#if:{{{3|}}}|{{{3}}}|{{{2}}}}}}}|[[:{{{2}}}|<span style="color:{{{1}}}">{{#if:{{{3|}}}|{{{3}}}|{{{2}}}}}</span>]]}}</includeonly><noinclude>
+
[[:{{{2}}}|<span style="color: {{{1}}}; text-decoration: inherit; -moz-text-decoration-color: {{{1}}}; text-decoration-color: {{{1}}};">{{{3|{{{2}}}}}}</span>]]<noinclude>
  
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
{{Documentation}}</noinclude>
 
{{Documentation}}</noinclude>

Latest revision as of 16:29, 23 February 2018

[[:{{{2}}}|{{{2}}}]]

Template documentation[view] [edit] [history] [purge]

Usage

This template takes three parameters: the color of the link, the article being linked to, and optional text to display as a piped link.

{{colored link|olive|Page name to link|Alternative text}}Alternative text

See also