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.