User:Llamageddon/Llama Paddock: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Page for testing things, and stuff, and junk.)
 
Tag: Replaced
Line 5: Line 5:
==== Icons ====
==== Icons ====


<includeonly>{{#ifexist: File:{{trim | {{{1}}} }} | [[File:{{trim | {{{1}}} }}|link={{{link|}}}|x{{trim | {{{2|40}}} }}px|{{{link|}}}]] | [[File:{{trim | {{{1}}} }}|link={{{link|}}}|{{{link|}}} ''(Icon Missing)'']] }}</includeonly><noinclude>
{{User:Llamageddon/Thing|Wrong Icon.png}}
Usage: {{code|<nowiki>{{icon|Flourish Icon.png}}</nowiki>}}
 
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.
 
An alternative value for the height can be provided:
 
Usage: {{code|<nowiki>{{icon|Flourish Icon.png|30}}</nowiki>}}
 
Result: {{icon|Flourish Icon.png|30}}
 
Usage: {{code|<nowiki>{{icon|Flourish Icon.png|50}}</nowiki>}}
 
Result: {{icon|Flourish Icon.png|50}}
 
You can also provide a link:
 
Usage: {{code|<nowiki>{{icon|Flourish Icon.png|link=Flourish}}</nowiki>}}
 
Result: {{icon|Flourish Icon.png|link=Flourish}}
 
Behavior when icon is missing:
 
Usage: {{code|<nowiki>{{icon|Missing Filename 123.png|link=Flourish}}</nowiki>}}
 
Result: {{icon|Missing Filename 123.png|link=Flourish}}
 
[[Category:Icon Templates]]
</noinclude>

Revision as of 19:25, 17 August 2023

Testing, Testing. 1, 2, 3.

Template Bashing

Icons