Template talk:Flatlist#Display issue on mobile version
{{User:MiszaBot/config
|archiveheader = {{talkarchivenav}}
|maxarchivesize = 75K
|counter = 1
|minthreadsleft = 4
|minthreadstoarchive = 1
|algo = old(28d)
|archive = Template talk:Flatlist/Archive %(counter)d
}}
{{archives|search=yes}}
Template-protected edit request on 30 October 2017
Hi, could the html markup in this template be fixed? See https://en.wikipedia.org/w/index.php?title=Template:Flatlist/sandbox&oldid=807871376 for a correct fix where the div is closed outside the if section instead of adding an extra closing div in the noinclude section.
{{edit template-protected|Template:Flatlist|answered=yes}} Tholme (talk) 15:54, 30 October 2017 (UTC)
:{{Re|Tholme}} I'm not sure your change is correct. When used without parameters, typically using the redirect {{tl|startflatlist}}, the template is required to leave the div open so that the end of the list can be marked with {{tl|endflatlist}}. -- John of Reading (talk) 17:09, 30 October 2017 (UTC)
::You are right, so don't do the change. Tholme (talk) 17:35, 30 October 2017 (UTC)
Display issue on mobile version
Raised Wikipedia:Village pump (technical)#Template:Flatlist does not display correctly on mobile in case if anyone is not aware. ネイ (talk) 16:45, 24 May 2020 (UTC)
: I added the class hlist-separated
, which is present in {{tl|hlist}} and appears to make bullets render in mobile. Report any bugs here. – Jonesey95 (talk) 17:57, 24 May 2020 (UTC)
:: {{ping|Jonesey95}} Nested flatlists do not display closing parentheses on mobile; see for example "People or cargo transported" in the infobox at Atlas V. I get the same issue with {{tlx|hlist}}, I'm guessing because they use the same class. {{small|{{ping|ネイ}} I redirected the link in your comment to the archive.}} Hairy Dude (talk) 14:44, 20 February 2022 (UTC)
:::I don't know if second-level asterisks are formally supported in this template. I have added a case to the testcases, showing that there are missing closing parens after "Curiosity" and "Quasar" [https://en.m.wikipedia.org/wiki/Template:Flatlist/testcases#With_second_level_of_asterisks in mobile view]. – Jonesey95 (talk) 18:25, 20 February 2022 (UTC)
::::One note: Removing "hlist-separated" from the class declaration removes the bullets and restores the closing parens. See the sandbox version in the mobile testcases link above. – Jonesey95 (talk) 23:16, 20 February 2022 (UTC)
:::::
:::::[https://phabricator.wikimedia.org/diffusion/SMIN/browse/master/skinStyles/mediawiki.hlist/minerva.less$36 I don't know why it's like this] or why it's important. Sigh. Yes, that would be the issue. Izno (talk) 00:14, 21 February 2022 (UTC)
::::::The relevant task is probably phab:T174399. Izno (talk) 00:15, 21 February 2022 (UTC)
:::::::{{U|Izno}}, based on the age of these phab tickets (see also the ill-fated {{phab|T169315}}), it looks like we are on our own. Would it help to have a custom styles.css file for this template? – Jonesey95 (talk) 00:23, 21 February 2022 (UTC)
::::::::Yes, but that's after MediaWiki talk:Common.css/to do#Hlist is done. I haven't laid out everything that needs to happen there yet, but getting that 5k listed down to false positives would be a good start. Izno (talk) 00:50, 21 February 2022 (UTC)
:::::::::Izno, that 5k list is only 1k if you ignore the Wikipedia:Main Page history subpages (or treat them as a separate set). -- WOSlinker (talk) 15:27, 22 February 2022 (UTC)
::::::::::As I said, haven't done a lot of work with the hlist case. If that knocks out 4k, that works for me. Feel free to leave a link in the working section with the refined search. Izno (talk) 18:05, 22 February 2022 (UTC)
::I've fixed this in mobile.css. We'll probably have to refix it when we get around to deploying the TemplateStyles version because when we do I want to review what hlist-separated is actually doing. Izno (talk) 22:43, 6 March 2022 (UTC)
:::For the record, [https://en.wikipedia.org/w/index.php?title=MediaWiki:Mobile.css&diff=prev&oldid=1075644340 this edit] shows the current workaround for this goofiness. – Jonesey95 (talk) 02:40, 7 March 2022 (UTC)
Why the extra closing tag?
Is there a purpose for the seemingly stripped
? —Anomalocaris (talk) 22:59, 22 December 2020 (UTC)
:I think it's because there is no {{para|1}} in the template page itself. When you say "seemingly stripped", what do you mean? To me, it appears to match the opening tag just fine, but it is needed only on this page (hence the noinclude tag). Is that closing tag causing an error somewhere? – Jonesey95 (talk) 00:18, 23 December 2020 (UTC)
::I see