Template:Infobox image and gif: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
Line 25: | Line 25: | ||
== Usage == | == Usage == | ||
'''Intended for use in infoboxes - relies on the parent infobox <code>infobox-imagearea</code> css class''' | |||
<code><nowiki>{{infobox image and gif| image.png | image.gif | name (used for alt-text) }}</nowiki></code> | <code><nowiki>{{infobox image and gif| image.png | image.gif | name (used for alt-text) }}</nowiki></code> | ||
Line 33: | Line 35: | ||
<code><nowiki>{{infobox image and gif| Luminous hoarshroom.png | Luminous hoarshroom animated.gif | luminous hoarshroom }}</nowiki></code> | <code><nowiki>{{infobox image and gif| Luminous hoarshroom.png | Luminous hoarshroom animated.gif | luminous hoarshroom }}</nowiki></code> | ||
<div style="width:270px;padding:4px;border:var(--infobox-border);" class="infobox-imagearea"> | |||
{{infobox image and gif| Luminous hoarshroom.png | Luminous hoarshroom animated.gif | luminous hoarshroom }} | {{infobox image and gif| Luminous hoarshroom.png | Luminous hoarshroom animated.gif | luminous hoarshroom }} | ||
</div> | |||
</noinclude> | </noinclude> |
Revision as of 20:46, 13 October 2020
Usage
Intended for use in infoboxes - relies on the parent infobox infobox-imagearea
css class
{{infobox image and gif| image.png | image.gif | name (used for alt-text) }}
Images are scaled to 150px wide by default (to match the width that Template:Infobox
uses)
Example
{{infobox image and gif| Luminous hoarshroom.png | Luminous hoarshroom animated.gif | luminous hoarshroom }}