Templates w/ Parameters for external links

Jump to: navigation, search

Yep, in the image code on the template page, [[File:Permalink.svg|15px|link=URL]], change the link=URL part to link={{{same parameter name as the url}}}. So in my Template:Perma example (which I've updated to have the icon link), I've used the following code:

[[File:Permalink.svg|15px|link={{{link}}}]] {{{link}}}

[[File:Permalink.svg|15px|link={{{link}}]] [{{{link}}} {{{name}}}]

To call that template here, I would past the following code:

{{Perma
|link=http://www.google.com
|name=google.com
}}

Here is what it looks like live:

Permalink.svg http://www.google.com

Permalink.svg google.com

Let me know if that makes sense.

Best,

Will

20:08, 29 March 2011