Template:Icon: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 21: | Line 21: | ||
Result: {{icon|Flourish.jpg|link=Flourish}} | Result: {{icon|Flourish.jpg|link=Flourish}} | ||
[[Category:Icon Templates]] | |||
</noinclude> | </noinclude> |
Revision as of 08:37, 2 February 2023
Usage: {{icon|Flourish.jpg}}
Result: File:Flourish.jpg
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.jpg|30}}
Result: File:Flourish.jpg
Usage: {{icon|Flourish.jpg|50}}
Result: File:Flourish.jpg
You can also provide a link:
Usage: {{icon|Flourish.jpg|link=Flourish}}
Result: Flourish