Template:Icon/doc
Appearance
![]() |
This is a template documentation subpage for Template:Icon. It contains usage information, categories, and other content that is not part of the original template. |
- 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}} |
![]() |