Template:IconLink/doc
< Template:IconLink
Revision as of 02:03, 26 June 2022 by Naginreed (talk | contribs) (Created page with "{{doc/start}} 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== * <code><nowiki>{{IconLink|1}}</nowiki></code> - Gives a link to the page "1", with its icon 1.png, size 50px * <code><nowiki>{{IconLink|1|size=100px}}</nowiki></code> - As above but with a 100px icon. * <code><nowiki>{{IconLink|1|default=unknown}}</nowiki></code> - uses "unknown.png" a...")
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.
This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.