API:Pageswithprop
From MediaWiki.org
| This page is part of the MediaWiki action API documentation. |
MediaWiki action API
- Introduction and quick start
- FAQ
- Tutorial
- Formats
- Error reporting
- Restricting usage
- Cross-site requests
- Authentication
- Queries
- Searching (by title, content, coordinates...)
- Parsing wikitext and expanding templates
- Purging pages' caches
- Parameter information
- Changing wiki content
- Watchlist feed
- Wikidata
- Extensions
- Using the API in MediaWiki and extensions
- Miscellaneous
- Implementation
- Client code
- Asserting
| Pageswithprop | ||
|---|---|---|
| Prefix | pwp | |
| Required rights | none | |
| Post only? | No | |
| Generated help | Current | |
| Version added |
|
|
List all pages using a given page property.
Parameters[edit | edit source]
pwppropname: Page prop for which to enumerate pages. Query for pagepropnames or look at Special:PagesWithProp for available page properties on a wiki. Type: stringpwpprop: What pieces of information to include. (Default:ids|title)ids: Adds the page IDtitle: Adds the title and namespace ID of the pagevalue: Adds the value of the page prop
pwpdir: In which direction to sort. Possible values:ascending,descending. (Default:ascending)pwpcontinue: When more results are available, use this to continue.pwplimit: The maximum number of pages to return. No more than 500 (5000 for bots) allowed. Type: limit (Default: 10)