Page MenuHomePhabricator

Request for new parserfunction "urlparts"
Open, MediumPublicFeature

Description

Bug report after discussion here http://www.mediawiki.org/wiki/Help_talk:Extension:ParserFunctions#titleparts_misinterprets_underscores

My guess is this is intended behaviour, but it's critial when handling URLs (which seems to be the main purpose of #titleparts).
Fixing this behaviour results in dirty back and forth replacements:


Version: unspecified
Severity: enhancement

Details

Reference
bz23607

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:08 PM
bzimport added a project: ParserFunctions.
bzimport set Reference to bz23607.
bzimport added a subscriber: Unknown Object (MLST).

That is intended behaviour, because a title have no underscores.

*title*parts convert the given string first to a title and so underscores are converted to spaces (and some other things are done).

Proprosal INVALID.

Maybe adding a other parser function for handle *url*parts.

#titleparts gets not fixed, because a title is a string with spaces instead of underscores.

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