[Migrated] Do not include unimportant prefixes in {{DEFAULTSORT}}
Open, Stalled, Needs TriagePublic

Description

I received a complaint on my talk page that my recent edit to https://en.wikipedia.org/wiki/The Last Tightrope Dancer in Armenia added {{DEFAULTSORT:The Last Tightrope Dancer In Armenia}}. Per https://en.wikipedia.org/wiki/WP:SORTKEY, it should have added {{DEFAULTSORT:Last Tightrope Dancer In Armenia, The}} (without the "The") (with "The" at the end). @GoingBatty 23:17, 25 November 2010 (UTC)

Reguyla created this task.May 27 2015, 11:46 PM
Reguyla added a project: AutoWikiBrowser.
Reguyla moved this task to General fixes on the AutoWikiBrowser board.
Reguyla added subscribers: Reguyla, Aklapper, GoingBatty.

@Magioladitis 00:24, 26 November 2010 (UTC) wrote:
I only see "In some categories, sort keys are used to exclude prefixes that are common to all or many of the entries, or are considered unimportant (such as "List of" or "The")." It doesn't say in all.

@GoingBatty 00:52, 26 November 2010 (UTC) wrote:
Are there categories where "The" is important in the sort?

@Magioladitis 00:55, 26 November 2010 (UTC) wrote:
The Beatles?

@GoingBatty 01:27, 26 November 2010 (UTC) wrote:
I don't see anything on https://en.wikipedia.org/wiki/Category:The Beatles sorted by "The".

Furthermore, https://en.wikipedia.org/wiki/The Beatles article contains {{DEFAULTSORT:Beatles, The}} - so I've revised my request to match this format.

@Mclay1 06:21, 26 November 2010 (UTC) wrote:
Adding "The" at the end is unlikely to ever make a difference, but AWB already excludes "The" from DEFAULTSORT tagging. If you look at the edit you linked, AWB did not include "The".

@Mclay1 06:23, 26 November 2010 (UTC) wrote:
Actually, you did include "The", you just gave the wrong diff. This has never happened to me; "The" is usually excluded.

@GoingBatty 17:23, 26 November 2010 (UTC) wrote:
Try https://en.wikipedia.org/wiki/The Rats (play) and https://en.wikipedia.org/wiki/The UFC Chronicles. I'm using SVN 7424. Should this be moved over to the [[WP:AWB/B|bug list]]?

@Mclay1 15:23, 27 November 2010 (UTC) wrote:
OK, it is adding "The". I thought it didn't. Maybe I'm wrong.

Dinoguy1000 edited the task description. (Show Details)May 28 2015, 3:22 AM
Dinoguy1000 set Security to None.
Josve05a changed the title from "[Migrated] Do not include unimportant prefixes in {{tl|DEFAULTSORT}}" to "[Migrated] Do not include unimportant prefixes in {{DEFAULTSORT}}".May 28 2015, 4:32 AM
Rjwilmsi changed the task status from "Open" to "Stalled".Feb 27 2016, 11:53 AM
Rjwilmsi added a subscriber: Rjwilmsi.

Update needed on whether this is still an issue and whether accurate rules can be defined for when or when not to drop prefixes, and what is "unimportant"

Restricted Application added a subscriber: StudiesWorld. · View Herald TranscriptFeb 27 2016, 11:53 AM

I believe that this is still an issue. For example, if you look at [[Category:Churches in Durham, North Carolina]], you'll see that [[The Summit Church]] is sorted under "T" instead of "S" because it does not have a DEFAULTSORT template, and AWB doesn't add the DEFAULTSORT.

While it would be wonderful for AWB to be coded to follow the instructions at [[WP:SORTKEY]], I'm not sure how it could be coded to know that:

  • [[A Jolly Good Fellow]] should have {{DEFAULTSORT:Jolly Good Fellow}} but [[A major]] should not have {{DEFAULTSORT:Major, A}}
  • [[An Answer Can Be Found]] should have {{DEFAULTSORT:Answer Can Be Found, An}} but [[An Post]] should not have {{DEFAULTSORT:Post, An}}

However, creating a rule for "The" (which was my original concern) seems more straightforward. Querying on the February data dump, there are over 7,000 articles that begin with "The" that do not have a DEFAULTSORT template.