Template:Icon link
Displays a link with an icon.
This template simply calls {{Icon text}}, passing on all parameters, except that the second parameter (text) implicitly becomes the link, and an optional third parameter can override the actual text to use.
Examples
| Example | Markup | Renders as |
|---|---|---|
| Default | {{icon link | Flourish Icon.png | Flourish }} | Flourish |
| Custom link text | {{icon link | Flourish Icon.png | Flourish | Custom Text }} | Custom Text |
The default size is 25x25px meaning the icon is scaled until the width or height is 25 px. An alternative value for the height can be provided via the size or h or w parameters. See {{Icon}} for more information on setting icon size.
| Markup | Renders as |
|---|---|
{{icon link | size = 40 | Flourish Icon.png | Flourish }} | Flourish |
{{icon link | size = 20 | font size = 80% | Flourish Icon.png | Flourish | Custom Text }} | Custom Text |
{{icon link | Missing Icon 123.png | Flourish | Custom Text | size = 30}} | Custom Text |
Template parameters
Insert a linked icon.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Icon | 1 | The file to display as an icon, without the File: prefix. | String | required |
| Link | 2 | Where to link to. | Page name | required |
| Text | 3 | Replaces the link text with this if specified. | String | optional |
| Width | w | Override the width of the image. | Number | optional |
| Height | h | Override the height of the image. | Number | optional |
| Size | size | Set the size of the image to this by this. | Number | optional |
| Block | block | Whether to wrap the icon and link in a container HTML element. | String | optional |
| Gap | gap | If 'block' is set, the exact gap to use between the icon and link. | Number | optional |
| Nowrap | nowrap | If specified, will add the nowrap css style to the span. | String | optional |
| Class | class | Any classes to add to the img | String | optional |
| Font size | font size | Font size for the link. | Number | optional |
| Separator | separator | Separator between icon and link; default is NBSP. | Content | optional |


