Template:Elc: Difference between revisions

From The Urban Dead Wiki
Jump to navigationJump to search
mNo edit summary
mNo edit summary
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
[{{{1}}} <span style="color:red;">{{{2}}}</span>]
[{{{1|}}} <span style="color:{{{3|red}}};">{{{2|}}}</span>]<noinclude>
A simple hack to provide alternate colors to external (non-wiki) links (default: red).
 
==Usage==
<nowiki>{{elc|<link address>|<link name>|[<color>]}}</nowiki>
 
The color parameter is optional, defaults to red, and can be any named color or hash value. Note that links containing an = character will break the template, due to the way MediaWiki passes parameter values. A possible workaround is to use this format:
 
<nowiki>{{elc|1=<link address>|2=<link name>|[3=<color>]}}</nowiki>
 
==Example==
<nowiki>{{elc|http://wiki.urbandead.com/|UrbanDeadWiki|green}}</nowiki> produces {{elc|http://wiki.urbandead.com/|UrbanDeadWiki|green}}.
 
[[Category:Utility Templates|{{PAGENAME}}]]</noinclude>

Latest revision as of 20:21, 23 July 2009

[ ] A simple hack to provide alternate colors to external (non-wiki) links (default: red).

Usage

{{elc|<link address>|<link name>|[<color>]}}

The color parameter is optional, defaults to red, and can be any named color or hash value. Note that links containing an = character will break the template, due to the way MediaWiki passes parameter values. A possible workaround is to use this format:

{{elc|1=<link address>|2=<link name>|[3=<color>]}}

Example

{{elc|http://wiki.urbandead.com/|UrbanDeadWiki|green}} produces UrbanDeadWiki.