Template:HoverGallerySafe: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{#tag:div| | {{#tag:html| | ||
{{#if:{{{main|}}}| | <div class="hover-gallery" style="width: {{{width|300px}}};"> | ||
{{#if:{{{main|}}}| | |||
}}{{#if:{{{alt1|}}}| | <img src="{{filepath:{{{main}}}}}" class="main-image" alt="{{{altMain|Main image}}}" /> | ||
}} | |||
}}{{#if:{{{alt2|}}}| | {{#if:{{{alt1|}}}| | ||
<img src="{{filepath:{{{alt1}}}}}" class="alt-image" alt="{{{altText1|Alt image 1}}}" /> | |||
}}{{#if:{{{alt3|}}}| | }} | ||
{{#if:{{{alt2|}}}| | |||
<img src="{{filepath:{{{alt2}}}}}" class="alt-image" alt="{{{altText2|Alt image 2}}}" /> | |||
}} | |||
{{#if:{{{alt3|}}}| | |||
<img src="{{filepath:{{{alt3}}}}}" class="alt-image" alt="{{{altText3|Alt image 3}}}" /> | |||
}} | |||
</div> | |||
}} | }} | ||
Latest revision as of 11:32, 31 July 2025