Template:Elc: Difference between revisions
From The Urban Dead Wiki
Jump to navigationJump to search
Marcusfilby (talk | contribs) mNo edit summary |
Marcusfilby (talk | contribs) mNo edit summary |
||
Line 1: | Line 1: | ||
[{{{1|}}} <span style="color:{{{3|red}}};"> | [{{{1|}}} <span style="color:{{{3|red}}};">{{{2|}}}</span>] | ||
<noinclude> | <noinclude> | ||
A simple hack to provide alternate colors to external (non-wiki) links (default: red). | A simple hack to provide alternate colors to external (non-wiki) links (default: red). |
Revision as of 20:17, 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 .