Template:Altimage: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<includeonly></includeonly><noinclude> This template is used to display alternate images for an infobox. ''Not yet implemented.'' Category:Infobox templates </noinclude>") |
mNo edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>< | <includeonly><!-- | ||
GIF IMAGE: | |||
-->{{#if: {{{gif|}}} |<!-- | |||
--><div class="qud-animated-image-wrap qud-toggler qud-carousel-item" data-label="{{{type|default sprite}}}"><!-- | |||
--><div class="qud-infobox-animated-image-initial qud-toggler-initial">[[File:{{{1}}}|160px|alt={{{PAGENAME}}}]]</div><!-- | |||
--><div class="qud-toggle-for-gif qud-toggler-button" style="display:none"><!-- | |||
--><div class="qud-initial-animate-btn"><!-- | |||
--><div>animate</div><!-- | |||
--><div>sprite<span class="qud-animate-ctrl-down"></span></div><!-- | |||
--></div><!-- | |||
--></div><!-- | |||
--><div class="qud-infobox-animated-image qud-toggler-final" style="display:none;"><!-- | |||
-->[[File:{{{1}}}|160px|alt={{{PAGENAME}}}|link=]]<!-- | |||
--><div class="qud-html-details"><!-- | |||
--><div role="button" class="qud-html-summary" aria-label="static image"><!-- | |||
--><div class="gif-play-controls"><!-- | |||
--><div class="play-pause-btn"></div><!-- | |||
--><div class="play-pause-lbl">Click to play/pause</div><!-- | |||
--><div class="play-pause-warning">Please be aware that some animations may exceed safe limits for photosensitive users.</div><!-- | |||
--></div><!-- | |||
--></div><!-- | |||
--><div class="animated-image">[[File:{{{gif}}}|160px|alt=Animated image of {{{PAGENAME}}}|link=]]</div><!-- | |||
--></div><!-- | |||
--></div><!-- | |||
--></div><!-- | |||
-->[[Category:Animated Sprites]]<!-- | |||
STATIC IMAGE: | |||
--> | |||
|<div class="qud-animated-image-wrap qud-toggler qud-carousel-item" data-label="{{{type|default sprite}}}"><!-- | |||
--><div class="qud-infobox-carousel-static-image">[[File:{{{1}}}|160px|alt={{{PAGENAME}}}]]</div><!-- | |||
--></div> | |||
}}</includeonly><noinclude> | |||
This template is used to display alternate images for an infobox in an "image carousel" format. | |||
This is similar to, but a more advanced version of [[Template:Infobox image and gif]]. This version supports multiple images. | |||
One or more instances of this template must be wrapped between [[Template:Altimage start|altimage start]] and [[Template:Altimage end|altimage end]], with the following general structure: | |||
<syntaxhighlight lang="HTML"> | |||
{{altimage start}} | |||
{{altimage | ...}} | |||
{{altimage | ...}} | |||
... | |||
{{altimage end}} | |||
</syntaxhighlight> | |||
[[Category:Infobox templates]] | [[Category:Infobox templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 18:58, 25 October 2020
This template is used to display alternate images for an infobox in an "image carousel" format.
This is similar to, but a more advanced version of Template:Infobox image and gif. This version supports multiple images.
One or more instances of this template must be wrapped between altimage start and altimage end, with the following general structure:
{{altimage start}}
{{altimage | ...}}
{{altimage | ...}}
...
{{altimage end}}