Reconciliation API modules: recon-suggest-entity
From CODECS Dev
- Main
- Configuration
- Local file settings
- JSON profiles
- Modules
- recon
- recon-suggest-entity
- recon-suggest-entity (MW)
- recon-suggest-property
- recon-suggest-type
- recon-suggest-propvalue
- Other
- Additional usage guide
- Implementation notes
- Implementation notes: SMW
- Implementation notes: MW and types
- Redirect service
- TypeaheadSearch
- Future
Service for suggesting wiki pages, with options, e.g. to restrict one's search to a MediaWiki category/categories or namespace.
Parameters
Get pages based on a configuration profile:
api.php?action=recon-suggest-entity&profile=...&substr=...
Parameter name
Description
source
mw
(for MediaWiki core) or smw
(for Semantic MediaWiki).profile
Page ID of the configuration profile in the
Recon
namespace.concept
Used only when source=smw. [...]
property
...
substr
The substring to autocomplete on.
substrpattern
Substring pattern... May be used to override the pattern set in the profile page
cat
Used only when source=mw, the category or categories (comma-separated, without namespace prefix) to be searched.
ns
Used only when source=mw, the namespace or namespaces (comma-separated) to be searched, e.g.
Main,Help
.displaytitle
Used only when source=mw. Set to 1 to search pages by display title; 0 to search by page title.
Developmemt
Semantic MediaWiki (source=smw)
...
MediaWiki (source=mw)
Moved
Notes
- @todo: maybe drop additional source param (mw or smw, which is implicit from other params or data).
To get pages from a MediaWiki category or namespace:
api.php?action=recon-suggest-entity&source=mw&ns=...&substr=... api.php?action=recon-suggest-entity&source=mw&cat=...&substr=...