Template:Elc: Difference between revisions

From The Urban Dead Wiki
Jump to navigationJump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
[{{{1|}}} <span style="color:{{{3|black}}};">{{{|{{{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 = or {} characters will break the template, due to the way MediaWiki passes parameter values.
 
==Example==
<nowiki>{{elc|http://wiki.urbandead.com/|UrbanDeadWiki|green}}</nowiki> produces {{elc|http://wiki.urbandead.com/|UrbanDeadWiki|green}}.
 
[[Category:Utility Templates|{{PAGENAME}}]]

Revision as of 18:12, 9 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 = or {} characters will break the template, due to the way MediaWiki passes parameter values.

Example

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