Templates w/ Parameters for external links
Fragment of a discussion from User talk:WikiAdministrator
Thanks! I'm also wondering if there's a way to hyperlink the image with the URL parameter.
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:
Let me know if that makes sense.
Best,
Will
Great! I understand now. From what I read, I thought I needed to have another template to pull in stuff for the parameters.
Thanks again!
- Z