Page MenuHomePhabricator

Render small templates in previews
Open, Needs TriagePublicFeature

Assigned To
None
Authored By
Nux
Thu, May 23, 8:02 AM
Referenced Files
F54207221: image.png
Thu, May 23, 8:20 AM
F54205736: Screenshot_20240523_094720_Firefox.jpg
Thu, May 23, 8:02 AM
F54205725: Screenshot_20240523_094630_Firefox.jpg
Thu, May 23, 8:02 AM
F54205714: Screenshot_20240523_094516_Firefox.jpg
Thu, May 23, 8:02 AM
Subscribers

Description

Feature summary (what you would like to be able to do and where):
Render single line templates except those on some list.

Use case(s) (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution):
When I preview some articles on plwiki I would like to see text that happens to be in an IPA template, templates for adding lang attributes and such. I wouldn't want an infobox, but infobox is multiline in code, so that should be filtered out.

There is a similar feature in Popups - it just shows code of small templates. Not ideal, not very user friendly.

Screenshot_20240523_094516_Firefox.jpg (682×1 px, 261 KB)

Screenshot_20240523_094630_Firefox.jpg (613×1 px, 211 KB)

Screenshot_20240523_094720_Firefox.jpg (625×1 px, 223 KB)

Note that there are some single-line templates that community might want to hide (like e.g. messages about article nomination, disamb info). This could be specified on some page like Mediawiki: preview-hidden-templates.

Benefits (why should this be implemented?):
It would benefit all readers, it would make some previews much more readable.

It might also benefit editors, we might even use built-in summary API in the Navigation popups if that works well enough in articles.

Event Timeline

User reporting this as a bug:
https://pl.wikipedia.org/w/index.php?title=Wikipedia:Kawiarenka/Kwestie_techniczne&oldid=73830997#Nieprawid%C5%82owe_wy%C5%9Bwietlanie_symboli_IPA_w_pop-upie_nawigacyjnym

Rough translation:

Incorrect display of IPA symbols a navigation pop-up

When IPA symbols are included in a navigation pop-up, they are displayed incorrectly: screenshot [copied below]

Sample links for checking:

Joe Biden
Gustave Flaubert

Wikipedian:Velta (talk) 16:18, 11 May 2024 (CEST)

image.png (213×760 px, 220 KB)

Notice square brackets where IPA template was "[]". In the Nav. Pop. that would be:

Gustave Flaubert [{{IPA|flobẹ:r}}] (ur. 12 grudnia 1821 w Rouen, zm. 8 maja 1880 w Croisset)

So this is a current preview/summary of Joe Biden:

Joe Biden, właśc. Joseph Robinette Biden Jr., wym. [ ] (ur. 20 listopada 1942 w Scranton) – amerykański polityk...

This is an expected preview:

Joe Biden, właśc. Joseph Robinette Biden Jr., wym. [ˈʤoʊsɨf rɒbɨˈnɛt ˈbaɪdən] (ur. 20 listopada 1942 w Scranton) – amerykański polityk...