Page MenuHomePhabricator

Create extra types for notice and featured-style {{ambox}} templates
Open, Needs TriagePublic

Description

Hey! The Russian Wikipedia uses not only template-based warnings, but also regular messages that do not tell about problems. It is very strange for them to see the "warning triangle" on the mobile version.

For example we have a template for featured articles (https://ru.wikipedia.org/wiki/Шаблон:Избранная_статья), and now in mobile it uses triange, but we want to use star or circle:

image.png (137×1 px, 13 KB)

Event Timeline

Iniquity renamed this task from Create extra types for notice and feachured {{ambox}} templates to Create extra types for notice and featured-style {{ambox}} templates.May 17 2021, 2:03 AM
Iniquity updated the task description. (Show Details)
Jdlrobson subscribed.

Unfortunately, there is no one-size-fits-all. I'd love to make a parser function for ambox templates to revisit the "mess" that is Minerva page issues, but that's a big project.

I recommend avoiding the ambox classes if possible or at least following the guidance on
https://mediawiki.org/wiki/Recommendations_for_mobile_friendly_articles_on_Wikimedia_wikis

Note the page issues handling can be disabled via $wgMinervaPageIssuesNewTreatment = ['base' => false ] so one potential solution is for the templates themselves to be made mobile friendly and for this code to be removed altogether.

Unfortunately, there is no one-size-fits-all. I'd love to make a parser function for ambox templates to revisit the "mess" that is Minerva page issues, but that's a big project.

I recommend avoiding the ambox classes if possible or at least following the guidance on
https://mediawiki.org/wiki/Recommendations_for_mobile_friendly_articles_on_Wikimedia_wikis

Note the page issues handling can be disabled via $wgMinervaPageIssuesNewTreatment = ['base' => false ] so one potential solution is for the templates themselves to be made mobile friendly and for this code to be removed altogether.

Hi :) Is it possible, when the display of "mobile" versions is turned off, to get to the possibility of opening the "See more" submenu? Perhaps through some CSS class.

Hi :) Is it possible, when the display of "mobile" versions is turned off, to get to the possibility of opening the "See more" submenu? Perhaps through some CSS class.

Not sure I understand the question here, but if the mobile version is turned off (by disabling the feature flag), that would mean no HTML changes on mobile, and no JS/CSS enhancements so we'd just show whatever is in the template (e.g. inline styles/template styles).