MediaWiki talk:Common.css/to do
This is some TemplateStyles todo.
Description of work
[edit]The below to do page is the list of styles in MediaWiki:Common.css and friends which are to be converted to TemplateStyles. These are being converted to TemplateStyles for multiple reasons:
- To allow ordinary users and administrators to change "sitewide" styles. Editing Common.css is restricted to interface administrators (i.e. not many people) since late 2018, whereas the majority of the styles in the CSS sheet are fairly benign. Accordingly, moving styles to TemplateStyles and out of Common.css allows a much larger set of people to be able to make changes to widely-used styles (all administrators, and even the vast majority of templates are template protected rather than full-protected).
- To decrease the page load on all pages. Every style rule in Common.css, whether used or unused on a specific page, is loaded on all pages. For example, if you have made a stub and it has no navboxes, it still gets the styles for navboxes, infoboxes, horizontal lists, and so on (until the list of sets of styles is empty). This means that pages load slightly slower for everyone on all pages.
- This hurts most on mobile, which is approximately 2/3 of all pageviews these days.
- To return power to style mobile to local editors. Right now, many of our styles in Common.css were not carried over into mobile for a couple reasons.Now, whether you like the mobile styles or not, it is probably the case that the editors onwiki should decide how the wiki should appear on mobile.
The primary reason is that MediaWiki:Mobile.css loads after, rather than before, the rest of a specific page. Accordingly, adding styles to it can cause FOUCs ("jumpy pages while loading"), which are generally bad for both user experience, and these days, search engine optimization (you don't really need to care about the second one if you don't want to).We no longer use Mobile.css (instead we use Minerva.css), so this isn't relevant. And will soon be using only Common.css unless skin-specific styles are necessary.- The second reason is that the WMF has more or less picked up the slack that has created in how our pages look on mobile.
Migrating requires three broad steps (which do not necessarily happen in this order or sequentially):
- Migrating the templates and modules (most-)associated with each of the classes in Common.css to use, or allow the use, of TemplateStyles.
- (Or for some templates/modules, removing the class entirely from sitewide CSS and using inline styles instead of TemplateStyles. This is most common with substed templates, which TemplateStyles are not great with.)
- Migrating the large number of non-templates and non-modules which use the classes in Common.css to use the template or module instead of the class. (Sometimes this necessitates removing the use entirely rather than migration.) This migration is because in #3, we:
- Remove the styles from Common.css.
Edits of the type as in #1 mostly happen in the background as editors of templates are basically the only ones who need to be interested in those.
However, edits of the type in #2 happen outside the template and module spaces. A consequence of #3 is that pages with the manual classes invoked will lose their styling if an appropriate template is not in place to provide that styling.
Editors performing this kind of edit are doing their best to replace uses of a class with the appropriate template. They won't always get it right, so if you see them get it wrong or in a way you don't like, either endeavor to correct the edit if you know how, or ask the editor about making a better change, in preference to reverting if at all possible.
Infobox
[edit]- Find and replace with a standard infobox or remove the
infobox
class, where applicable - Example edits:
- Remove infobox (added
floatright
) - Convert to real infobox
- remove table entirely (duplicate)
- May need to make new templates?
- Remove infobox (added
Mainspace
[edit]Some specific categories
[edit]- "List of awards and nominations by ___" articles: use {{Infobox awards list}} ~570
- "List of accolades received by ___" articles: use {{Infobox awards list}} ~160
- demographics: use
wikitable floatright
- career statistics ~200
- "0000s in Country/topic" articles ~400
- European Formula 3 Cup 6 pages, Masters of Formula 3 32 pages, Macau Grand Prix 41 pages: use {{Infobox FIA Formula 3 race report}}
- departments of goes with Category:Sports club departments sidebar templates and I'm pretty sure we have a template for that somewhere
- University scores: not sure what to do with them
- "Short timelines of affiliations" usually just removable
- Foreign citizens: wikitable floatright
- results
What to do?
[edit]Modules
[edit]50 (20ish true positives)
- Module:Infobox (talk · history · transclusions · logs · subpages)
- Module:Infobox3cols (talk · history · transclusions · logs · subpages)
- Module:Infobox military conflict (talk · history · transclusions · logs · subpages)
- Module:Year in various calendars (talk · history · transclusions · logs · subpages)
- Module:Infobox cabinet members (talk · history · transclusions · logs · subpages)
- Module:Infobox video game awards (talk · history · transclusions · logs · subpages)
- Module:Autotaxobox (talk · history · transclusions · logs · subpages)
- Module:Infobox gene (talk · history · transclusions · logs · subpages)
- Module:Biota infobox/core (talk · history · transclusions · logs · subpages)
- Module:Biota infobox/Wikidata (talk · history · transclusions · logs · subpages)
Module:Current events calendar (talk · history · transclusions · logs · subpages)Module:Current events calendar with day links (talk · history · transclusions · logs · subpages)Module:Progress box (talk · history · transclusions · logs · subpages)Template:Wikidata Infobox/core (talk · history · transclusions · logs · subpages) (invoked from Module:Wikidata Infobox (talk · history · transclusions · logs · subpages)??)Module:Video game release table (talk · history · transclusions · logs · subpages)Module:College color/contrast (talk · history · transclusions · logs · subpages)Module:Taxobox (talk · history · transclusions · logs · subpages)TFD
False positives, but need a module API for Module:Infobox anyway...
- Module:Infobox multi-lingual name (talk · history · transclusions · logs · subpages)
- Module:Solar eclipse (talk · history · transclusions · logs · subpages)
Have a module API, just wish it were cleaner (.infobox
seems to work?)
Templates
[edit]Template:Season sidebar needs to be converted to sidebar.- Templates with raw infobox class but without Module:Infobox, 600
- 450 including. Some groups:
- 53 football standings
- 15 ATC code
19 LettersTFDd328 ship basedremoved from search set
infobox not-table-element
border: 1px solid #a2a9b1; background-color: #f8f9fa; margin: 0.5em 0 0.5em 1em; padding: 0.2em; float: right; clear: right; font-size: 88%; line-height: 1.5em; width: 22em;
infobox table
border: 1px solid #a2a9b1; border-spacing: 3px; background-color: #f8f9fa; margin: 0.5em 0 0.5em 1em; padding: 0.2em; float: right; clear: right; font-size: 88%; line-height: 1.5em; width: 22em;
infobox th
vertical-align: top; text-align: left;
infobox td
vertical-align: top; text-align: left;
infobox caption
font-size: 125%; font-weight: bold; text-align: center; padding: 0.2em;
Infoboxes
[edit]- {{Chembox}}
- {{Reactionbox}}
- {{Infobox periodic table group/header}}
- {{Infobox Chinese/Header}}
- {{Infobox animanga/Header}}
- {{Infobox ship}}
- {{Infobox weather event}}
- {{Starbox begin}}
- {{Taxobox/core}}
- {{WPMILHIST Infobox style}}
Medals
[edit]- {{CompetitionRecordTableTop}}
- {{MedalBox}}
- {{MedalTableTop}}
- {{MedalTop}}
Years sidebars
[edit]- {{Cathead motorcycle decade}}
- {{Centuryinbox}}
- {{Millenniumbox}}
- {{Year box/core}}
- {{Year in British Hong Kong}}
- {{Year in East Germany}}
- {{Year in Great Britain}}
- {{Year in Portuguese Macau}}
- {{Year in South Africa}}
- {{Year in United Kingdom}}
- {{Year in West Germany}}
- {{Year in machinima}}
- {{Year nav}}
- {{Year nav sports topic5}}
- {{Year nav topic}}
- {{Year nav topic20}}
Uncategorized
[edit]- {{Bit and byte prefixes}}
- {{Graph families defined by their automorphisms}}
- {{Hebrew punctuation}}
- {{Hampden County politicians}}
- {{Worcester County politicians}}
- {{Table Oghamletters}}
- {{Equivalent ranks of Indian military}} (check back on)
{{ATC code A}} (check back on){{Optical aberration}} (check back on)
Other subject spaces
[edit]talk spaces
[edit]all talk archive image/file 38less user talk371 Talknon Talk non User talk 1683300 user talknot touching this one just as we didn't touch messagebox on user pages
Plainrowheaders
[edit]- All 131k
- mainspace 123k
- does not have scope="row" within source (some may get from a template though) mainspace 34k
- Uses without the template
There's probably not a lot of automation we could do, so at best something like:
Define {{Plain row headers}} with content<templatestyles src="Plain row headers/styles.css"/>
Define Template:Plain row headers/styles.css with content:.wikitable.plainrowheaders th[scope=row] { font-weight: normal; /* @noflip */ text-align: left; }
Warn external community at phab:T176272 that we're about to do something that might break laterRename the class in the TemplateStyles version so that it is trivial to see what still needs to be fixed?Class names also want the dashes in general I think
Request a bot to mass-remove where there is noscope="row"
or equivalent on the page in the same bot run.- Request a bot for mass addition, ns0 to start.
Do a mass addition of {{plain row headers}} where the class is present, above each table using the class.Would do it multiple times per page. This is fine, styles are de-duplicated.Could be done in the removal stepCould also potentially do the update from collapsible to mw-collapsible with this work, very small intersection overall- Have a discussion at TemplateStyles or VPT
- Get BRFA approved
- Bot remove Stuff
- Work out any remaining uses in ns0 that don't fit some pattern
- Remove from Common.css
Nounderlines
[edit]nounderlines, 2k
IPA
[edit]class=IPA. 8k (mostly in talk namespace)
- class=IPA, mainspace, 500
- non-talk non-user non-template/module IPA 160
user IPA 150- template and module 50
Nowrap
[edit]Another 'ew how do we find these'
Nowraplinks
[edit]- 1500 uses. Much more manageable chunk to bite.
- Looks like we need a nowraplinks block of some sort.
Math fonts
[edit]texthtml basic filter for no-talk-space 2.4k
- Template/Module (15); invert-links:
- mvar (240)
- math (350)
- Module:Factorization, Template:Earthquake magnitude, Template:Delta, Template:Mvec, Template:F/m, Template:SIGMA, Template:Constant (0)
- Go back and check (s)frac for visualhide replacement
MediaWiki/Help/Category/BookFile/Portal/Draft/TimedText (30)- Just remove from Common and Mobile.css
Wikipedia (500)- Just need to take care of Wikipedia:Catalogue of CSS classes, Wikipedia:Rendering math, Wikipedia:WikiProject Mathematics/Typography
- article (4)
- User css (900)
- Migrate these?
User js (10)User (700 wikitext)
- Salvio giuliano (2024)
- Inactive: Bmusician-alt (2012), Eccomi (2013), Erebus Morgaine (2014), Vobedd (2015), Jacopo Werther (2018), Jjolsen (2020), Thatguyflint (2023), Ɱ (2023)
- Deceased: Brookie (2022)
- Blocked: Kronikerdelta (2011), AHLM13 (2015)
SQL for user signatures
|
---|
USE enwiki_p;
SELECT user_name, up_value
FROM user_properties
JOIN `user` ON user_id = up_user
WHERE
up_property = "nickname" AND
up_value LIKE "%texhtml%" AND
up_user IN (SELECT up_user
FROM user_properties
WHERE up_property = "fancysig" AND up_value = 1)
ORDER BY up_user ASC
|
'digits'
Wide 5k
Wikitext non-article 0.31 non-wikitext.Article 0
toccolours
[edit]Honorary addition due to its removal from Vector 2022 styles, see phab:T314254.
In general, the uses should be transitioned to another reasonable class, such as wikitable
in mainspace or changed to a template to at least isolate the class name for now.
23.8k all
toc
[edit]Another honorary addition due to its removal from Vector 2022 styles, see phab:T314254
- For this one, let's focus on the main space replacements. 1.7k
- In template space, let's work on the ones that aren't and were never tables of contents, whether cross-page or within a page, e.g. Template:Japan_Maritime_Self-Defense_Force is a sidebar so should look like one, not a toc. 130 modules and templates
- Categories should be using a TOC template 120
MediaWiki 5- Everything else 120
mw-ui
[edit]Do what we can to ease transition to as-yet unknown replacement for wiki content using mw-ui. See phab:T346468.
Probably the use of {{clickable button 2}} needs to stop taking "class" and start taking some sort of "kind" or "type" i.e. kind=progressive or kind=destructive, and then deprecate the use of a direct class.
Uses, less user space and talk space: [1]
Flagicon
[edit]- templates/modules 60
- non-mainspace, non-talkspace, non-user 50
User ~200- mainspace 1000
- More likely this search ~50 is sufficient
Modules:
Module:Sports resultsModule:National squadModule:Infobox television episodeModule:Sports rosterModule:FideRankingModule:Sports results/Chess
Templates
- Admirable-class minesweepers
- COVID-19 pandemic data/Argentina medical cases by province
- COVID-19 pandemic data/Australia cases by state/territory
- COVID-19 pandemic data/Chile medical cases by commune
- COVID-19 pandemic data/Japan medical cases
- COVID-19 pandemic data/United States medical cases by state
- DP-genealogy
- DavisCupBox3
- DavisCupBox3-5sets
- FedCupbox3
- Hopman Cup box
- Hopman-big
- ICS
- Infobox NFL biography
- Monarchs of Central Europe graphical timeline
- National football squad player
- National rugby squad player
- Rugby squad playerB
- Winners
- Winners-other
- Coast guard/core
- Country flagbio
- Air defence force/core
- Air force/core
- Army/core
- Bandya/core
- Bkaicon/core
- Fba/core
- Fbaicon/core
- Flag/core
- Flagc/1
- Flagcountry/core
- Flagdeco/core
- Flagicon image
- Flagicon/core
- Flagicon/nt
- Flagimage name
- Flaglink/aligned
- Flaglink/core
- Flaglist/core
- Flaglist/coretable
- Flagmedalist/core
- Flagright/core
- Flagright/flag
- Flagsort/core
- Flagu/core
- Linkflag/core
- Marines/core
- Military/core
- Naval/core
- Navy/core
- Shipboxflag/core
- Space force/core
- Noflag
- Nuvolaflag
- USN flag
Turn mobile.css/js totally off
[edit]Via User talk:Jon (WMF)#MW:Common.css on mobile we can have no more mobile.css/js!
MediaWiki talk:Common.css/to do/MobileCommon needs finishingDecide what to do with MediaWiki:Print.css, if anything, as that will come with. It's pretty small, and now that mw-collapsible loads on mobile it should be finishable?MediaWiki:Common.js assessOnly thing that looks even potentially questionable for loading on mobile to me is WikiMiniAtlas.
Remaining edits announced at MediaWiki talk:Common.css#Turning Mobile CSS/JS off permanently and supporting Common CSS/JS on mobileFiled phab:T375538- Line of interest
'wgMFCustomSiteModules' => [
'default' => true,
'enwiki' => false,
],
Dark mode: metadata
[edit]- 190 uses need to be adjusted to be dark mode friendly
- Ok, this class doing some useful work in substed content and IDK what to do about that fact. Just add color and remove the class?
- Also, I don't get this class's existence, I'm pretty sure it was originally intended for article "metadata" but it crept in to other uses.
Dark mode: side box
[edit]- Should be easy, but has to be done after metadata I think since I think our side boxes are output with the metadata class
Dark mode: navbox
[edit]- Shrug emoji face thing. Probably about as difficult as dark mode infoboxes
Dark mode: quote box
[edit]- Should be easy
Dark mode: infoboxes
[edit]- May or may not make this part of the overall inclusion of infoboxes
Hacks.less: infoboxes
[edit]- Need to sort out the mobile styles for infoboxes
Hacks.less: hatnote
[edit]Hacks.less: ambox
[edit]Remnants of things
[edit]- vertical-navbox
- Module:Military_navigation
- navbox
- Detablizing navbox
- Detabilize infobox
- User:Izno/Sandbox/Infobox (whenever we're done with tstyles)
- this discussion
- There are a lot of things that assume infoboxes are tables right now
- Detabilize sidebar
- See also previous discussion
- Should be able to do it for someone with enough time to field errors
- Detabilize mbox
- tmbox: tmbox min-widths, instituted with this discussion
- User:Izno/Sandbox/Ambox
- Module:Message box/div
- A curiosity, perhaps to replace with {{indented plainlist}}.
- some more plainlist things to clean
- Curiosity: Template:Footer usage
- Curiosity: Template:Comics TPB credits
Mbox
Template:Afd-merge to/styles.css- MediaWiki_talk:Common.css/Archive_19#Interface-protected_edit_request_on_2_December_2021
Merge MediaWiki:Filepage.css upstream, to our own templates, or delete
Keep in Minerva.css:
/* Prevent unnecessary margin at the bottom of centralnotices */
.cnotice {
margin-bottom: 0 !important;
}
Done
[edit]User block
[edit]On its way out per discussion.
Coordinates
[edit]Need to fix up remaining .css pages
Listenlist
[edit]Basically only Template:Multi-listen start.
Columns
[edit]- class=columns for general uses
- Not sure if I want to split this to a generic templatestyles page or reimplement this in two places. The major implementers seem to be {{div col}} and {{reflist}} and that's it (and some copies of those). Not so many general uses that we need to combine CSS, I don't think.
- Split
- Just have to implement in {{reflist}} now, which coincidentally may be ripe for clearing out also.
And now also have tobeat people over the headconvince people that this is the preferable implementation in Module:Goalscorers. And in fact that they shouldn't be using absolute columns. (We really need that template deleted.)
Have to survey module/template space also, specifically. Not sure of the best way to do that.
- Surveyed by searching. insource:class insource:columns insource:/[\'\" ]columns[\'\" ]/ -intitle:testcases -intitle:sandbox -intitle:doc -intitle:"did you know" [2]
Reflist
[edit]- Use the prefix trick: like so Done
- Remove columns, reflist from Common.css.
Monitoring:
Another related monitor
Hide checkboxes
[edit]/* Make it possible to hide checkboxes in <inputbox> */
.inputbox-hidecheckboxes form .inputbox-element,
.inputbox-hidecheckboxes .mw-ui-checkbox {
display: none !important;
}
Moved to Template:Hide checkboxes.
Visualhide
[edit]On its way out per discussion.
Hatnote
[edit]non-template/talk/module spacestemplate/modulelisted belowTemplate:Editnotices/Group/Wikipedia_talk:WikiProject_MedicineTemplate:Editnotices/Group/User talk:SMcCandlishNot sure what to do here?
Template:Kansas_booksThis feels like a TFD nom.Someone TFDd it. Now I've switched it to a plain old hatnote.
Template:Listed_building_EnglandRemoved because the function wasn't generally necessary, and wasn't a hatnote anywayI think this is a no-change but need to review uses.Template:TMtr
Template:Columns-list- Hatnotes!
- Survey of REVISIONID
Hist merge Template:Gallery/styles.css to the module version.- Remove from Common.css ~ July 18
Preview warningsImplemented at Module:If preview and {{preview warning}} per discussionTemplate:Infobox_amusement_park/statusTemplate:Gnostic_OrdinationTemplate:OrdinationTemplate:Infobox_attraction/statusTemplate:Infobox_U.S._federal_courtTemplate:Infobox_Italy_frazioneModule:RexxSMostly because it's a playgroundModule:Track_gaugeModule:Video_game_releaseModule:Football_box_collapsibleModule:GalleryModule:Parameter validation/default config(be more careful)Module:Infobox_body_of_water_trackingModule:Check_for_clobbered_parametersModule:TaxonbarModule:TaxonbarMobilePatchedModule:National_squadModule:Check_for_deprecated_parametersModule:Check_for_unknown_parameters
NavFrame
[edit]- Articles 3.1k
- None of mainspace are valid per WP:COLLAPSE
- Haven't decided whether to remove.
- 2k disappeared?? Showing 1.4k now.
- Working removal with IznoRepeat
- Drafts 20
- See articles
User 4.4kIznoBot task 3 is making these accessible and no further work will be done. (And no migration.) 100 false positivesless Javascript and CSS 3.7k
Templates and modules0Everything else in a subject space 200Talkspace 5.4kRunning IznoBot 3B over non-article spacesdisplay: none outside article, user-space 4.9k
NavFrame copy-paste replacements
[edit]NavFrame
mw-collapsible mw-collapsible mw-collapsed padding: 4px; border: 1px solid #a2a9b1; text-align: center; font-size: 95%; padding: 4px; border: 1px solid #a2a9b1; font-size: 95%; font-size: 95%;
NavHead
line-height: 1.6em; font-weight: bold; background-color: #ccf; line-height: 1.6em; font-weight: bold; text-align: center; background-color: #ccf;
Wrapper for centered text
<div style="margin: 0 4em"> </div>
NavContent
mw-collapsible-content font-size: 100%;
Bordered images galleries
[edit]bordered-images
Misc subcomponents completed
[edit]Bordered
[edit]Mainspace 2k "infobox bordered".30 left, mostly old style infoboxes
Mainspace 20 class=...bordered
Not main not talk 153 insource:"infobox bordered", Not main not talk insource:bordered insource:class insource:infobox -insource:"infobox bordered" 30 Ignoring insource:class...
Template:ChemboxTemplate:ReactionboxTemplate:Infobox baseball biographyTemplate:Indic glyphTemplate:Envolution of Chinese ToponymWikipedia:WikiProject Skiing and SnowboardingWikipedia:WikiProject Spain/SidebarWikipedia:DisinfoboxesTemplate:SiSGPUTemplate:Infobox cricket series twenty20Template:Infobox cricket series testsTemplate:Infobox cricket series one day internationalsTemplate:Infobox cricket series beginTemplate:Infobox cricket series endTemplate:GA Cup Hall of FameTemplate:Infobox genomeTemplate:Manchu clanModule:Sports rbr tableTemplate:Infobox Malaysia electoral districtTemplate:Paleozoic Stratigraphy of the Upper MidwestTemplate:Iron AgeTemplate:Infobox Russian constituencyTemplate:Bronze AgeTemplate:Infobox French constituencyTemplate:Estonia at World Ski Championships TFDdTemplate:Infobox combinatorial classesTemplate:Infobox NFLE team TFDd
Puerto Ricans in World War IITemplate:Infobox probability distribution Waiting for infobox3cols D:Template:Canadian federal election results this is a mess as are the pages it is used on(still a mess, but bordered is gone)Irish maritime events during World War II
Geography
[edit]geographyis much easier- And/or this template set
maptable class is clean everywhereJust a handful of articles that need converting to Template:infobox place geography: this set
- Where to store?
- Just store these on the individual template styles pages. These will only ever be present on different pages basically so we aren't duplicating styles
Waiting on a merge regarding infobox then can move the templates over.
And now, we wait.
Found some more: search on bodyclass instead of class
Template:Infobox time zoneTemplate:Infobox Egyptian tombTemplate:Ancient monuments in Rome (actually an infobox!)Merge both of above 2 into Template:Infobox_ancient_site
Template:Infobox administrative divisions of China
Sisterproject
[edit]wikitable/toc hlist
[edit]/* ...unless they also use the hlist class */
.toc.hlist ul,
#toc.hlist ul,
.wikitable.hlist td ul,
.wikitable.hlist td ol,
.wikitable.hlist td dl {
text-align: inherit;
}
insource:wikitable insource:hlist insource:"wikitable hlist" (300) [other version false positives]regex 400 (false positives)
Just need the list at WT:HWY#Cleaning up some 'manual' routes/junctions fixed up and then can remove the wikitable.hlist variants.
- New Klang Valley Expressway
- Shah Alam Expressway
- North–South Expressway southern route
- North–South Expressway northern route
- Second Link Expressway
- Sultan Haji Omar Ali Saifuddien Bridge
- S1 highway
- S3 highway
- S4 highway
- S5 highway
- S6 highway
- S7 highway
- S8 highway
- S10 highway
- S11 highway
- S12 highway
- S13 highway
Category:1817 in Alabama TerritoryCategory:1818 in Alabama TerritoryCategory:1861 in Nevada TerritoryCategory:1862 in Nevada TerritoryDeaths in 1996Glossary of chemical formulaeList of Country Music Hall of Fame inducteesList of Family Guy episodesList of South Park episodesList of Survivor (American TV series) episodesMediaWiki:Pageinfo-headerModule:Auto compact TOCModule:Calendar TOCModule:Large category TOCModule:TOCyearsTemplate:ArchitectureInCenturyTFDTemplate:BooksInCenturyTFDTemplate:Cat cen navTFDTemplate:Cat dec navTFDTemplate:Compact TOCTemplate:Compact TOC election decadesTemplate:Deaths in month TOC/boxTemplate:GaelicGamesInCenturyTFDTemplate:Month links by quarterTFDTemplate:NFLDraft-TOCTemplate:NovelsInCenturyTFDTemplate:OperasInCenturyTFDTemplate:ShortStoriesInCenturyTFDTemplate:TOC topTemplate:ToC2002PacifichurricaneseasonTFDTemplate:WHA section TOCTFDTemplate:WorksInCenturyTFDTemplate:WorksInCenturyHeaderTemplate:YearsInFilmInCenturyHeaderWikipedia:Template index/Examples
Stuff that is concerning because both cargo-cult and because an issue for here.
Template:Abkhazian presidential elections category/coreTemplate:Candidates for President of Abkhazia category/coreTemplate:Candidates for Vice President of Abkhazia category/coreTemplate:United States presidential elections by state category/coreTemplate:United States presidential elections category/core
Stuff that is concerning because cargo-cult, but not an issue for here.
- Module:CanadaByProvinceCatNav
- Module:FooBarHumMigNav
- Module:GAAbyCountyCatNav
- Module:IrelandByCountyCatNav
- Module:IrelandByProvinceCatNav
- Template:Year television content category navigation
- Template:TOC 2D
- Template:IrishCouncilElectionCatNav
- Template:Category by decade
- Template:Decade television content category navigation
- Template:Season by category/core
- Template:Central Committee of the Communist Party of Cuba category/core
- Template:Politburo of the Communist Party of Cuba category/core
- Template:Secretariat of the Communist Party of Cuba category/core
- Template:US Congress ordinal category/core
Navbox
[edit]user 1500(that we're going to ignore)26k user talkspace(that we're going to ignore)nonuser talkspace 311(that we're going to ignore)book, education, timed, gadget, gadget-def, help, category, file, mediawiki, portal 0Wikipedia 1mainspace and draft 59Template 9Don't forget the other navbox classes.
- Module
Module:Arbcom_election_bannerModule:Portal_barModule:Progress_boxModule:Administrators'_noticeboard_archives- Monitor but probably no-change
- False positive
Citation
[edit]30 WP, File, MediaWiki, Help, Category, Portal47 TemplateTemplates that use Template:Citation/styles.css (have direct links)
70 in module (bare 'citation')Module:Harvcuses CS1 stylesModule:Cite LSAuses its ownModule:Citation/CS1in sandboxModule:Cite archiveuses CS1 styles
350 mainspace(No other sane query unless NicoV pulls something up.)- Wait for CS1 module to sync and give the styles some time to roll out.
messagebox
[edit]- 135k all
- MediaWiki 2:
MediaWiki:Gadget-NoSmallFonts.css, MediaWiki:Common.css 148 article, File/talk, MediaWiki talk, Help/talk, Category/talk, Portal/talk, Draft/talk, Timed/talk, Module talk, Gadget/talk, Gadgetdef/talk118 Wikipedia talk -standard-talk76 Wikipedia80k user/talk -standard-talk (barnstars probably, we're not going to chase this one at all)139 Talk -standard-talk30 template/moduleTemplate:IPRangesockTemplate:EditorIPsockTemplate:IPsameTemplate:Checkuserblock-wideTemplate:OversightBlockTemplate:Process headerTemplate:Process header greenTemplate:Editnotices/Page/Template:Ds/alertTemplate:PLarchive boxTemplate:MLarchive boxTemplate:ILarchive boxTemplate:GLarchive boxTemplate:Editnotices/Group/Template:ArbComOpenTasksTemplate:Ds/bannerTemplate:Editnotices/Page/User:Barek/toolsTemplate:NewDYKnomination/neweditnoticeTemplate:Search subpages linkTemplate:PlanetMath editor TfD
Most of the uses outside userspace of messagebox and/or standard-talk are probably due to substed XFD results and a handful of other templates random substed onto talk pages (e.g. {{talk header}}). A typical example. We should probably try to unsubst these as best we can.
.messagebox
style="border: 1px solid #a2a9b1; background-color: #f8f9fa; width: 80%; margin: 0 auto 1em; padding: 0.2em;"
standard-talk
[edit]conditionals 1.7knon-user/talk 54not doing users
1 article0 template/module34 WP, File, MW, Help, Cat, Portal, Draft, TT, Gadget, GadgetDef40.6k User/talk (not going to fix)400 non-article, non-user talkold mfd? 200WT 44TT 90.3ish kinds, reflected elsewhere too (all the remaining ones):- Not the right page replaced with {{Talkpage of help}}
- User specific probation: Just demote these to normal section headings, to be archived at some point in the future
- Arbcom article probation replaced with
{{Ds/talk notice}}
- 4.7k talk
old afd 2.7k"nominated" 1k- Proto DS
- ArbCom page bans moved to ER in some form WT:Editing restrictions#Batch of ancient editing restrictions never logged here
Talk:University of Melbourne student organisationsTalk:Academic elitismTalk:Cognitive-Theoretic Model of the UniverseTalk:Christopher LanganTalk:BDORTTalk:Sex tourismTalk:Midnight SyndicateTalk:Clive BullTalk:Crank (person)Talk:Kven peopleTalk:Eric LernerTalk:Aneutronic fusionTalk:Plasma cosmology
- Missing GFDL permission Wikipedia:VRT noticeboard#20 some odd old substed versions of Ticket confirmation (remains open)
.messagebox.standard-talk:
style="border: 1px solid #c0c090; background-color: #f8eaba; width: 80%; margin: 4px auto; padding: .2em;"
cleanup
[edit]style="border: 1px solid #9f9fff; background-color: #efefff; width: 80%; margin: 0 auto 1em auto; padding: .2em; text-align: center;"
compact-ambox
[edit]Read:
- Template talk:Multiple issues/Archive 11#Invoke standalone templates
- Template talk:Multiple issues/Archive 10#Suggestion 2
Template:Multiple issuesTSTYLIN BABY!Template:AfC submission/declined?Template:AfC submission/rejected
mbox (initial)
[edit]Have to figure out how to deal with the ambox+ambox rule, but other than that, just have to find the insanity and clean it.
- Wikipedia_talk:Talk_page_templates/Archive_1
- Template_talk:Ambox/Archive_1
- MediaWiki_talk:Common.css/Archive_1
- MediaWiki_talk:Common.css/Archive_8#Infobox_/_ambox
Template:Ambox/styles.cssmoved to Module:Message box/ambox.cssTemplate:UserFactsModule:Message box/styles.cssMediaWiki:Print.cssMediaWiki:Mobile.cssWikipedia:Article templates/Ambox-project/colors.cssWikipedia:Classes in AmboxWikipedia:Classes in Ambox/AdminsWikipedia:Classes in Ambox/SkinsWikipedia:WikiProject Unreferenced Biographies of Living Persons/Contest/Sign up templateWikipedia:WikiProject Unreferenced Biographies of Living Persons/Contest/Welcome
these need chasing after
Template:Proposed deletion/styles.cssTemplate:Afd-merge to/styles.css- MediaWiki_talk:Common.css/Archive_19#Interface-protected_edit_request_on_2_December_2021
700 no user talk
140 MW/templates/modules- Module:Article history
- Template:WPBannerMeta/core
- Template:Current COVID-19 Project Consensus
- Template:FAQ
- Template:WikiProject U.S. Roads
- Template:WikiProject Military history
- Template:Press
- Template:To do
- Template:Archives
- Template:WikiProject banner shell
- Template:Talk header
- Template:High traffic
- Template talk:Gs/header
- Template talk:Ds/header
- Template:QR target
- Template:Banner holder
- Template:WikiEd banner shell
- Template:Translation attribution shell
- Template:Informal Mediation
- Template:Pakistan quick links
- Template:Talkphil
- Template:Talk update by user
- Template:Archives/styles.css
- Template:Arbitration ruling on pseudoscience
- Template:ArbCom sanctions - race and intelligence
- Template:Talk fringe
- Template:Wikipedia ad exists
- Template:Cyrillic
- Template:WikiWorld
Template:Portal talk 2 TFDdTemplate:DYKBannerShell TFDdTemplate:PortalArticleBannerShell TFDdTemplate:DYK-portalTemplate:Article-portalTemplate:UsebareURLs TFDdTemplate:AFI shell TFD
10 file/talk help/talk cat/talk portal/talk draft/talk tt/talk gadget/def/talkUser JS 10WP/WT 40main/T 60Talk:415 RecordsTalk:Ayn Rand/Topic BansTalk:Barbara HepworthTalk:Caitlyn JennerTalk:Chelsea ManningTalk:Diplo production discographyTalk:EjaculationTalk:La Mancha goatTalk:Large Ultraviolet Optical Infrared SurveyorTalk:Malaysia Airlines Flight 370Talk:Mars Surveyor 2001Talk:Murciana goatTalk:Popular MetaphysicsTalk:Sandy PearlmanTalk:Scientology/Topic BansTalk:Spanish languageTalk:United States SenateTalk:American Lamancha goatTalk:COVID-19 pandemic in Iran/Sources/CollapsedTalk:Mars Exploration ProgramTalk:Spamming
MediaWiki:Titleblacklist-forbidden-editTry and remember for later when this stuff isn't a table.Wikipedia:Training/EditnoticeTemplate:Editnotices/Page/BostonTemplate:Editnotices/Page/Talk:Main PageTemplate:Editnotices/Page/User:TheDJ/sandboxuser spaceTemplate:Editnotices/Page/Wikipedia:Cascade-protected items/contentAdd mw-parser-output in all the messagesDid this across the WM space, plus a handful of transcluded templates: Template:Edit filter warning, Template:Editnotice load, Template:No article text, Template:Sp-contributions-footer, Template:Edit filter warning
Wikipedia:Template index/DeletionWikipedia:Arbitration/Requests/Clarification and Amendment/Header- Template:To do
- Template:FAQ
- Template:Archives
Template:DYK mboxTemplate:George Floyd FAQWikipedia:In the newsTemplate:DYK reviewing/datedTemplate:AIVBacklog NoticeTemplate:Saved bookTemplate:WPRe TFDdTemplate:AlsoknownTemplate:MyWikiPlanTemplate:MyBookmarksMediaWiki:Gadget-twinkleconfig.jsWikipedia:Milestones/HeaderWikipedia:WikiProject Category SuppressionWikipedia:Cascade-protected items/contentWikipedia:WikiProject Golf/SidebarWikipedia:WikiProject Film/SidebarWikipedia:WikiProject Novels/NavigationWikipedia:WikiProject Astronomy/SidebarWikipedia:WikiProject Children's literature/WPCHLWikipedia:WikiProject Children's literature/WPCHL2Wikipedia:WikiProject Astronomy/Cosmology Task Force/SidebarWikipedia:WikiProject Athletics/navigationTemplate:WPIslam-inviteTemplate:DBR announcements
tmbox/ombox talk other split with small-talk adjustment:
{{talk other|border: 1px solid #c0c090; background-color: #f8eaba;|border: 1px solid #a2a9b1; background-color: #f8f9fa;}} margin: 4px 0 4px 1em; border-collapse: collapse; box-sizing: border-box; clear: right; float: right; width: 238px; font-size: 88%; line-height: 1.25em;
all 1100 subject spacetalkspace less user talk 70Wikipedia and template 60072"color" classes350ish -user/talk
Final cut
[edit]
Module:Side box sandboxed, now to deploy these threeHave to finish replacing bad uses with {{image frame}}
Module:Sister project links sandboxed with sandboxModule:Attached KML sandboxed with sandboxModule:Listen needs adjustment so the audio marker doesn't fall out of the box.MediaWiki:Monobook.cssMediaWiki:Common.cssMediaWiki:Gadget-responsiveContentBase.cssMediaWiki:Gadget-responsiveContentBaseTimeless.cssModule:Message box (mw:Module:Message box)
WikiProject banners
[edit]Plainlist
[edit]130k naive search which no doubt hits the templateLooking at about 3.5k less user CSSDraft 50File, MW, Help, Category, Portal, TT, Gadget, Gadget def 12User 180Wikipedia 110main 40015 better query?
Templates 85Modules
Wherein Izno ponders how best to deal with infoboxes. Expanding the styles direct:
Module:Navbox [3]Module:Sidebar [4] change waiting on navboxModule:Infobox: I think the quantity of infoboxes below and how plainlist is being used in each is worth supporting the same "find list class" in the module as expected for the sidebar and navbox modules. [5]Module:Shortcut(hist merge still needed)Module:Side boxModule:ListTemplate:PlainlistModule:Football boxModule:Sports boxModule:Football box collapsible
The done ones.
Template:Portal icon demonstration [6]Template:History of ChinaTemplate:Infobox/ColumnsModule:TaxonList [7]Template:Species list/coreTFDdTemplate:Sidebar timelineTemplate:Sister projectModule:Portal- Template:Extra chronology Monitor.
Template:Indented plainlistModule:Infobox television episodeModule:Parameters fpModule:SearchModule:Sorted plain listModule:Template parameter docModule:Native nameModule:Wikidata InfoboxModule:WPSHIPS utilitiesModule:Formatted appearanceModule:Succession table monarch/Module:Succession table monarch/messagesTemplate:Fb si footerTemplate:Fb ss3 footerTemplate:Extended football squad endTemplate:CFB Yearly Record End/footnotesTemplate:Year in regionTemplate:Periodic table legend/Atomic weight- Template:User QAIbox
- Template:User QAIbox/auto
- Module:Infobox road/sections
- Template:Infobox musical artist
- Template:Infobox album
- Template:Infobox road
- Template:Infobox song
- Template:Infobox television episode
- Template:Infobox language
- Template:Infobox basketball biography
Template:Infobox Cyrillic letter- Template:Infobox Mongolian script letter
- Template:Infobox Simpsons episode
- Template:Infobox Australian road
- Template:Infobox concert
- Template:Infobox sports league
- Template:Infobox college sports team season
- Template:Infobox college football player
- Template:Infobox American football game
- Template:Infobox college football bowl game
- Template:Infobox language family
- Template:Infobox proto-language
- Template:Infobox treaty
- Template:Infobox outbreak
- Template:Infobox drug/legal status
- Template:Infobox drug/pregnancy category
- Template:Infobox drug/licence
- Template:Infobox medical condition (old)/Wikidata
- Template:Infobox nutritional value
- Template:Infobox summit meeting
- Template:Infobox constellation
- Template:Infobox month
- Template:Infobox earthquakes in date
- Template:Infobox national motorcycle speedway team
- Template:Infobox sprachbund
- Template:Infobox Turkish Parliament
- Template:Infobox European Parliament term
Hlist
[edit]Hlist templates/modules
[edit]220 to checkremoves a lot of navboxes/sidebars that might have hiding class definitions like here
44 modules
Primaries
Module:ListModule:SidebarModule:NavbarModule:Navbar/configurationModule:NavboxModule:Navbox/configurationTemplate:FlatlistModule:Infobox3colsModule:Collapsible list why Clist can't have nice things MediaWiki_talk:Common.css/Archive_15#plainlist_+_hlist_indentationTemplate:Hlist/styles.cssModule:Infobox
Secondaries
Module:NavseasoncatsModule:Sports rosterModule:Auto compact TOCModule:CFB scheduleTemplate:Wikipedia languagesModule:IrelandByCountyCatNavModule:CanadaByProvinceCatNavModule:IrelandByProvinceCatNavModule:GAAbyCountyCatNavTemplate:Table TOCTemplate:Year nav topic20Template:TOC 2DTemplate:Compact TOCModule:Arbcom election bannerTemplate:Comics TPB creditsTemplate:Events by monthModule:JctbtmModule:DYK nompage linksModule:Routelist bottomModule:Syrian Civil War mapTemplate:US statesModule:Administrators' noticeboard archivesModule:Calendar TOCModule:InterPro contentModule:Sidebar games events-- maybe can be asked about to see if it can be removedModule:Article listmade responsibility of caller / TFDdModule:Wikidata Infobox
Others:
- False positive/no change needed
- Module:Transclusion count/data/H
- Module:Excerpt/portals
- Module:Infobox television episode -- uses plainlist class and just checks for hlist/plainlist in params and then adds page to maintenance cat
- Module:WikidataIB lots of templates calling this with
|list=hlist
which expands the template named hlist - Module:WikidataIB/lite
- Uses navbox/infobox
- Module:Navbox ice hockey
- Module:Authority control
- Module:Authority control (arts)
- Module:World topic
- Module:Region topic
- Module:National squad
- Module:Football squad
- Module:Taxonbar
- Module:Sidebar or footer -- it's not the same thing as milnav but it wants to be
- Module:Military navigation
- Module:Football manager history
- Module:Infobox road
- Sandbox
- Docs
hlist-separated
[edit]Assess hlist-separated (definition), pretty sure it harms more than helps
Upstream definitions of hlist are:
Based on review of the above, we can remove hlist-separated once hlist/styles.css is deployed in the above templates, and never look back. TemplateStyles should provide the correct view always, due to higher specificity (the addition of .mw-parser-output
), by proximity (will be found 'later' in the page), or predominantly, both.
Namespaces
[edit]Fake infobox-sidebars removed
[edit]- All-time Asian Para Games medal table
- Beach Soccer World Championships
- Sukma Games
- FIFA World Cup
- FIFA U-17 World Cup
multicol
[edit]- Correct these uses either to use an appropriate column template or remove because it's not valid to use this class (this class is specifically
multicol
and not any of the other names floating around that look like it): [8]