Last modified: 2006-05-31 02:19:36 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 T4718, the corresponding Phabricator task for complete and up-to-date bug report information.
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
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Normal enhancement with 2 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
http://idler.paivola.fi/betawiki/User...
:
Depends on: 4982 4984
Blocks:
  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: ---


Attachments

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

Please note that when setting up InterWiki's you may use the following equivalents
http://en.wikipedia.org/wiki/$1
http://en.wikipedia.org/w/index.php?title=$1

http://commons.wikimedia.org/wiki/$1
http://commons.wikimedia.org/w/index.php?title=$1

http://jadesukka.homelinux.org:8180/golem/$1
http://jadesukka.homelinux.org:8180/mediawikirtl/index.php?title=$1

http://jadesukka.homelinux.org:8180/betawiki/$1
http://jadesukka.homelinux.org:8180/mediawiki15c/index.php?title=$1

http://test.leuksman.com/index.php/$1
http://test.leuksman.com/index.php?title=$1


http://jadesukka.homelinux.org:8180/betawiki/User_talk:Gangleri/tests/sandbox#no_http:.2C_localurl_and_InterWiki.27s
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

Requests:

- 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
difference

- 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
addition:

See an example of the usage of this enhancement at
http://www.wikipage.de/en/index.php/Template:Project:Portability/example
reading also
http://www.wikipage.de/en/index.php/Template:Project:Portability/example#comments

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

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:
http://www.wikipage.de/en/index.php?title=User_talk:%D7%92%D7%90%D6%B7%D7%A0%D7%92%D7%9C%D7%A2%D7%A8%D7%99
http://jadesukka.homelinux.org:8180/golem/%D7%91%D7%90%D6%B7%D7%A0%D7%99%D7%A6%D7%A2%D7%A8_%D7%A8%D7%A2%D7%93%D7%9F:%D7%92%D7%90%D6%B7%D7%A0%D7%92%D7%9C%D7%A2%D7%A8%D7%99
http://test.leuksman.com/index.php?title=User_talk:%D7%92%D7%90%D6%B7%D7%A0%D7%92%D7%9C%D7%A2%D7%A8%D7%99#together_with_golem:

http://test.leuksman.com/index.php/Template:InterWiki_table#wikipedia
shows how to change the InterWiki MySQL table from *short form* links
as http://wikitravel.org/en/$1
to *long form* links
as http://wikitravel.org/wiki/en/index.php?title=$1

The setup of the InterWiki MySQL table can be verified in
"Template:InterWiki_table".

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

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 
{{localurl:n:ro:Template:Creează_articol/alternativă}}&action=history
will fail.

Best regards Reinhardt [[user:gangleri]]

Comment 4 lɛʁi לערי ריינהארט 2006-02-12 20:21:25 UTC
changed url to
http://idler.paivola.fi/betawiki/User_talk:Gangleri/tests/sandbox#localurl_and_InterWikis
because Betawiki was moved

more examples at
http://en.wiktionary.org/wiki/User:Gangleri/tests/bugzilla/02718
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.


Navigation
Links