On 4/25/06, William Allen Simpson william.allen.simpson@gmail.com wrote:
[{{fullurl:Special:Whatlinkshere/{{{1}}}{{{2}}}|limit=999}} links]
Always works.
Because it's part of the full URL generated (see below).
Is there some reason that fullurl stops encoding spaces to underscores when it runs into a pipe?
The pipe adds parameters, basically {{fullurl:...}} seems to take this:
{{fullurl:<page>|<param-1>|<param-2>|...|<param-n>}}
And convert it into:
<page: converted to full URL>?<param-1>&<param-2>&...&<param-n>
And speaking of syntax, why {{fullurl: instead of {{#fullurl: to match the latest parser syntax?
Probably because the latter would break existing pages relying upon {{fullurl: ...}}. Also, my understanding of {{# was that it was only used for parser extensions (not built-in magic words/functions).
Anyways, getting back to the problem of spaces in parameters, I don't think URL encoding parameters would work. A better solution (IMO) would be to add two new magic words:
{{urlencode:<string>}} {{urldecode:<string>}}
Which would allow us to encode/decode URL parameters as necessary. Now if a dev could be convinced this is wise, we'd be set. =)
-L