Module talk:Random slideshow

This is an old revision of this page, as edited by Evad37 (talk | contribs) at 05:34, 23 August 2018 (central discussion venue; move discussions from Template talk:Transclude files as random slideshow). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

WikiProject iconPortals  
WikiProject iconThis page is within the scope of WikiProject Portals, a collaborative effort to improve portals on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
Template This module does not require a rating on the project's quality scale.
Note icon
See also: List of Portals

Portraits and panoramas

Hi, would it be possible to add a height parameter in addition to width, so that you can limit the size of portrait-format images? And, ideally, would it be also possible to add a functionality similar to Wide image to better display panoramic pictures? — Kpalion(talk) 16:00, 19 July 2018 (UTC)Reply

Ideally some way of limiting the image size to fit into the screen. · · · Peter (Southwood) (talk): 17:26, 28 July 2018 (UTC)Reply

Non-free images being included in slideshows

Is there a way to tweak this templates syntax so that it doesn't call up any non-free images when it's used on pages like Portal:Anti-nuclear movement? Non-free files are only allowed to be used in the article namespace per WP:NFCC#9 which means they shouldn't be displayed on portal pages. -- Marchjuly (talk) 04:15, 23 August 2018 (UTC)Reply

@Marchjuly: This should already be done... Module:Excerpt is used to parse page content, which tests images and excludes those which are non-free. Which specific image or images are slipping through? - Evad37 [talk] 04:50, 23 August 2018 (UTC)Reply
File:Nuclear hand.png is getting flagged as being used on "Portal:Anti-nuclear movement". -- Marchjuly (talk) 04:55, 23 August 2018 (UTC)Reply
So its a non-free file within a gallery, which probably shouldn't be there in the first case per Wikipedia:Non-free_content#Multimedia. But in any case, I'm modifying the code to also check gallery files (which are processed separately to other files) for non-free content. - Evad37 [talk] 05:12, 23 August 2018 (UTC)Reply
  Done - Evad37 [talk] 05:17, 23 August 2018 (UTC)Reply
Thanks Evad37. -- Marchjuly (talk) 05:25, 23 August 2018 (UTC)Reply