Template:CharLink: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
No edit summary
Tag: Manual revert
(New demo template)
Line 6: Line 6:


== Examples ==
== Examples ==
{|class="wikitable"
{{Template demo
! Code !! Result
| <nowiki>{{CharLink|Lae'zel|Bae'zel}}</nowiki>
|-
| <nowiki>{{CharLink|Auntie Ethel|icon=Portrait Ethel Human.png}}</nowiki>
| <code><nowiki>{{CharLink|Lae'zel|Bae'zel}}</nowiki></code>
| <nowiki>{{CharLink|Volo|w=40}}</nowiki>
| {{CharLink|Lae'zel|Bae'zel}}
| <nowiki>{{CharLink|Unknown Character}}</nowiki>
|-
}}
| <code><nowiki>{{CharLink|Auntie Ethel|icon=Portrait Ethel Human.png}}</nowiki></code>
| {{CharLink|Auntie Ethel|icon=Portrait Ethel Human.png}}
|-
| <code><nowiki>{{CharLink|Volo|w=40}}</nowiki></code>
| {{CharLink|Volo|w=40}}
|-
| <code><nowiki>{{CharLink|Unknown Character}}</nowiki></code>
| {{CharLink|Unknown Character}}
|}


== Template data ==
== Template data ==

Revision as of 05:42, 20 July 2024

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 an associated maintenance category at Category:Pages with missing charlink portraits.

Examples

Markup Renders as
{{CharLink|Lae'zel|Bae'zel}}
Lae'zel Bae'zel
{{CharLink|Auntie Ethel|icon=Portrait Ethel Human.png}}
Auntie Ethel Auntie Ethel
{{CharLink|Volo|w=40}}
Volo Volo
{{CharLink|Unknown Character}}
File:Portrait Unknown Character.png 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
25
Numberoptional