Template:CharLink: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Restrict size of unknown icons)
(Square up the icon)
Line 1: Line 1:
<includeonly><span style="display: inline-block; vertical-align: middle; border: hidden; border-radius:50%; overflow: hidden; width: {{{w|25}}}px; height: {{{h|25}}}px">{{Icon|{{#if:{{{icon|}}}|{{{icon}}}|Portrait {{{1}}}.png}}|{{{w|25}}}|link={{{1}}}}}</span> [[{{{1}}}|{{{2|{{{1}}}}}}]] {{#ifexist: File:{{#if:{{{icon|}}}|{{{icon}}}|Portrait {{{1}}}.png}} | | {{Main namespace only|[[Category:Pages with missing charlink portraits]]}} }}</includeonly><noinclude>This template will let you make character icons. So far it only supports those who have {{InfoBlob|File:Portrait {Name}.png}}.
<includeonly><span style="display: inline-block; vertical-align: middle; border: hidden; border-radius:50%; overflow: hidden; width: {{{w|25}}}px; height: {{{w|25}}}px">{{Icon|{{#if:{{{icon|}}}|{{{icon}}}|Portrait {{{1}}}.png}}|{{{w|25}}}|link={{{1}}}}}</span> [[{{{1}}}|{{{2|{{{1}}}}}}]] {{#ifexist: File:{{#if:{{{icon|}}}|{{{icon}}}|Portrait {{{1}}}.png}} | | {{Main namespace only|[[Category:Pages with missing charlink portraits]]}} }}</includeonly><noinclude>This template will let you make character icons. So far it only supports those who have {{InfoBlob|File:Portrait {Name}.png}}.


{{CharLink|Lae'zel}}
{{CharLink|Lae'zel}}
Line 5: Line 5:
{{CharLink|Jaheira}}
{{CharLink|Jaheira}}


{{CharLink|Volo|Volo (Alias)}}
{{CharLink|Volo|Volo (Alias)|w=40}}


{{CharLink|Unknown Character}}
{{CharLink|Unknown Character}}

Revision as of 23:33, 9 July 2024

This template will let you make character icons. So far it only supports those who have File:Portrait {Name}.png.

Lae'zel Lae'zel

Jaheira Jaheira

Volo Volo (Alias)

File:Portrait Unknown Character.png Unknown Character

You can set the icon manually: {{CharLink|Spectator|icon=Edward-vanderghote-beholder.webp}}

Spectator Spectator