Template:IconLink
Revision as of 02:02, 26 June 2022 by Naginreed (talk | contribs) (Created page with "<includeonly>[[File:{{#ifexist: File:{{{1}}}.png|{{{1}}}|{{{default}}}}}.png|{{{size|20px}}}|link={{{1}}}]] [[{{{1}}}|{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}]]</includeonly> <noinclude> {{doc}} Category:Formatting templates </noinclude>")
Takes a page title and provides an icon. The icon is a png with the same title. Optionally, you can specify a default icon to use if missing, and/or an icon size.
Usage
{{IconLink|1}}
- Gives a link to the page "1", with its icon 1.png, size 50px{{IconLink|1|size=100px}}
- As above but with a 100px icon.{{IconLink|1|default=unknown}}
- uses "unknown.png" as the icon if "1.png" not found.
Parameters
1
Page to link. Also the title of the png icon to use.size
(optional) is the image size. If not given, it will use 20px as default.default
(optional) icon name to fall back on if 1.png does not exist.
The above documentation is transcluded from Template:IconLink/doc. (edit | history)