More actions
m (styling, description) |
m (display number of images left instead of load limit) |
||
Line 1: | Line 1: | ||
{{#ifexpr: {{#expr:{{{displayed|0}}} < {{{count_all|0}}} }} | {{#vardefine:imagesleft|{{#expr:{{{count_all|0}}} - {{{displayed|0}}} }} }}<!-- | ||
-->{{#ifexpr: {{#expr:{{{displayed|0}}} < {{{count_all|0}}} }} | |||
|<div class="expandgallery bb2"> | |<div class="expandgallery bb2"> | ||
<div class="expandgallery-text">Load {{{load_limit|4}}} more...</div><!-- | <div class="expandgallery-text">Load {{#ifexpr:{{#expr: {{#var:imagesleft}} > {{{load_limit|4}}} }}|{{{load_limit|4}}}|{{#var:imagesleft}} }} more...</div><!-- | ||
--><div class="expandgallery-data" style="visibility:hidden; display:none;"> | --><div class="expandgallery-data" style="visibility:hidden; display:none;"> | ||
<span class="expandgallery-displayed">{{{displayed|}}}</span> | <span class="expandgallery-displayed">{{{displayed|}}}</span> | ||
Line 15: | Line 16: | ||
</div><!-- | </div><!-- | ||
--></div> | --></div> | ||
}}<noinclude>Pseudo-button that calls [[Template:Gallery_Section_(Cargo)/Q3|Q3]] when clicked. Used by [[MediaWiki:Gadget-GalleryLoadInline.js]]</noinclude> | }}<noinclude>Pseudo-button that calls [[Template:Gallery_Section_(Cargo)/Q3|Q3]] when clicked. Used by [[MediaWiki:Gadget-GalleryLoadInline.js]] | ||
</noinclude> |
Revision as of 01:52, 11 June 2020
Pseudo-button that calls Q3 when clicked. Used by MediaWiki:Gadget-GalleryLoadInline.js