Page MenuHomePhabricator

Always link to canonical titles of DefinedMeaning pages.
Closed, DeclinedPublic

Description

During the pre-save parse of wikitext pages, the page titles in links to pages in the DefinedMeaning namespace should be renamed to their canonical page titles as follows:

[[Already-Canonical]] -> unchanged
[[Already-Canonical|Anything]] -> unchanged
[[Not-Canonical]] -> [[Corresponding-Canonical|Not-Canonical]]
[[Not-Canonical|Anything]] -> [[Corresponding-Canonical|Anything]]
[[Not-Existing]] -> [[DefineMeaning:_(0)l|Not-Existing]]
[[Not-Existing|Anything]] -> [[DefineMeaning:_(0)|Anything]]

The latter two prohibit such links to behave differently in unaltered pages when a DefineMeaning page with a previously not existing ID comes into existence.

Parser functions taking page titles, such as #ifexist, fullurl, etc. must be extended likewise.

This should keep all database tables containing page titles in sync with the page table and avoids bogus red links when pages are rendered.

Event Timeline

Purodha raised the priority of this task from to Needs Triage.
Purodha updated the task description. (Show Details)
Purodha subscribed.

Change 251735 had a related patch set uploaded (by Purodha):
DM redlinks solutions

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

The patch solves the problem when dsplaying pages. It does not seem to solve the problem before pages are stored.