Template:Icon
Appearance
[[File:{{{1}}}|x25px|link=]]
Template documentation
|
---|
Note: portions of the template sample may not be visible without values provided. |
View or edit this documentation. (About template documentation) |
Editors can experiment in this template's sandbox and test case pages. |
- Description
- Inserts an icon with a link. Intended for external links only.
- Usage
- Place
{{Icon|<type>|<link>}}
next to an internal link or other text.
- Anonymous parameters
type
is the target website (such as "YouTube" or "Bandcamp").link
is an (optional) link. If you decide to use an external link with an '=', you MUST prefix the value with "2=", such as "2=https://www.youtube.com/watch?v=GGQMd-YUS5g" instead of "https://www.youtube.com/watch?v=GGQMd-YUS5g".
- Other parameters
size
is an integer value that can be used to resize the image. Its default is "25" for 25 pixels.label
is the image label.
- Accepted values
type
may be any of these values (case does not matter):
- Archive/Wayback
- Bandcamp
- Bluesky
- Discord
- Drive
- Instagram
- Newgrounds
- Mega
- Reddit
- SGFR
- SoundCloud
- Spotify
- TikTok
- Twitter
- Wikidata
- Wikipedia
- YouTube
- Zophar
- Examples
Input | Output |
---|---|
{{Icon|YouTube}} |
![]() |
{{Icon|YouTube|2=https://youtube.com}} |
![]() |
{{Icon|YouTube|label=I have hover text!}} |
![]() |
{{Icon|YouTube|size=50}} |
![]() |