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.
- 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
- Opuščeno. Poda besedilo, ki ga vrne EditFormPreloadText. Namesto tega uporabite preloadcontent, ki podpira tudi druge vrste prednaloženega besedila.
- preloadcontent
- Poda vsebino, ki bo prikazana v urejevalniku, ko stran ne obstaja ali pri dodajanju novega razdelka.
- editintro
- Poda uvodna sporočila, ki naj bodo prikazana uporabniku med urejanjem te strani ali redakcije, kot HTML.
- 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, editintro, linkclasses, notificationtimestamp, preloadcontent, protection, subjectid, talkid, url, varianttitles, visitingwatchers, watched, watchers, preload, 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
- intestactionsautocreate
Preizkus, ali bi izvedba intestactions samodejno ustvarila začasen račun.
- Type: boolean (details)
- inpreloadcustom
Naslov strani po meri za uporabo kot prednaložena vsebina.
- Uporablja se samo, če inprop vsebuje preloadcontent.
- inpreloadparams
Parametri za stran po meri, ki se uporablja kot prednaložena vsebina.
- Uporablja se samo, če inprop vsebuje preloadcontent.
- Loči vrednosti z | ali alternative.
- Največje število vrednosti je 50 (500 za odjemalce z večjimi dovoljenimi omejitvami)
- inpreloadnewsection
Vrnitev prednaložene vsebine za nov razdelek na strani namesto nove strani.
- Uporablja se samo, če inprop vsebuje preloadcontent.
- Type: boolean (details)
- ineditintrostyle
Nekatera uvodna sporočila so opremljena z neobveznimi ovojnimi okvirji. Uporabite moreframes, da jih vključite, ali lessframes, da jih izpustite.
- Uporablja se samo, če in prop vsebuje editintro.
- One of the following values: lessframes, moreframes
- Privzeto: moreframes
- ineditintroskip
Seznam uvodnih sporočil, ki jih želite odstraniti iz odgovora. To uporabite, če določeno sporočilo ni pomembno za vaše orodje ali če so informacije posredovane na drugačen način.
- Uporablja se samo, če in prop vsebuje editintro.
- Loči vrednosti z | ali alternative.
- Največje število vrednosti je 50 (500 za odjemalce z večjimi dovoljenimi omejitvami)
- ineditintrocustom
Naslov strani po meri za uporabo kot dodatno uvodno sporočilo.
- Uporablja se samo, če in prop vsebuje editintro.
- incontinue
Ko bo na voljo več rezultatov, uporabite to za nadaljevanje. Podrobnejše informacije o nadaljevanju poizvedb lahko najdete na mediawiki.org.
- 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]
list=categorymembers (cm)
- Ta modul zahteva pravice branja.
- This module can be used as a generator.
- Source: MediaWiki
- License: GPL-2.0-or-later
List all pages in a given category.
- cmtitle
Which category to enumerate (required). Must include the Kategorija: prefix. Cannot be used together with cmpageid.
- cmpageid
Page ID of the category to enumerate. Cannot be used together with cmtitle.
- Vtipkajte: celo število
- cmprop
Which pieces of information to include:
- ids
- Adds the page ID.
- title
- Adds the title and namespace ID of the page.
- sortkey
- Adds the sortkey used for sorting in the category (hexadecimal string).
- sortkeyprefix
- Adds the sortkey prefix used for sorting in the category (human-readable part of the sortkey).
- type
- Adds the type that the page has been categorised as (page, subcat or file).
- timestamp
- Adds the timestamp of when the page was included.
- Values (separate with | or alternative): ids, sortkey, sortkeyprefix, timestamp, title, type
- Privzeto: ids|title
- cmnamespace
Only include pages in these namespaces. Note that cmtype=subcat or cmtype=file may be used instead of cmnamespace=14 or 6.
- Values (separate with | or alternative): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 828, 829
- To specify all values, use *.
- cmtype
Which type of category members to include. Ignored when cmsort=timestamp is set.
- Values (separate with | or alternative): file, page, subcat
- Privzeto: page|subcat|file
- cmcontinue
Ko bo na voljo več rezultatov, uporabite to za nadaljevanje. Podrobnejše informacije o nadaljevanju poizvedb lahko najdete na mediawiki.org.
- cmlimit
The maximum number of pages to return.
- Type: integer or max
- Vrednost mora biti med 1 in 500.
- Privzeto: 10
- cmsort
Lastnost za razvrščanje.
- One of the following values: sortkey, timestamp
- Privzeto: sortkey
- cmdir
In which direction to sort.
- One of the following values: asc, ascending, desc, descending, newer, older
- Privzeto: ascending
- cmstart
Timestamp to start listing from. Can only be used with cmsort=timestamp.
- Type: timestamp (allowed formats)
- cmend
Timestamp to end listing at. Can only be used with cmsort=timestamp.
- Type: timestamp (allowed formats)
- cmstarthexsortkey
Sortkey to start listing from, as returned by cmprop=sortkey. Can only be used with cmsort=sortkey.
- cmendhexsortkey
Sortkey to end listing at, as returned by cmprop=sortkey. Can only be used with cmsort=sortkey.
- cmstartsortkeyprefix
Sortkey prefix to start listing from. Can only be used with cmsort=sortkey. Overrides cmstarthexsortkey.
- cmendsortkeyprefix
Sortkey prefix to end listing before (not at; if this value occurs it will not be included!). Can only be used with cmsort=sortkey. Overrides cmendhexsortkey.
- cmstartsortkey
- Opuščeno.
Use cmstarthexsortkey instead.
- cmendsortkey
- Opuščeno.
Use cmendhexsortkey instead.
- Get first 10 pages in Category:Physics.
- api.php?action=query&list=categorymembers&cmtitle=Category:Physics [open in sandbox]
- Get page info about first 10 pages in Category:Physics.
- api.php?action=query&generator=categorymembers&gcmtitle=Category:Physics&prop=info [open in sandbox]