Last modified: 2009-03-20 17:21:30 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T20036, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 18036 - Allow arguments to pass into <inputbox> search fields?
Allow arguments to pass into <inputbox> search fields?
Status: RESOLVED INVALID
Product: MediaWiki extensions
Classification: Unclassified
InputBox (Other open bugs)
unspecified
All All
: Normal minor (vote)
: ---
Assigned To: Trevor Parscal
http://en.wikipedia.org/wiki/Template...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-03-18 17:47 UTC by stevertigo
Modified: 2009-03-20 17:21 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description stevertigo 2009-03-18 17:47:00 UTC
The normal form requires hardcoding:
<inputbox>
type=search
prefix={{FULLPAGENAME}}/Archive
</inputbox>

This form (used at [[Template:Search archives]]) doesn't work in cases such as [[Wikipedia:Archived deletion discussions]] (WP:ADD), because most of the discussions are under [[Wikipedia:Articles for deletion/Log/]]. Using that template means hard-transcluding the page name where the tag/searchbox is, rather than the desired subpage prefix.

I created [[Template:Search subpages]] to try and correct this problem but found out that there's more going on:

<inputbox>
type=fulltext
prefix={{{1}}}
</inputbox>

Search "foo" returns:
 Search results for: [foo prefix:{{{1}}} ] = None found.

I don't know how this might be done. I'm guessing there might be some security issues.
Comment 1 stevertigo 2009-03-18 17:57:04 UTC
Note also the [[Template:Search archives]] form doesn't work at [[Wikipedia:Requests for arbitration/Completed requests]], where the archives are listed. I will try posting a searchbox to the main [[WP:RFAR]] page though. 
Comment 2 Umherirrender 2009-03-20 17:21:30 UTC
#tag allows you to use arguments and vars for inputbox (and other tags)

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links