[Mediawiki-l] Internal link with query string?

Gary Kirk gary.kirk at gmail.com
Fri May 4 16:04:46 UTC 2007

Use {{fullurl:Page name|action=edit|section=new}} (example parameters).

On 04/05/07, Daniel Barrett <danb at vistaprint.com> wrote:
> What is the right way (in wikitext) to produce an internal link with a
> query string?  I am trying to make a link to a custom special page that
> accepts query parameters:
>   Please visit our [[Special:Foobar?arg=$1|new special page]].
> but unfortunately this link renders as:
>   http://mywiki.com/wiki/Special:Foobar%3Farg%3D%241
> with the "?" turned into %3F, so it isn't recognized as a query string.
> If I use an external link instead:
>   [{{SERVER}}/wiki/Special:Foobar?arg=$1 new special page]
> this breaks when $1 contains whitespace.
> Thanks,
> DanB
> ---------------------
> Confidentiality note
> The information in this email and any attachment may contain confidential
> and proprietary information of VistaPrint and/or its affiliates and may be
> privileged or otherwise protected from disclosure. If you are not the
> intended recipient, you are hereby notified that any review, reliance or
> distribution by others or forwarding without express permission is strictly
> prohibited and may cause liability. In case you have received this message
> due to an error in transmission, please notify the sender immediately and
> delete this email and any attachment from your system
> ---------------------
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l at lists.wikimedia.org
> http://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Gary Kirk

More information about the MediaWiki-l mailing list