Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Search
Search
Appearance
Create account
Log in
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Editing
Template talk
:
Infobox
(section)
Add topic
Template
Discussion
English
Read
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit source
Add topic
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Blank rows on child infoboxes.... == There was previously a discussion [[Template_talk:Infobox/Archive_20#Can_the_blank_rows_on_child_infoboxes_be_fixed?|here]] about blank rows on child infoboxes. Looks like the thread went stale and was never addressed. To recap and restate what {{u|Prefall}} said in the initial post which arose because of an issue with {{tl|Infobox social media personality}} {{tqb|the blank rows are related to embedding using {{para|child|yes}}. Almost all of the [[Template:Infobox social media personality/testcases|testcases]] have a blank line or two, on both desktop and mobile, with this markup: <syntaxhighlight lang="wikitext" style="overflow: auto"><tr><td colspan="2" class="infobox-full-data"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1316064257"></td></tr></syntaxhighlight> One blank line is always created at the beginning of this wrapper template (in-between {{tl|Infobox person}}'s rows and the custom rows for this infobox), and a second is created when embedding this template into another. Both are direct results of {{para|child|yes}}, which creates a blank row where {{para|title}} would be listed. It simply does not suppress this row if the title is left blank. The blank row does NOT occur if you embed using {{para|subbox|yes}} instead. This issue is actually already mentioned at [[Template:Infobox#Embedding]]. A workaround/solution is listed but it would have to be applied everywhere that {{para|child|yes}} is used. This is something that should be fixed directly at [[Module:Infobox]] instead. }} I am seeing this in many, many places and wondering if someone with more experience that I can help trace this down. --'''[[User:Zackmann08|<span style="color:#00d5ff !important">Zack</span><span style="color:#007F94 !important">mann</span>]]''' (<sup>[[User_talk:Zackmann08|Talk to me]]</sup>/<sub>[[Special:Contributions/Zackmann08|<span style="color:orange !important">What I been doing</span>]]</sub>) 23:23, 1 June 2026 (UTC) :I have added a '''very''' simplistic [[Template:Infobox/testcases#Blank_row_behavior|testcase here]] to show the issue. '''[[User:Zackmann08|<span style="color:#00d5ff !important">Zack</span><span style="color:#007F94 !important">mann</span>]]''' (<sup>[[User_talk:Zackmann08|Talk to me]]</sup>/<sub>[[Special:Contributions/Zackmann08|<span style="color:orange !important">What I been doing</span>]]</sub>) 23:38, 1 June 2026 (UTC) :{{ping|Izno}} is this something you can provide any guidance on? I'm certainly not going to push any changes live without a review but after my experience above I'm a bit wary here... '''[[User:Zackmann08|<span style="color:#00d5ff !important">Zack</span><span style="color:#007F94 !important">mann</span>]]''' (<sup>[[User_talk:Zackmann08|Talk to me]]</sup>/<sub>[[Special:Contributions/Zackmann08|<span style="color:orange !important">What I been doing</span>]]</sub>) 03:55, 2 June 2026 (UTC) :{{ping|Frietjes}} any ideas here? Even a nudge in the right direction would be appreciated... Spent some time playing with it but got nowhere. '''[[User:Zackmann08|<span style="color:#00d5ff !important">Zack</span><span style="color:#007F94 !important">mann</span>]]''' (<sup>[[User_talk:Zackmann08|Talk to me]]</sup>/<sub>[[Special:Contributions/Zackmann08|<span style="color:orange !important">What I been doing</span>]]</sub>) 23:31, 2 June 2026 (UTC) ::[[Special:Diff/1327161879/1357499550]], maybe? [[User:Anomie|Anomie]][[User talk:Anomie|β]] 00:25, 3 June 2026 (UTC) :::And the gold star goes to [[User:Anomie|Anomie]]!!! That definitely seems to solve the issue I was seeing. {{ping|Prefall}} can you confirm? '''[[User:Zackmann08|<span style="color:#00d5ff !important">Zack</span><span style="color:#007F94 !important">mann</span>]]''' (<sup>[[User_talk:Zackmann08|Talk to me]]</sup>/<sub>[[Special:Contributions/Zackmann08|<span style="color:orange !important">What I been doing</span>]]</sub>) 00:28, 3 June 2026 (UTC) ::::I just tried some local tests and it worked on all of the nesting combinations I could think of. Amazing work, {{ping|Anomie}} thanks! This has been bugging me for so long. [[User:Prefall|<span style="color: #990000">Pre</span>]]'''[[User talk:Prefall|<span style="color: #990000">fall</span>]]''' 01:34, 3 June 2026 (UTC) :::::Having scrolled through the [[Template:Infobox/testcases|Infobox/testcases]], I am not seeing any issues that this has caused. {{ping|Anomie}} are you comfortable merging? '''[[User:Zackmann08|<span style="color:#00d5ff !important">Zack</span><span style="color:#007F94 !important">mann</span>]]''' (<sup>[[User_talk:Zackmann08|Talk to me]]</sup>/<sub>[[Special:Contributions/Zackmann08|<span style="color:orange !important">What I been doing</span>]]</sub>) 05:04, 3 June 2026 (UTC) ::::::This should be merged as a templatestyles adjustment with a class. [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 06:49, 3 June 2026 (UTC) ::::::It seems [[User:Izno|Izno]] has ideas for doing it differently, so I'll hold off pending that proposal. [[User:Anomie|Anomie]][[User talk:Anomie|β]] 11:29, 3 June 2026 (UTC) :::::::{{ping|Izno}} can you clarify what the issue is with the way {{u|Anomie}} has solved this long standing issue or implement your proposed solution? '''[[User:Zackmann08|<span style="color:#00d5ff !important">Zack</span><span style="color:#007F94 !important">mann</span>]]''' (<sup>[[User_talk:Zackmann08|Talk to me]]</sup>/<sub>[[Special:Contributions/Zackmann08|<span style="color:orange !important">What I been doing</span>]]</sub>) 17:54, 3 June 2026 (UTC) :::::::It's just a minor change [https://en.wikipedia.org/w/index.php?title=Module:Infobox/sandbox&diff=prev&oldid=1357646589], with the appropriate add in the styles sheet. :::::::Beginning to wonder whether the right approach should be to move TemplateStyles totally outside the infobox instead of the shiftery that goes on at [[Module:Infobox#L-61]]. See e.g. <code>hiding_templatestyles</code> in [[Module:Navbox]] for something similar. :::::::As I said earlier this should be a non-issue at some point in the future, right now it's all happening because we're hacking around the infobox being a table. [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 20:46, 3 June 2026 (UTC) ::::::::Awesome thanks for making this happen. Hopefully this does become a non-issue in the future! '''[[User:Zackmann08|<span style="color:#00d5ff !important">Zack</span><span style="color:#007F94 !important">mann</span>]]''' (<sup>[[User_talk:Zackmann08|Talk to me]]</sup>/<sub>[[Special:Contributions/Zackmann08|<span style="color:orange !important">What I been doing</span>]]</sub>) 20:59, 3 June 2026 (UTC) :::::::::{{ping|Izno}} is it safe to add the appropriate code to [[Module:Infobox/styles.css]] or should I create [[Module:Infobox/styles.css/sandbox]] to properly test this? '''[[User:Zackmann08|<span style="color:#00d5ff !important">Zack</span><span style="color:#007F94 !important">mann</span>]]''' (<sup>[[User_talk:Zackmann08|Talk to me]]</sup>/<sub>[[Special:Contributions/Zackmann08|<span style="color:orange !important">What I been doing</span>]]</sub>) 05:27, 7 June 2026 (UTC) ::::::::::[[Module:Infobox/sandbox/styles.css]] is where it would exist if you wanted to check it for yourself. I just assumed that Anomie would revisit. :^) [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 05:42, 7 June 2026 (UTC) :::::::::::I wasn't sure where the sandbox went in that title. Thank you. {{ping|Anomie}} do you want to implement this new solution or shall I? '''[[User:Zackmann08|<span style="color:#00d5ff !important">Zack</span><span style="color:#007F94 !important">mann</span>]]''' (<sup>[[User_talk:Zackmann08|Talk to me]]</sup>/<sub>[[Special:Contributions/Zackmann08|<span style="color:orange !important">What I been doing</span>]]</sub>) 16:15, 7 June 2026 (UTC) ::::::::::::You can go for it if you want. I'm a bit busy at the moment. [[User:Anomie|Anomie]][[User talk:Anomie|β]] 17:25, 7 June 2026 (UTC) :::::::::::::After testing, this solution appears to be working. {{ping|Izno}} can you you please review [[Module:Infobox/sandbox/styles.css]] and [[Module:Infobox/sandbox]] and confirm you aren't seeing something I'm missing? Having checked all the test cases, I see nothing broken and the identified issue resolved. '''[[User:Zackmann08|<span style="color:#00d5ff !important">Zack</span><span style="color:#007F94 !important">mann</span>]]''' (<sup>[[User_talk:Zackmann08|Talk to me]]</sup>/<sub>[[Special:Contributions/Zackmann08|<span style="color:orange !important">What I been doing</span>]]</sub>) 18:15, 7 June 2026 (UTC) ::::::::::::::If you want to, go for it. Just make sure to target the right styles page from the main module when you copy it over. [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 22:28, 7 June 2026 (UTC) :::::::::::::::{{done}} Good reminder! Thank you. '''[[User:Zackmann08|<span style="color:#00d5ff !important">Zack</span><span style="color:#007F94 !important">mann</span>]]''' (<sup>[[User_talk:Zackmann08|Talk to me]]</sup>/<sub>[[Special:Contributions/Zackmann08|<span style="color:orange !important">What I been doing</span>]]</sub>) 01:00, 8 June 2026 (UTC) :::::{{ping|Zackmann08}} I noticed this fix has now been deployed across infoboxes, and it's working on desktop view, but not on mobile view. I specifically tested mobile view when I left my previous comment, and it was working then. The class with "display: none" seems to be getting overwritten on mobile by another CSS rule with "display: flex". Not sure if this is the best way to solve this, but adding "!important" to the hidden class worked for me locally. [[User:Prefall|<span style="color: #990000">Pre</span>]]'''[[User talk:Prefall|<span style="color: #990000">fall</span>]]''' 20:11, 9 June 2026 (UTC) ::::::Rather than <code>!important</code>, it might make more sense to add a selector for <code>body.skin--responsive.skin-minerva .infobox > tbody > tr.infobox-hiddenrow</code> to override the problematic rule from the Minerva skin. [[User:Anomie|Anomie]][[User talk:Anomie|β]] 21:40, 9 June 2026 (UTC) :::::::Knowing very little about the different skins or the differences in views between mobile and desktop, I'm going to abstain here... Happy to help if I can but this is a bit over my head. '''[[User:Zackmann08|<span style="color:#00d5ff !important">Zack</span><span style="color:#007F94 !important">mann</span>]]''' (<sup>[[User_talk:Zackmann08|Talk to me]]</sup>/<sub>[[Special:Contributions/Zackmann08|<span style="color:orange !important">What I been doing</span>]]</sub>) 21:42, 9 June 2026 (UTC) :::::::Yeah, sorted. I am annoyed by the upstream specificity. [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 21:51, 9 June 2026 (UTC) {{Infobox historic site | name = Infobox historic site | architecture = architecture | embedded = {{Infobox NRHP | embed = yes | name = Infobox NRHP }} }} {{ping|Anomie}} and all, I'm also still seeing an issue here on desktop actually... Found on [[Jere Shine site]] by reproduced at right. Hust about the call to {{tl|Infobox NRHP}} there is still an extra row being shown. --'''[[User:Zackmann08|<span style="color:#00d5ff !important">Zack</span><span style="color:#007F94 !important">mann</span>]]''' (<sup>[[User_talk:Zackmann08|Talk to me]]</sup>/<sub>[[Special:Contributions/Zackmann08|<span style="color:orange !important">What I been doing</span>]]</sub>) 00:49, 10 June 2026 (UTC) : Looks like {{tl|Infobox NRHP}} doesn't have anything to do with it; instead, it's a use of {{tl|Infobox designation list}} internal to {{tl|Infobox historic site}} where no designations are provided so it produces a stylesheet but zero rows; the fix above assumed there would always be at least one row. The fix I'd recommend here is different: there are already checks in various places like <syntaxhighlight lang=lua inline>if rowArgs.data and rowArgs.data:gsub(category_in_empty_row_pattern, ''):match('^%S') then</syntaxhighlight> that are detecting when the data is empty except for categories; those checks should probably be extended to also exclude TemplateStyles stylesheets. [[User:Anomie|Anomie]][[User talk:Anomie|β]] 12:24, 10 June 2026 (UTC) ::Same discussion is happening at [[#Template:Infobox biathlete produces an unwanted header even when there isn't any data shown]] — Martin <small>([[User:MSGJ|MSGJ]] Β· [[User talk:MSGJ|talk]])</small> 12:53, 7 July 2026 (UTC) :::Give [[Special:Diff/1363083377]] a try. [[User:Anomie|Anomie]][[User talk:Anomie|β]] 23:07, 7 July 2026 (UTC)
Summary:
Please note that all contributions to LarpOfHoi4 Wiki are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
LarpOfHoi4 Wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Template talk
:
Infobox
(section)
Add topic