MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
prop=info (in)
- Ta modul zahteva pravice branja.
- Source: MediaWiki
- License: GPL-2.0-or-later
Get basic page information.
Specifični parametri:
Na voljo so tudi drugi splošni parametri.
- inprop
Katere dodatne lastnosti naj se pridobijo:
- protection
- List the protection level of each page.
- talkid
- The page ID of the talk page for each non-talk page.
- watched
- List the watched status of each page.
- watchers
- Število opazovalcev, če je dovoljeno.
- visitingwatchers
- The number of watchers of each page who have visited recent edits to that page, if allowed.
- notificationtimestamp
- The watchlist notification timestamp of each page.
- subjectid
- The page ID of the parent page for each talk page.
- associatedpage
- Predpona naslova povezane zadeve ali pogovorne strani.
- url
- Gives a full URL, an edit URL, and the canonical URL for each page.
- readable
- Opuščeno. Whether the user can read this page. Use intestactions=read instead.
- preload
- Gives the text returned by EditFormPreloadText.
- displaytitle
- Poda način, na katerega je naslov strani dejansko prikazan.
- varianttitles
- Gives the display title in all variants of the site content language.
- linkclasses
- Gives the additional CSS classes (e.g. link colors) used for links to this page if they were to appear on the page named by inlinkcontext.
- Values (separate with | or alternative): associatedpage, displaytitle, linkclasses, notificationtimestamp, preload, protection, subjectid, talkid, url, varianttitles, visitingwatchers, watched, watchers, readable
- inlinkcontext
The context title to use when determining extra CSS classes (e.g. link colors) when inprop contains linkclasses.
- Vrsta: naslov strani
- Sprejme neobstoječe strani.
- Privzeto: Glavna stran
- intestactions
Test whether the current user can perform certain actions on the page.
- Loči vrednosti z | ali alternative.
- Največje število vrednosti je 50 (500 za odjemalce z večjimi dovoljenimi omejitvami)
- intestactionsdetail
Detail level for intestactions. Use the main module's errorformat and errorlang parameters to control the format of the messages returned.
- boolean
- Return a boolean value for each action.
- full
- Vrnitev sporočil, ki opisujejo, zakaj dejanje ni dovoljeno, ali prazno polje, če je dovoljeno.
- quick
- Like full but skipping expensive checks.
- One of the following values: boolean, full, quick
- Privzeto: boolean
- incontinue
Ko bo na voljo več rezultatov, uporabite to za nadaljevanje. Podrobnejše informacije o nadaljevanju poizvedb lahko najdete na mediawiki.org.
Zgleda:
- Pridobitev informacije o strani Glavna stran.
- api.php?action=query&prop=info&titles=Glavna%20stran [open in sandbox]
- Pridobitev splošnih informacij in informacij o zaščiti za stran Glavna stran.
- api.php?action=query&prop=info&inprop=protection&titles=Glavna%20stran [open in sandbox]