On Tue, 25 Apr 2006 19:38:55 -0400
William Allen Simpson <william.allen.simpson(a)gmail.com> wrote:
A couple of us were trying to figure out the syntax to
add a working
link to Special:Log in a template.
[{{fullurl:Special:Log|page={{{1}}}{{{2}}}}} log]
Works fine as long as parameter 2 is only one word. With a space in 2,
only the first word shows up in the URL.
Tried wrapping {{fullurl:{{{1}}}{{{2}}}}}, but page= won't take a full
page name.
[{{fullurl:Special:Whatlinkshere/{{{1}}}{{{2}}}|limit=999}} links]
Always works.
As far as I know this will fail if Special:Whatlinkshere/{{{1}}}{{{2}}} is
longer then 255 characters. In such case one should / might use "&target=".
Is there some reason that fullurl stops encoding
spaces to underscores
when it runs into a pipe?
And speaking of syntax, why {{fullurl: instead of {{#fullurl: to match
the latest parser syntax?
regards reinhardt [[user:gangleri]]