API:Pageprops
Jump to navigation
Jump to search
| Pageprops | ||
|---|---|---|
| Get various properties defined in the page content. This module cannot be used as a Generator. |
||
| Prefix | pp | |
| Required rights | none | |
| Post only? | No | |
| Generated help | Current | |
| Version added |
|
|
Get various properties defined in the page content.
Parameters[edit]
ppcontinue: When more results are available, use this to continue.ppprop: Page prop to look on the page for. Useful for checking whether a certain page uses a certain page prop.
Example[edit]
Get various properties defined in the page content
| Result |
|---|
{
"batchcomplete": "",
"query": {
"pages": {
"736": {
"pageid": 736,
"ns": 0,
"title": "Albert Einstein",
"pageprops": {
"defaultsort": "Einstein, Albert",
"page_image_free": "Einstein_1921_by_F_Schmutzer_-_restoration.jpg",
"wikibase-badge-Q17437798": "1",
"wikibase_item": "Q937"
}
}
}
}
}
|
Possible errors[edit]
None
See also[edit]
- API:pageswithprop – list all pages using a given page property.
- API:pagepropnames – list all page property names in use on the wiki