{{urlencode:$1}} doesn't work: it urlencodes the literal string "$1". I guess templates are evaluated before $1 is.
Full example:
'''There is no page titled "$1".''' You can create this page [[:$1|blank]] or using a {{fullurl:Special:PageTemplates|articleName={{urlencode:$1}}}}
:-( DanB
-----Original Message----- From: Rob Church
On 04/05/07, Daniel Barrett danb@vistaprint.com wrote:
Thanks, but this works incorrectly when one of the parameter values is $1 and it contains blanks. The link winds up including the first word
of $1 but not subsequent words. Is there a way to urlencode $1 within
wikitext?
What about {{urlencode:$1}}?
--------------------- 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. ---------------------