Page MenuHomePhabricator

Remove the need for `.noprint`
Open, Needs TriagePublic

Description

Templaters do not have access to Less/CSS right now and that's why they use a class like .noprint. It's a replacement for their inability to use media queries.

MediaWiki:Common.css has stopped being sufficient for their needs, because it is shipped to every pageview, and thus only the most common usages of templating usually make use of MediaWiki:Common.css

Related Objects

StatusAssignedTask
OpenNone
ResolvedTgr
ResolvedAnomie
Resolvedtstarling
Resolvedcoren
ResolvedAnomie
StalledMhurd
ResolvedAnomie
ResolvedEsanders
ResolvedEsanders
Resolvedssastry
ResolvedAnomie
ResolvedCKoerner_WMF
Resolvedjhsoby
ResolvedTgr
DeclinedTgr
Resolvedcoren
ResolvedAnomie
ResolvedTgr
OpenNone
OpenNone
ResolvedTgr
ResolvedTgr
ResolvedTgr
ResolvedDeskana
ResolvedCKoerner_WMF
ResolvedWhatamidoing-WMF
ResolvedTgr
ResolvedTgr
ResolvedTgr
ResolvedUrbanecm
ResolvedTgr
ResolvedTacsipacsi
ResolvedTgr
ResolvedCKoerner_WMF

Event Timeline

TheDJ created this task.Nov 6 2015, 7:38 AM
TheDJ updated the task description. (Show Details)
TheDJ raised the priority of this task from to Needs Triage.
TheDJ added a subscriber: TheDJ.
Restricted Application added subscribers: StudiesWorld, Aklapper. · View Herald TranscriptNov 6 2015, 7:38 AM
Ltrlg added a subscriber: Ltrlg.Nov 6 2015, 5:01 PM
Isarra added a subscriber: Isarra.Nov 21 2015, 6:08 PM

Classes noprint and nomobile are very useful functions for templates to have, because when all they want to do is toggle whether or not a thing is visible, why should they need to delve into the bowels of css for that? Even with full template css it will be a repeat of the same code every time they do it, probably on completely different pages, so really this sort of thing is exactly what CSS classes are for.

Mind you this only applies to the content (usually templates themselves); we should be moving away from using noprint in the software itself as it's much more trivial to just slap a bunch of blah, blah, blah { display: none } when you're dealing with a lot of other styles anyway. But templates are relatively separate entities usually, which tend not to need much styling in the first place. (Just more than they have access to now.)

Volker_E updated the task description. (Show Details)Nov 23 2015, 9:55 PM
Volker_E set Security to None.

@TheDJ Do you have any ideas aside from a certain CSS class to enable templaters doing this? CSS class seems to me like a low hurdle approach?!

Volker_E renamed this task from Remove the need for .noprint to Remove the need for `.noprint`.Jul 13 2016, 4:33 PM