Jump to content

User:Retro/Tooltips

From Wikipedia, the free encyclopedia
My subpages
Broad editing organization More specific projects
Article improvements Mental accretion Phrases to watch Templates Character encoding DKC organizing Footnotes Tooltips
If my subpages inspire you to carry out an idea yourself or you have any questions or concerns, I'm interested in hearing about it!

I'm shifting my focus to cleaning up footnote templates before I finish this, since having clear and consistent footnote templates will be a prerequisite for replacing certain tooltips with footnotes.

{{tooltip}} has been deprecated to discourage invalid use of tooltips.

All of the occurrences need to be evaluated and replaced to ensure that tooltips are not being used for non-abbreviation purposes.

Usage tracking (by hand)

The tilde ~ in the table below denotes net differences; more occurrences could have been added in the interrim during deletion, so I don't know the exact number of occurrences that disappeared.

While the number of tooltip occurrences is increasing, that is not necessarily a negative thing (aside from requiring more cleanup); I suspect most of the increases are from copying existing table structures, and I see no reason to discourage that.

Date Count
01:41, 26 April 2019 (UTC) 29,764
14:24, 27 April 2019 (UTC) 29,856 (+92)
02:56, 28 April 2019 (UTC) 29,865 (+9)
16:26, 28 April 2019 (UTC) 29,872 (+7)
08:48, 29 April 2019 (UTC) 29,877 (+5)
12:43, 29 April 2019 (UTC) 29,880 (-5)
14:14, 29 April 2019 (UTC) 29,825 (-55 indirectly)
15:31, 29 April 2019 (UTC) 29,709 (-~116 indirectly)
21:27, 29 April 2019 (UTC) 28,881 (-~828 indirectly)
12:27, 30 April 2019 (UTC) 28,830 (-~51; caching? I'm unsure.)
03:16, 1 May 2019 (UTC) 28,833 (+3)
11:33, 1 May 2019 (UTC) 28,837 (+4)
11:05, 3 May 2019 (UTC) 28,880 (+43)
13:35, 4 May 2019 (UTC) 28,878 (-2?)
02:00, 5 May 2019 (UTC) 28,882 (+2)
11:14, 6 May 2019 (UTC) 28,902 (+20)
10:29, 7 May 2019 (UTC) 28,909 (+7)
10:10, 9 May 2019 (UTC) 28,930 (+21)
18:28, 14 May 2019 (UTC) 28,959 (+29)
13:52, 18 May 2019 (UTC) 29,001

Usage sorting

[edit]
Usage sorting
  • 1286 articles misuses the template for dates. These can be replaced by my recently-created {{dow tooltip}}, but I'd like a template that's a bit more sophisticated; I'm thinking of calling it {{game date}}. A portion are game reschedulings, which should be handled by table-level footnotes (the format of which I'm still designing). Perhaps these could use a custom rescheduled template that can be tweaked further. 18 articles use tooltips for noting rescheduling, but I think I've seen more using another phrasing.
  • 237 articles have long tooltips. Most are cricket related, referring to the terms "5WI", "4WI", and "NRR".
    • Sports-related terms could have custom templates to ensure the text is kept consistent for abbreviation tooltips. Like:
      • {{NRR}}: previously deleted, but the previous contents were unrelated.
      • {{4WI}}
        • The trick about standardization is to ensure that it's largely used for that purpose. Otherwise, having a template becomes less useful (though I suppose the anonymous first parameter could allow the context to be specified, like "sport" or "politics", with the most common use prioritized (which will mostly be sports, from what I've seen).) Ultimately, I think standardizing the table headers would be more effective than the tooltips themselves, but I have my qualms about even doing that. Still, there's a bit of precedent for tooltip subtemplates (but that doesn't mean it's a good practice; I've seen some argue that less templates are better, and I agree to a certain extent, but I also think templates with useful functionality still have a place. The question is drawing the line where useful ends and trivial begins. The main argument for tooltip subtemplates is standardization, with only a bit more convenience depending on the name.)
  • 46 articles have {{tooltip}}, but only in HTML comments.
  • 45 articles have tooltips with '' or ''' formatting in the meaning part of the tooltip. (Imperfect search; it only includes two of the {{abbr}} redirects; I think one or two others are commonly used.)

Tennis player articles

[edit]
Updates and expansion needed; I am not actively working on this.

172 = 289 articles

This methodology still has problems but this could be fixed by downloading a database dump, and there's also the online tools like Toolforge. Here are some potential problems:

  • This excludes tennis player articles that only has one tennis player category where the tennis category is the last category. And yep, at least 5 articles are missing for this reason.
  • Of course tennis players that don't have categories ending with the word "tennis player" won't be caught by this search, but those would be difficult to find by simple searches without many false postives.
  • My search also caught one odd article out: List of Canada Davis Cup team representatives; apparently it's the only Davis Cup list that uses tooltips.

Section titles vary (TODO: systematically enumerate section titles using ^ *(==+)([^=]+)\1). This is a sample, but it doesn't capture the hierarchies that are present between them: "Grand Slam tournament performance timeline", "Singles", "Doubles", "Grand Slam tournaments", "Grand Slam singles tournament timeline". From my observation of the hierarchies, I gather that "Singles" and "Doubles" are a subset of "Grand Slam tournaments". There's at least one erroneous title that should be updated to be independent of the player's current statistics: "Singles: 7 (5 titles, 2 runner-ups)"

Each of the table cells in {{performance key}} should probably have a subtemplate; currently formatting consistency is achieved through individual |style= for each table cell. Maybe something like {{tennis performance}} or {{tennis result}} that utilizes the first parameter with the helpful mnemonic. But some of the statuses utilizes no background color, like "Q#", "A", "P", "NMS", "NH".

Here, the term "Strike Rate" is used in a tennis context, while Strike rate only identifies the term in a cricket context, with no see also disambiguation page. (this also capitalizes it title case, but that will probably be corrected to sentence case).

Abbreviations in the "Strike Rate" column are semi-guesses based on {{Performance key}}.

Tournament Earliest year Latest year SR W–L Win %
Tournament name W / C WL W.

Tooltips breakdown (severely outdated; only includes 102 articles):

  • Standard abbreviations: {{tooltip|SR|Strike Rate}} (185), {{tooltip|W–L|Win–Loss}} (183), {{tooltip|Ref.|Reference}} (4), {{tooltip|NH|Not Held}} (4), {{tooltip|DNQ|Did Not Qualify}} (4), {{tooltip|SR|Strike rate}} (2), {{tooltip|W–L|Win–loss}} (2), {{tooltip|W–L|Win–Loss]}} (2), {{tooltip|NTI|Not Tier I}} (2), {{tooltip|WR|winning rate}}
  • Money annotations: 39 articles
  • Person-dependent (1 each): {{tooltip|DM|Daniil Medvedev}}, {{tooltip|KK Rank|Karen Khachanov Rank}}, {{tooltip|ED|Evgeny Donskoy}}, {{tooltip|AK|Andrey Kuznetsov}}, {{tooltip|VW Rank|Venus Williams Rank}}, {{tooltip|LR|Lendl's ATP Ranking}}, {{tooltip|PKR|Petra Kvitová Rank}}, {{tooltip|BR|Becker's ATP Ranking}}, {{tooltip|MR Rank|Milos Raonic}}, {{tooltip|MR|Mauresmo's WTA Ranking}}, {{tooltip|NOR|Naomi Osaka Rank}}, {{tooltip|BAR|Bianca Andreescu Rank}}, {{tooltip|DKR|Daria Kasatkina Rank}}

Removing from template-space

[edit]

There are no remaining transclusions of {{tooltip}} in template-space (for now; it is very possible someone else could derive a table from mainspace to create another template). While the vast majority of impactful replacements were done while I was on my 11 month break from Wikipedia, I carried out ~50 of the edits semi-automatically using my alternate account. I found the transclusions through these two searches (note the second search include parameters named "tooltip"):

What follows is some organizing of the edits I performed to finish up template-space.

Organizing template-space replacements
  • Straightforward replacements. Most of these are abbreviated column names.
    • Sports tables with similar abbreviated columns names. These might have a potential for some meta-templates: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25
    • Conditional infobox parameters (some through edit requests, because they were template-protected): 1, 2, 3, 4, 5
    • Field hockey squad player templates: 1, 2, 3
    • CAF Champions League, "awd." for "Awarded" (though I'm unsure what it means in the context): 1, 2, 3
    • 2018 volleyball team rosters: 1, 2
    • Miscellaneous abbreviations in sports tables: 1, 2, 3
    • Sports team city/state abbreviations: 1
    • (NEWER) FIFA World Cup tables: 1, 2
  • More doubtful:
    • AMD cores. Never heard of "Base" and "Boost", but it's plausible enough: 1, 2
    • Numbers are small and hard to click on: 1
    • I'm unsure what's going on here. I'll have to look at some transclusions to understand how it functions: 1
    • An unnecessary abbreviation of "Apps" for "Appearances" in an infobox, but it's in a sandbox: 1
    • The whole navbox layout with blue text that isn't links seems off to me. There's only one tooltipped item, added in this edit: 1

As noted above regarding the second search, there are a handful of templates that have a parameter named tooltip that don't need edited (because they don't transclude {{tooltip}}). Unfortunately I made one mistake here (two, if the sandbox is counted): {{AddNewSection}}, {{Scalable image}}, {{Snooker ranking change}}, {{Tennis points change}}, {{Tennis ranking change}}

Categorization

[edit]

I'm still populating Category:Abbreviation templates. There is currently (at least) one erroneous categorization: {{Dow tooltip}}, a template I created, is in Category:Time and date abbreviation templates, but it isn't technically an abbreviation template. I could split into a separate tooltip category, but I'm grouping it with the others currently for convenience because I haven't found many tooltip templates to sort yet.

Search query refinement