Template:Col-link: Difference between revisions

m
Text replacement - "userpage" to "user page"
(could be useful)
 
m (Text replacement - "userpage" to "user page")
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
[[{{{p|}}}:{{{1}}}|<span style="color:{{{2|#7f7f7f}}}">{{{p|}}}:{{{t|{{{1}}}}}}</span>]]<noinclude>
[[{{{p|}}}:{{{1}}}|<span style="color:{{{2|#7f7f7f}}}">{{{t|{{#if:{{{p|}}}|{{{p}}}:{{{1}}}|{{{1}}}}}}}}</span>]]<noinclude>


It is usually (and often intentionally) a pain to override the colour of links. This template simplifies the process. It only works for internal and interwiki links, not external ones.
It is usually (and often intentionally) a pain to override the colour of links. This template simplifies the process. It only works for internal and interwiki links, not external ones.
Line 7: Line 7:
<code><nowiki>{{col-link|p=optional interwiki/namespace prefix|page|t=optional alt text|colour}}</nowiki></code>
<code><nowiki>{{col-link|p=optional interwiki/namespace prefix|page|t=optional alt text|colour}}</nowiki></code>


{{col-link|p=Special|Random/User|t=A random userpage|red}}
{{col-link|p=Special|Random/User|t=A random user page|red}}


This template is provided for userspace tomfoolery and [[SW:1226]] purposes. It may have a place in mainspace tables and templates if for example a link is on a blue background and one wishes to make it more visible. It is '''NOT''' to be used in mainspace text.
This template is provided for userspace tomfoolery and [[SW:1226]] purposes. It may have a place in mainspace tables and templates if for example a link is on a blue background and one wishes to make it more visible. It is '''NOT''' to be used in mainspace text.


[[Category:Shortcut templates]]</noinclude>
[[Category:Shortcut templates]]</noinclude>