Content deleted Content added
Line 54:
:{{Ping|Redrose64}} {{Fixed}}. The module was previously sometimes confusing the size for the caption; now it will either display the real caption, or leave off the caption if there isn't one. - <u>'''[[User:Evad37|Evad]]''37'''''</u> <span style="font-size:95%;">[[[d:w:User talk:Evad37|talk]]]</span> 00:24, 28 February 2019 (UTC)
::{{ty}} --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] 🌹 ([[User talk:Redrose64|talk]]) 10:54, 28 February 2019 (UTC)
== Nifty use of this template for a sidebar slideshow, maybe we should support this correctly? ==
{{Sidebar
| pretitle = Some effects of climate change
| pretitlestyle = font-weight:bold;
| cellspacing = 0
| cellpadding = 0
| width =
| style = border:1px solid #c8ccd1;
| content1style = margin:-5px -5px -2.2em -5px; display: inline-block;
| content1 = {{Transclude files as random slideshow
| Global warming | section1= Biosphere
| Global warming | section2= Humans
}}
| content2style = height:0px; margin:0 -0.4em; padding:0; display:inline-block; visibility:hidden;
| content2 = [[File:Sea_level_history_and_projections.svg|frameless|border|upright=1.35]]
}}
I used the "Transclude files as random slideshow" template to create a sidebar slideshow. You can see the effect on the right hand side here. While the markup is pretty minimal, there are several semi-hacks I had to do to get it to work:
# I wrapped the "Transclude files as random slideshow" template in the "sidebar" template
# The edge spacing on the gallery is too much for fitting in the side bar, so to zoom it in I used negative margins with inline-block display
# You can't size the gallery according to a thumbnail, so to get the sizing right I include a hidden image in the sidebar and then size the gallery to that
# The trouble then is that if you click another image in the page and then use the right / left directional arrows to go through all images, you'll see the hidden image. To work around THAT, I stuffed in a fallback image in the hidden ___location.
# Tweaked the border color to match thumbnail pics
The images only appear on desktop for some reason; on mobile all images are hidden, even though the template documentation says that 4 images should be shown on mobile. Also, during page load the images are laid out in a stacked column before collapsing, but I think that's just how the template works (it's not unique to the sidebar use).
It's a pretty nifty way to elevate some content in an article to the intro. Thoughts on supporting this as a real thing, like maybe a new template or having a setting on this template so people could discover this usage? [[User:Efbrazil|Efbrazil]] ([[User talk:Efbrazil|talk]]) 20:49, 9 May 2020 (UTC)
|