Template:Infobox image and gif: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
m (re-enable image link for initially shown image)
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><!--
<includeonly><!--
   --><div class="qud-animated-image-wrap qud-toggler"><!--
   --><div class="qud-animated-image-wrap qud-toggler"><!--
     --><div class="qud-infobox-animated-image-initial qud-toggler-initial">[[File:{{{1}}}|150px|alt={{{3|}}}]]</div><!--
     --><div class="qud-infobox-animated-image-initial qud-toggler-initial">[[File:{{{1}}}|160px|alt={{{3|}}}]]</div><!--
     --><div class="qud-toggle-for-gif qud-toggler-button" style="display:none"><!--
     --><div class="qud-toggle-for-gif qud-toggler-button" style="display:none"><!--
       --><div class="qud-initial-animate-btn"><!--
       --><div class="qud-initial-animate-btn"><!--
Line 9: Line 9:
     --></div><!--
     --></div><!--
     --><div class="qud-infobox-animated-image qud-toggler-final" style="display:none;"><!--
     --><div class="qud-infobox-animated-image qud-toggler-final" style="display:none;"><!--
       -->[[File:{{{1}}}|150px|alt={{{3|}}}|link=]]<!--
       -->[[File:{{{1}}}|160px|alt={{{3|}}}|link=]]<!--
       --><div class="qud-html-details"><!--
       --><div class="qud-html-details"><!--
         --><div role="button" class="qud-html-summary" aria-label="static image"><!--
         --><div role="button" class="qud-html-summary" aria-label="static image"><!--
Line 18: Line 18:
           --></div><!--
           --></div><!--
         --></div><!--
         --></div><!--
         --><div class="animated-image">[[File:{{{2}}}|150px|alt=Animated: {{{3|}}}|link=]]</div><!--
         --><div class="animated-image">[[File:{{{2}}}|160px|alt=Animated: {{{3|}}}|link=]]</div><!--
       --></div><!--
       --></div><!--
     --></div><!--
     --></div><!--
   --></div><!--
   --></div><!--
-->[[Category:Animated Sprites]]<!--
--></includeonly><noinclude>
--></includeonly><noinclude>


Line 39: Line 40:
{{infobox
{{infobox
| title = Luminous Hoarshroom
| title = Luminous Hoarshroom
| imagearea = {{infobox image and gif| Luminous hoarshroom.png | Luminous hoarshroom animated.gif | luminous hoarshroom ‎}}
| imagearea = {{suppress categories|{{infobox image and gif| Luminous hoarshroom.png | Luminous hoarshroom animated.gif | luminous hoarshroom ‎}}}}
| rows =
| rows =
{{infobox row|Test Row 1|Some Data}}
{{infobox row|Test Row 1|Some Data}}
Line 49: Line 50:
{{infobox
{{infobox
| title = Luminous Hoarshroom
| title = Luminous Hoarshroom
| imagearea = {{infobox image and gif| Luminous hoarshroom.png | Luminous hoarshroom animated.gif | luminous hoarshroom ‎}}
| imagearea = {{suppress categories|{{infobox image and gif| Luminous hoarshroom.png | Luminous hoarshroom animated.gif | luminous hoarshroom ‎}}}}
| rows =
| rows =
{{infobox row|Test Row 1|Some Data}}
{{infobox row|Test Row 1|Some Data}}

Latest revision as of 21:44, 21 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 ‎
Test Row 1

Some Data

Test Row 2

Some Data

Test Row 3

Some Data

Luminous Hoarshroom
luminous hoarshroom ‎
Test Row 1

Some Data

Test Row 2

Some Data

Test Row 3

Some Data