Template:Character link
(Redirected from Template:CharLink)
Template documentation
Shortcut
- {{CharLink}}
This template creates a link to a character with an accompanying portrait icon. It expects an icon at File:Portrait {Name}.png, but this icon file can be overridden with the icon field.
This template has associated maintenance categories:
- Category:Pages using charlink for a deity
- Category:Pages with an explicit charlink icon
- Category:Pages with missing charlink portraits
Examples
Avoid direct icon overrides when possible
| Markup | Renders as |
|---|---|
{{CharLink|Lae'zel|Bae'zel}} | Bae'zel |
{{CharLink|Orpheus|icon=Orphic Hammer Icon.png}} | Orpheus |
{{CharLink|Volo|w=40}} | Volo |
{{CharLink|Ethel (human)}} | Ethel |
{{CharLink|Unknown Character}} | Unknown Character |
See also
- {{LgCharLink}} - sets the default size to 40 instead of 25
- {{MdCharLink}} - sets the default size to 30 instead of 25
- {{SmCharLink}} - sets the default size to 20 instead of 25
- {{ImageCharLink}} - center-aligned large portrait format
Template data
Inserts a link for a character.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| name | 1 | Name of the character | Page name | required |
| alias | 2 | Alias for the link text | String | optional |
| icon | icon | Specify a different icon | File | 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 |