Page MenuHomePhabricator

Infobox image misalignment and Module:Time_ago Lua error on test.wikipedia.org sandbox
Closed, InvalidPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What happens?:

  • The infobox header image is hard-aligned to the left edge, ignoring container centering rules and breaking cell padding.
  • A red Lua runtime error appears under the release date field: "Lỗi Lua trong Module:Time_ago tại dòng 102: cố gắng gọi biến cục bộ 'Date' (một giá trị nil)."
  • Raw template transclusion code (Mẫu:Thịt ẩn trên cùng Mẫu:Đáy ẩn) leaks directly into the table rows.

What should have happened instead?:

  • Header image should be horizontally centered within the Infobox header cell.
  • Module:Time_ago should parse the date correctly without throwing a script error.
  • All template blocks should render properly without leaking raw transclusion text.

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
(Để trống ô này theo đúng hướng dẫn vì test.wikipedia.org là WMF-hosted wiki)
Other information (browser name/version, screenshots, etc.):

Event Timeline

Hello. It does not seems like a browser-specific issue, templates and modules is rendered by the server, specifally by Parsoid, I am tring to reproduce the issue now, if it's true (whatever it happens on every browser or only desktop mode in mobile browsers), it is a critical blocker of the current snapshot MediaWiki version.

Hello. After my personal testing, the facts:

  • Lua error and image align error always happens whatever the browser is desktop or mobile
  • Template errors only happens when "mobile" browsers, but only decided by the UA, whatever it actually type.

Thank you so much for taking the time to test and reproduce this!

The breakdown regarding the User-Agent header triggering the template issue specifically, alongside the global nature of the Lua and alignment errors, makes a lot of sense.

Please feel free to tag me or leave a note here whenever a patch or fix is ready to be tested—I'd be glad to help verify it on my end.

Aklapper closed this task as Invalid.EditedThu, Aug 6, 3:55 AM

[Not Parsoid specific; same results when using useparsoid=0 per https://www.mediawiki.org/wiki/Help:Extension:ParserMigration. Not Mobile specific, also happens without any mobile view involved by directly going to the desktop page.]

https://test.wikipedia.org/wiki/User:A.H19051890/Sandbox?useparsoid=0&uselang=vi&debug=true

  • The infobox header image is hard-aligned to the left edge, ignoring container centering rules and breaking cell padding.

That's due to (missing) CSS for that local {{Infobox software}} Template.
User scripts, gadgets, templates, modules, custom CSS are local on-wiki content. Local content is managed independently on each wiki, by each wiki community themselves. This needs fixing on the local wiki by editing its local content. Local content is out of scope for Phabricator tasks. Thanks for your understanding.

  • A red Lua runtime error appears under the release date field: "Lỗi Lua trong Module:Time_ago tại dòng 102: cố gắng gọi biến cục bộ 'Date' (một giá trị nil)."

That is an issue with the template, it also happens on https://test.wikipedia.org/wiki/Template:Start_date_and_age
User scripts, gadgets, templates, modules, custom CSS are local on-wiki content. Local content is managed independently on each wiki, by each wiki community themselves. This needs fixing on the local wiki by editing its local content. Local content is out of scope for Phabricator tasks. Thanks for your understanding.

  • Raw template transclusion code (Mẫu:Thịt ẩn trên cùng Mẫu:Đáy ẩn) leaks directly into the table rows.

That is expected behavior.

Screenshot From 2026-08-06 05-46-50.png (1,920×1,080 px, 242 KB)

@Les4353 Please don't add release note project tags (nothing was released, as there was nothing to fix in code repositories) or parser tags as this is not parser specific - thanks!

if it's true (whatever it happens on every browser or only desktop mode in mobile browsers), it is a critical blocker of the current snapshot MediaWiki version.

No, not at all.

Doing this on a test wiki makes it difficult to know what your actual environment is. What wiki are you intending to use these templates on?

Thank you, but I think this error only occurs on the test-wiki; all other wikis work normally.

Then it is definitely not something to have a bug on here. If you can't reproduce on a normal wiki, that probably means that test wiki isn't set up right for whatever test you're conducting. Based on the issue described, it looks like the root cause is that the Common.css page on test wiki hasn't been updated in a while. It would take a bit of effort for someone to do that is probably mostly better spent elsewhere.