Template:Icon: Difference between revisions

Jump to navigation Jump to search
(Created page with "<includeonly>[[File:{{{1}}}|frameless|middle|link=|x{{{2|40}}}px]]</includeonly><noinclude> Usage: {{code|<nowiki>{{icon|Flourish.jpg}}</nowiki>}} Result: {{icon|Flourish.jpg}} </noinclude>")
 
No edit summary
Line 3: Line 3:


Result: {{icon|Flourish.jpg}}
Result: {{icon|Flourish.jpg}}
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.jpg|30}}</nowiki>}}
Result: {{icon|Flourish.jpg|30}}
Usage: {{code|<nowiki>{{icon|Flourish.jpg|50}}</nowiki>}}
Result: {{icon|Flourish.jpg|50}}
</noinclude>
</noinclude>