Template:HoverGallery: Difference between revisions

From ChimniWiki
Jump to navigation Jump to search
(The template CSS for the new photo hover gallery)
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#tag:html|
<div class="hover-gallery" style="width: {{{width|300px}}};">
<div class="hover-gallery" style="width: {{{width|300px}}};">
   <img src="{{{main}}}" class="main-image" alt="{{{altMain|Main image}}}" />
   {{#if:{{{main|}}}|
    <img src="{{filepath:{{{main}}}}}" class="main-image" alt="{{{altMain|Main image}}}" />
  }}
   {{#if:{{{alt1|}}}|
   {{#if:{{{alt1|}}}|
     <img src="{{{alt1}}}" class="alt-image" alt="{{{altText1|Alt image 1}}}" />
     <img src="{{filepath:{{{alt1}}}}}" class="alt-image" alt="{{{altText1|Alt image 1}}}" />
   }}
   }}
   {{#if:{{{alt2|}}}|
   {{#if:{{{alt2|}}}|
     <img src="{{{alt2}}}" class="alt-image" alt="{{{altText2|Alt image 2}}}" />
     <img src="{{filepath:{{{alt2}}}}}" class="alt-image" alt="{{{altText2|Alt image 2}}}" />
   }}
   }}
   {{#if:{{{alt3|}}}|
   {{#if:{{{alt3|}}}|
     <img src="{{{alt3}}}" class="alt-image" alt="{{{altText3|Alt image 3}}}" />
     <img src="{{filepath:{{{alt3}}}}}" class="alt-image" alt="{{{altText3|Alt image 3}}}" />
   }}
   }}
</div>
</div>
}}

Latest revision as of 11:39, 31 July 2025