Last modified: 2006-12-27 18:59:54 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 2364 - requests for new extension underscores and spaces
requests for new extension underscores and spaces
Product: MediaWiki extensions
Classification: Unclassified
Extensions requests (Other open bugs)
All All
: High enhancement with 2 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2005-06-09 23:24 UTC by lɛʁi לערי ריינהארט
Modified: 2006-12-27 18:59 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description lɛʁi לערי ריינהארט 2005-06-09 23:24:45 UTC
Dear friends,

For *template design* I would like to have
- an extension <underscores> ... </underscores> which is able to replace spaces
with underscores.
- an extension <spaces> ... </spaces> which is able to replace underscores with

It would help to simplify templates and reduce the number of parameters.
Handling of templates could be easier because users would not have to care about
when to use namespaces or not. The selection of the best suitable coice could be
done case by case (line by line) by the usage of one of extensions.

- an "intermixture" of "spaces and underscores" should be replaced to "what is
required" should be implemented

" __ _ ____   _ _ ___ user ___ _ :   _  __ gangleri _ ___ _ " should be converted to
"_user_:_gangleri_" when using extension underscores
" user : gangleri " when using extension spaces

[[ __ _ ____   _ _ ___ user ___ _ :   _  __ gangleri _ ___ _]] is identical to

It should be possible to use the extensions inside [[ ]], [ ], {{ }}, {{{ }}},
localurl ("main url part" not necessary in"parameter part" - see bug 2363) (etc.
not known to me).

This bug relates to handling issues as reported in the invalid bugs:
bug 2339: Sections_and_underscores
bug 2362: small discrepancy in suppression of underscores in links -
self-referencing links
Before this bug changes "resolution" to "invalid" I would like to be informed
about *alternatives*.

I can not identify the required extension (an equivalent to PAGENAMEE) to go
together with extensions underscores and spaces mentioned / required in addition at
bug 2363: unsymmetrical handling of underscores in parameter part of localurl

Best regards Reinhardt
Comment 1 lɛʁi לערי ריינהארט 2006-01-18 02:59:17 UTC
(In reply to comment #0)
> For *template design* I would like to have
> - an extension <underscores> ... </underscores> which is able to replace spaces
> with underscores.

[[meta:Urlencode]] could probably be used in equivalent templates.

Related to extension urlencode see
Bug 4585: urlencode extension does not work with template parameters
which is a duplicate of
Bug 4529: Passing template parameters to parser hook extensions
Comment 2 Rob Church 2006-12-27 10:16:43 UTC
The StringFunctions extension will handle this.
Comment 3 Aryeh Gregor (not reading bugmail, please e-mail directly) 2006-12-27 18:59:54 UTC
Should it be checked into SVN, maybe?

Note You need to log in before you can comment on or make changes to this bug.