Page MenuHomePhabricator

Special page aliases should be overridable
Open, LowPublicFeature

Description

Special page aliases should be overridable, so they could match the customized names.

Example:

Wantedpages and WantedPages is eg. the default set shipped with MediaWiki.

Some sites would rather call it WantedArticles, WantedTopics, WantedEntries etc...

Applies to lots of special page names.

However the alias set should preserve the default set, thus old set should be appended (but not vice versa to allow the override) to the new set.


Version: 1.14.x
Severity: enhancement

Details

Reference
bz17123

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 10:25 PM
bzimport set Reference to bz17123.
bzimport added a subscriber: Unknown Object (MLST).

This is possible with LanguageGetSpecialPageAliases hook.

Playing with hook in config file isn't that straight and comfortable like if there was simple variable like for other stuff, eg. namespace aliases etc.

I can imagine something like:

$wgSpecialPagesAliases = array(

"Wantedpages" => array( "Wanted articles", "WantedArticles", "Wantedarticles", "Wantedpages", "WantedPages")
)

or to avoid the necessity of repeated writing of the default set shipped with MediaWiki something like:

$wgSpecialPagesAliasesOverrides = array(

"Wantedpages" => array( "Wanted articles", "WantedArticles", "Wantedarticles")
)

which would actually prepend this defined set to the default one.

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 11:01 AM
Aklapper removed a subscriber: wikibugs-l-list.