Last modified: 2006-05-31 02:19:36 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]]
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]]
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]]
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]]
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]]
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