Template:IconLink: Difference between revisions

From Baldur's Gate 3 Wiki
Jump to navigation Jump to search
(Created page with "<includeonly>[[File:{{{1}}}| frameless | middle | link = {{{2}}} |x{{{size|40}}}px| {{{2}}} ]]{{nbts}}[[ {{{2}}} | {{{ 3 | {{{ 2 }}} }}} ]]</includeonly><noinclude> Usage: {{code|<nowiki>{{IconLink|Flourish Icon.png|Flourish}}</nowiki>}} Result: {{IconLink|Flourish Icon.png|Flourish}} The link text can be changed with a third parameter: Usage: {{code|<nowiki>{{IconLink|Flourish Icon.png|Flourish|Custom Text}}</nowiki>}} Result: {{IconLink|Flourish Icon.png|Flourish|C...")
 
No edit summary
Line 1: Line 1:
<includeonly>[[File:{{{1}}}| frameless | middle | link = {{{2}}} |x{{{size|40}}}px| {{{2}}} ]]{{nbts}}[[ {{{2}}} | {{{ 3 | {{{ 2 }}} }}} ]]</includeonly><noinclude>
<includeonly>[[File:{{{1}}}| frameless | middle | link = {{{2}}} |x{{{size|40}}}px| {{{2}}} ]]&nbsp;[[ {{{2}}} |{{{ 3 |{{{ 2 }}} }}} ]]</includeonly><noinclude>
Usage: {{code|<nowiki>{{IconLink|Flourish Icon.png|Flourish}}</nowiki>}}
Usage: {{code|<nowiki>{{IconLink|Flourish Icon.png|Flourish}}</nowiki>}}



Revision as of 16:39, 19 July 2023

Usage: {{IconLink|Flourish Icon.png|Flourish}}

Result: Flourish Flourish

The link text can be changed with a third parameter:

Usage: {{IconLink|Flourish Icon.png|Flourish|Custom Text}}

Result: Flourish Custom Text

The default size is x40px meaning the icon is scaled until the height is 40 px. It's usually important to limit the height since the icons are used inline, and a very high inline image makes for an unpleasant text layout.

An alternative value for the height can be provided:

Usage: {{IconLink|Flourish Icon.png|Flourish|size=25}}

Result: Flourish Flourish

Usage: {{IconLink|Flourish Icon.png|Flourish|Custom Text|size=25}}

Result: Flourish Custom Text