Last modified: 2006-05-31 02:19:36 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 2718 - Expand localurl to include InterWiki prefixes and to support the parameter part
Expand localurl to include InterWiki prefixes and to support the parameter part
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
All All
: Normal enhancement with 2 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on: 4982 4984
  Show dependency treegraph
Reported: 2005-07-06 01:02 UTC by lɛʁi לערי ריינהארט
Modified: 2006-05-31 02:19 UTC (History)
2 users (show)

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


Description lɛʁi לערי ריינהארט 2005-07-06 01:02:10 UTC

Please note that when setting up InterWiki's you may use the following equivalents$1$1$1$1$1$1$1$1$1$1
shows that j) and k) are valid links:

j) {{localurl:leuksman:User:Gangleri}}
: very interesting using an '''InterWiki''' prefix – usefull link
k) {{localurl:leuksman:User:Gangleri|action=history}}
: very interesting using an '''InterWiki''' prefix – usefull link '''but'''
parameters are '''not''' generated


- j) and k) should be *legal* usage of localurl and should not work in this
version only
- - request should aply probably also of localurl*e* - I do not understand the

- localurl (and probably also of localurl*e*) should support parametrisation and
generate full links with parameters

Benefits (if the second alternative mentioned regarding setting up InterWiki's
is used):

- referencing to pages with known {{REVISIONID}}
- full parameter support *across* wiki's
- taking advantage of localurl's handling of {{NAMESPACE}} and {{PAGENAME}} in
the part *before* the "|" and of localurl's handling of {{PAGENAMEE}} in the
part *after* the "|"
- less *hardcoded* URL's in the own wiki
- other (use your creativity)

Regards Reinhardt [[user:gangleri]]
Comment 1 lɛʁi לערי ריינהארט 2005-07-06 01:26:50 UTC

See an example of the usage of this enhancement at
reading also

Regards Reinhardt [[user:gangleri]]
Comment 2 lɛʁi לערי ריינהארט 2005-07-11 12:26:46 UTC

more details about the requirement:
localurl (and where aplicable localurle) should:
a) handle character conversion properly according to the three parts of the url
"basic url", "parameter part", "anchor part"
a1) special care about handling spaces properly according to the three parts of
the url "basic url", "parameter part", "anchor part", it should be investigated
if substitution should be done manily with underscores and / or if for some
parts substitution with %20 would provide more benefits)
b) handle constructs with parameters {{{1}}}, {{{FOO}}} and variables alone and
/ or *in combination* *after* substitution / recursion the same way as a) / a1)
- example {{localurl:leuksman:Template:To do:{{PAGENAME}}}}
note: that {{localurl:{{{1}}}}} does not make substitution for spaces and
generates *useless* links
c) be compatible with <span dir="foo"> </span> usage inside localurl; this is a
requirement about readability of code in bidirectional environments
d) combinations of all three (possibly others)

the bottom line: this enhancement should allow more portability of wiki code and
less absolute links

additional examples of *what is possible now* are provided at:
shows how to change the InterWiki MySQL table from *short form* links
to *long form* links

The setup of the InterWiki MySQL table can be verified in

Regards Reinhardt [[user:gangleri]]
Comment 3 lɛʁi לערי ריינהארט 2005-07-13 14:22:03 UTC

Support for multiple prefixes as configurated / used together with most of the
WikiMedia Foundation projects should be supported (as a main goal) as well. 

See example at [[meta:User:Gangleri/tests#bugzilla:02718]] where links like 
will fail.

Best regards Reinhardt [[user:gangleri]]

Comment 4 lɛʁi לערי ריינהארט 2006-02-12 20:21:25 UTC
changed url to
because Betawiki was moved

more examples at
there "?" is used "behind" localurl:<interwiki_prefix>:<foo>

best regards reinhardt [[user:gangleri]]
Comment 5 lɛʁi לערי ריינהארט 2006-02-13 23:31:23 UTC
Adding 'depends on'
Bug 4982: Interwiki urls with php parameters fail on redirect
which is not quite the same as
Bug 218: Redirects do not support named anchors

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