Sjabloon:ProjectSlide
Uit Hackerspace Bitlair
Writes one slide of the project slideshow on Hoofdpagina redesign: the project picture, linked to the project page, with the project name on top of it. Used as the row template of an #ask query inside <div id="projectslides">:
<div id="projectslides" style="display:flex; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none;">
{{#ask: [[Category:Projects]]
|?ProjectPicture
|format=template
|template=ProjectSlide
|link=none
}}
</div>
MediaWiki:Common.css stretches the picture over the whole slide and MediaWiki:Common.js scrolls to the next slide every few seconds. Without JavaScript the slides can be scrolled sideways by hand.
Parameters, as passed by format=template:
1: the project page2: the picture (withFile:/Bestand:prefix)