Content deleted Content added
Anomalocaris (talk | contribs) →Reserved word list needs expanding: Thanks, Frietjes, {{tl|Image key}} does the trick! |
→Mobile view improvement: new section |
||
Line 133:
:: [[User:Frietjes|Frietjes]]: Thank you for showing me how to use {{tl|Image key}} to replace table captions. The next one to go was [[Portal:Schools]] sucking up table markup from [[History of education]], so I used your technique there and that fixed the [[Special:LintErrors/html5-misnesting|Misnested tag with different rendering in HTML5 and HTML4]] in the portal.
== Mobile view improvement ==
I've come up with a better way to display this module on mobile – demo at [[Portal:Kent/Sandbox]] ([https://en.m.wikipedia.org/w/index.php?title=Portal:Kent/Sandbox mobile view]). It uses TemplateStyles and [[Template:Switcher]]-like switching to display one item at a time, with radio selection buttons below to select which image to display.
Sandbox modules/styles used in demo:
*[[Module:Random slideshow/sandbox]] ([https://en.wikipedia.org/w/index.php?title=Special%3AComparePages&page1=Module%3ARandom+slideshow&page2=Module%3ARandom+slideshow%2Fsandbox diff])
*[[Module:Random slideshow/sandbox/styles.css]] ([https://en.wikipedia.org/w/index.php?title=Special%3AComparePages&page1=Module%3ARandom+slideshow%2Fstyles.css&page2=Module%3ARandom+slideshow%2Fsandbox%2Fstyles.css diff])
*[[Module:Excerpt slideshow/sandbox]] ([https://en.wikipedia.org/w/index.php?title=Special%3AComparePages&page1=Module%3AExcerpt+slideshow&page2=Module%3AExcerpt+slideshow%2Fsandbox diff])
It's not perfect. For one thing, it won't work in Template: namespace (for the same reason {{tl|If mobile}} doesn't). But it is a big improvement compared to what currently happens.
I'll deploy this solution in a couple of days from now, unless there are any concerns raised. - <u>'''[[User:Evad37|Evad]]''37'''''</u> <span style="font-size:95%;">[[[d:w:User talk:Evad37|talk]]]</span> 04:37, 2 May 2021 (UTC)
|