Template:ImageCharLink: Difference between revisions
Jump to navigation
Jump to search
HiddenDragon (talk | contribs) (Created page with "<includeonly>{{ImageLink|{{#if:{{{icon|}}}|{{{icon}}}|Portrait {{{1}}}.png}}|{{{1}}}|{{{2|{{{1}}}}}}|w={{{w|80}}}|h={{{w|80}}}}}{{#ifexist: File:{{#if:{{{icon|}}}|{{{icon}}}|Portrait {{{1}}}.png}} | | {{Main namespace only|Category:Pages with missing charlink portraits}} }}</includeonly><noinclude>{{documentation|content= {{see also|Template:CharLink}} This template is similar to CharLink except it places the portrait above the link to the character. Like CharLink, i...") |
HiddenDragon (talk | contribs) mNo edit summary |
||
Line 38: | Line 38: | ||
"description": "Width (and height) of icon", | "description": "Width (and height) of icon", | ||
"label": "width", | "label": "width", | ||
"default": " | "default": "80", | ||
"type": "number" | "type": "number" | ||
} | } |
Latest revision as of 06:11, 15 October 2024
Template documentation
See also: Template:CharLink
This template is similar to CharLink except it places the portrait above the link to the character. Like CharLink, it expects an icon at File:Portrait {Name}.png, but this icon file can be overridden with the icon field.
The default size is 80px (width and height).
This template has an associated maintenance category at Category:Pages with missing charlink portraits.
Examples
Markup | Renders as |
---|---|
{{ImageCharLink|Lae'zel|Bae'zel}} | |
{{ImageCharLink|Auntie Ethel|icon=Portrait Ethel Human.png}} | |
{{ImageCharLink|Volo|w=40}} | |
{{ImageCharLink|Unknown Character}} |
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 | Width (and height) of icon
| Number | optional |