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

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T4364, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 2364 - requests for new extension underscores and spaces
requests for new extension underscores and spaces
Status: RESOLVED WORKSFORME
Product: MediaWiki extensions
Classification: Unclassified
Extensions requests (Other open bugs)
unspecified
All All
: High enhancement with 2 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  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: ---


Attachments

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
spaces.

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.

Specification:
- 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
[[user:gangleri]]

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.


Navigation
Links