Template:Icon: Difference between revisions

From Baldur's Gate 3 Wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 1: Line 1:
<includeonly>[[File:{{{1}}}|frameless|middle|link={{{link|}}}|x{{{2|40}}}px|{{{link|}}}]]</includeonly><noinclude>
<includeonly>[[File:{{{1}}}|frameless|middle|link={{{link|}}}|x{{{2|40}}}px|{{{link|}}}]]</includeonly><noinclude>
Usage: {{code|<nowiki>{{icon|Flourish.jpg}}</nowiki>}}
Usage: {{code|<nowiki>{{icon|Flourish.png}}</nowiki>}}


Result: {{icon|Flourish.jpg}}
Result: {{icon|Flourish Icon.png}}


The default size is {{code|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.
The default size is {{code|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.
Line 8: Line 8:
An alternative value for the height can be provided:
An alternative value for the height can be provided:


Usage: {{code|<nowiki>{{icon|Flourish.jpg|30}}</nowiki>}}
Usage: {{code|<nowiki>{{icon|Flourish Icon.png|30}}</nowiki>}}


Result: {{icon|Flourish.jpg|30}}
Result: {{icon|Flourish Icon.png|30}}


Usage: {{code|<nowiki>{{icon|Flourish.jpg|50}}</nowiki>}}
Usage: {{code|<nowiki>{{icon|Flourish Icon.jpg|50}}</nowiki>}}


Result: {{icon|Flourish.jpg|50}}
Result: {{icon|Flourish Icon.png|50}}


You can also provide a link:
You can also provide a link:


Usage: {{code|<nowiki>{{icon|Flourish.jpg|link=Flourish}}</nowiki>}}
Usage: {{code|<nowiki>{{icon|Flourish Icon.png|link=Flourish}}</nowiki>}}


Result: {{icon|Flourish.jpg|link=Flourish}}
Result: {{icon|Flourish Icon.png|link=Flourish}}


[[Category:Icon Templates]]
[[Category:Icon Templates]]
</noinclude>
</noinclude>

Revision as of 17:24, 2 February 2023

Usage: {{icon|Flourish.png}}

Result: Flourish Icon.png

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: {{icon|Flourish Icon.png|30}}

Result: Flourish Icon.png

Usage: {{icon|Flourish Icon.jpg|50}}

Result: Flourish Icon.png

You can also provide a link:

Usage: {{icon|Flourish Icon.png|link=Flourish}}

Result: Flourish