Template:ImageCharLink: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(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...")
 
mNo edit summary
 
Line 38: Line 38:
"description": "Width (and height) of icon",
"description": "Width (and height) of icon",
"label": "width",
"label": "width",
             "default": "25",
             "default": "80",
"type": "number"
"type": "number"
}
}

Latest revision as of 06:11, 15 October 2024

Template documentation

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.

Template parameters

ParameterDescriptionTypeStatus
name1

Name of the character

Page namerequired
alias2

Alias for the link text

Stringoptional
iconicon

Specify a different icon

Fileoptional
widthw

Width (and height) of icon

Default
80
Numberoptional