Last modified: 2014-10-21 14:08:06 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 T74285, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 72285 - Restring search to subpages of a page
Restring search to subpages of a page
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
Search (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-10-20 22:51 UTC by VictorPorton
Modified: 2014-10-21 14:08 UTC (History)
3 users (show)

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


Attachments

Description VictorPorton 2014-10-20 22:51:30 UTC
There should be the ability to restrict search to a given page and its subpages.

For example, I want to restrict search to the page

https://en.wikiversity.org/wiki/Automatic_transformation_of_XML_namespaces

and its subpages like

https://en.wikiversity.org/wiki/Automatic_transformation_of_XML_namespaces/Draft_status

This make the ability to do search in an individual "book".
Comment 1 billinghurst 2014-10-21 11:07:54 UTC
You can already, utilise the prefix component as described on the search help.  Have a look at how we have a template at English Wikisource to manage this directly
https://en.wikisource.org/wiki/Template:Engine

You should be able to import it directly and to have it work, though you probably will want to change the button text.

And if you don't have transwiki import set up from enWS, then try meta or mediawiki, as I migrated it to those wikis too.

Note. If you want to only do subpages, you just need to add a "/" at the end to force it to only look at subpages.
Comment 2 billinghurst 2014-10-21 11:12:25 UTC
The search help page is at [[mw:Help:CirrusSearch]] and you should look at the "prefix:" component, and think usage like for  "Special:PrefixIndex"
Comment 3 VictorPorton 2014-10-21 12:28:29 UTC
I want an <input type="text"> where I can easily enter the prefix.

The above described features are not enough.
Comment 4 Glaisher 2014-10-21 12:42:08 UTC
This is already possible with the [[mw:Extension:InputBox]]. See the extension documentation page for more parameters.

For example, the following wikitext would produce <https://en.wikiversity.org/w/index.php?oldid=1248385>

<inputbox>
type=search
prefix=Automatic transformation of XML namespaces
</inputbox>
Comment 5 billinghurst 2014-10-21 14:08:06 UTC
or type ... prefix:Automatic_transformation_of_XML_namespaces
into a search box, which is only several characters and no need to have a specialised search form, it works anywhere if you know the path

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


Navigation
Links