[Mediawiki-l] Internal link with query string?

Daniel Barrett danb at VistaPrint.com
Mon May 7 20:26:16 UTC 2007


Ah, looks like "$1" is probably a PHP dependency.  From
includes/SpecialSearch.php:

 $wgOut->addWikiText( wfMsg( 'noexactmatch', wfEscapeWikiText( $term ) )
);

What I need is the search term being passed to the special search page.
I don't know another way to get this value using only wikitext. I
suppose I could modify the above source line to escape space
characters....

DanB

-----Original Message-----
From: mediawiki-l-bounces at lists.wikimedia.org
[mailto:mediawiki-l-bounces at lists.wikimedia.org] On Behalf Of Daniel
Barrett
Sent: Monday, May 07, 2007 4:16 PM
To: MediaWiki announcements and site admin list
Subject: Re: [Mediawiki-l] Internal link with query string?

You can see $1 used in [[MediaWiki:Noexactmatch]] :

  '''There is no page titled "$1".''' You can [[:$1|create this page]].

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.
---------------------



More information about the MediaWiki-l mailing list