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 added a subscriber: Jdlrobson.

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.