Template:Infobox image and gif: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 36: Line 36:
<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="float:left;display:inline-block;">
<div style="float:left;display:inline-block;" class="nomobile">
{{infobox
| title = Luminous Hoarshroom
| imagearea = {{infobox image and gif| Luminous hoarshroom.png | Luminous hoarshroom animated.gif | luminous hoarshroom ‎}}
| rows =
{{infobox row|Test Row 1|Some Data}}
{{infobox row|Test Row 2|Some Data}}
{{infobox row|Test Row 3|Some Data}}
}}
</div>
<div class="mobileonly">
{{infobox
{{infobox
| title = Luminous Hoarshroom
| title = Luminous Hoarshroom

Revision as of 20:52, 13 October 2020


Usage

{{infobox image and gif| image.png | image.gif | name (used for alt-text) }}

Important Notes

  • Intended for use only in infoboxes - relies on the parent infobox infobox-imagearea css class
  • 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 ‎}}

Luminous Hoarshroom
luminous hoarshroom ‎
animate
sprite
Test Row 1

Some Data

Test Row 2

Some Data

Test Row 3

Some Data

Luminous Hoarshroom
luminous hoarshroom ‎
animate
sprite
Test Row 1

Some Data

Test Row 2

Some Data

Test Row 3

Some Data