Template:Character link
Jump to navigation
Jump to search
Shortcut
- {{CharLink}}
Insert a link to a character accompanied by the associated portrait.
Usage
Use icon links, and especially portrait overrides, only when called for by the style guide
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 an explicit charlink alias
- Category:Pages with missing charlink portraits
Examples
| Markup | Renders as |
|---|---|
{{CharLink|Lae'zel|Bae'zel}} | Bae'zel |
{{CharLink|Orpheus|icon=Orphic Hammer Icon.png}} | Orpheus |
{{CharLink|Volo|w=40}} | Volo |
{{CharLink|Unknown Character}} | Unknown Character |
{{CharLink|The Dark Urge (Origin)}} | The Dark Urge |
{{CharLink|Dark Urge (Origin)}} | Dark Urge |
{{CharLink|The Dark Urge}} | The Dark Urge |
{{CharLink|Dark Urge}} | Dark Urge |
Edge Cases
| Example | Markup | Renders as |
|---|---|---|
| Ethel defaults to hag | {{CharLink|Ethel (human)}} | Ethel |
| Override for Ethel's hag portrait (her page uses human by default) | {{CharLink|Auntie Ethel}} | Auntie Ethel |
| Both human and hag preserve Ethel vs Auntie Ethel choice | {{CharLink|Ethel}} | Ethel |
| Aylin uses paladin portrait | {{CharLink|Aylin}} | Aylin |
| Nightsong uses prison portrait | {{CharLink|Nightsong}} | Nightsong |
| Override for the Strange Ox's ooze portrait | {{CharLink|Zlorb}} | Zlorb |
| Strange Ox's portrait | {{CharLink|Strange OX}} | Strange OX |
| Page with an entry pointing to a missing image | {{CharLink|Altar to Shar}} | Altar to Shar |
| Raphael base | {{CharLink|Raphael}} | Raphael |
| Raphael combat | {{CharLink|Raphael/Combat|Raphael}} | Raphael |
| Deities are overridden with {{Deity}} | {{CharLink|Vlaakith}} | Vlaakith |
Encoded apostrophe: & # 3 9 ; |
{{CharLink|Lae'zel|Bae'zel}} | Bae'zel |
Encoded apostrophe: & # 0 3 9 ; |
{{CharLink|Lae'zel|Bae'zel}} | Bae'zel |
See also
- {{Ability}} - An equivalent template for ability scores
- {{Background}} - An equivalent template for backgrounds
- {{Class}} - An equivalent template for classes
- {{Deity}} - An equivalent template for deity creatures
- {{Race}} - An equivalent template for races
- {{Skill}} - An equivalent template for skills
Variants
- {{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 |













