Page MenuHomePhabricator

rename link texts for SpecialPages to account for Schemas
Closed, ResolvedPublic

Description

Problem:
We have several SpecialPages on Special:SpecialPages that are specific to certain entity types but have a generic link text. With the addition of Schemas these become confusing. We need to change the link text to be more specific.

The following link text changes are needed:

Set a description -> Set Item/Property description
Set a label -> Set Item/Property label
Set a sitelink -> Set Item sitelink
Set aliases -> Set Item/Property aliases
Set label, description and aliases -> Set Item/Property label, description and aliases

Example:
See the Wikibase section on https://www.wikidata.org/wiki/Special:SpecialPages

Acceptance criteria:

  • All link texts are clearly identifying the specific entity types for the above SpecialPages.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptFeb 21 2019, 3:03 PM
Addshore added a subscriber: Addshore.

Those names seem quite long.

How about making some new headings?

  • Wikibase General
    • Change dispatch statistics
    • Entity Data
    • Entity Page
    • List of all data types available
    • My language fallback chain
  • Wikibase Items
    • Available badges
    • Create new
    • Without label
    • Without description
    • Go to linked page
    • Item by title
    • Items without sitelinks
    • Merge
    • Redirect
    • Set a description
    • Set a label
    • Set aliases
    • Set label, description and aliases
    • Set a sitelink
  • Wikibase Properties
    • Create new
    • Without label
    • Without description
    • List of Properties
    • Redirect
    • Set a description
    • Set a label
    • Set aliases
    • Set label, description and aliases
  • Wikibase Lexemes
    • Create new
    • Merge
    • Redirect

Wait, special pages can be under more than one heading?

If we were to go that way, we could make a "Wikibase Schemas" heading as well.

Wait, special pages can be under more than one heading?
If we were to go that way, we could make a "Wikibase Schemas" heading as well.

Technically it is possible yes, and there are probably a few different ways of doing it:

  • have a generic special page class, which just redirects you to another special name, then you can register multiple pages in $wgSpecialPages which all point to the same real page.
  • have subclasses of the generic special page / allow setting the title / name in the constructor, this would allow you to pass the full page into $wgSpecialPages (instead of just a redirect)

The first option is probably better, as it allows the old names to continue to be used etc Special:SetLabel.

on the whole there is a little bit to think about but it wouldn't be too much work. I would be pro a reorganization if we think we need it.

This would cause quite a bit of redundancy for just keeping the names short. I don't think any special page so far is mentioned twice on Special:SpecialPages. In addition we'd add a lot of new headings that i'm not sure would be appreciated. I think we should keep it simple.

alaa_wmde added a subscriber: alaa_wmde.EditedFeb 25 2019, 11:19 AM

I would also keep this simple for now to solve the confusion, and think of reorganization later if that makes sense.

To make names shorter but still non-confusing, I'd maybe rephrase to:

Set a description -> Set Item/Property description
Set a label -> Set Item/Property label
Set a sitelink -> Set Item sitelink
Set aliases -> Set Item/Property aliases
Set label, description and aliases -> Set Item/Property label, description and aliases

that text will make them also appear together alphabetically

That works for me.

alaa_wmde updated the task description. (Show Details)Feb 25 2019, 11:23 AM

Awesome.. updated description

Change 492650 had a related patch set uploaded (by Greta WMDE; owner: Greta Doçi):
[mediawiki/extensions/Wikibase@master] Rename link texts for SpecialPages to account for Schemas

https://gerrit.wikimedia.org/r/492650

Change 492650 merged by jenkins-bot:
[mediawiki/extensions/Wikibase@master] Rename link texts for SpecialPages to account for Schemas

https://gerrit.wikimedia.org/r/492650