API:Listy
Appearance
Outdated translations are marked like this.
| Ta strona jest częścią dokumentacji API akcji MediaWiki. |
GET request to list items that match select criteria.
Dokumentacja API
Lists generally return aggregations of data, such as pages gathered from across a wiki, or links gathered within a single page. To request a list, pass the list parameter of your query string a valid list submodule, such as allimages or usercontribs.
To use the list API, specify action=query&list=list1|list2 in the URL.
See individual list API pages for more concrete examples of how to use lists:
- allcategories
- alldeletedrevisions
- allfileusages
- allimages
- alllinks
- allpages
- allredirects
- allrevisions
- alltransclusions
- allusers
- backlinks
- blocks
- categorymembers
- deletedrevs
- embeddedin
- exturlusage
- filearchive
- imageusage
- iwbacklinks
- langbacklinks
- logevents
- pagepropnames
- pageswithprop
- prefixsearch
- protectedtitles
- querypage
- random
- recentchanges
- search
- tags
- usercontribs
- users
- watchlist
- watchlistraw
Dodatkowe informacje
- Most list submodules can be used as generators, unless otherwise noted.
- Listy różnią się od properties tym, że zamiast dołączania do elementów w elemencie
pages, każda lista ma swoją własną odseparowaną gałąź w elemenciequery.
- List query limits:
- Limit jednorazowo pobranych wyników może być ustawiony do $500 przez zwykłych użytkowników lub do $5000 dla użytkowników z uprawnieniem
apihighlimits(zazwyczaj boty i administratorzy). - Niektóre moduły narzucają surowsze limity w niektórych warunkach. See this subpage for more details.
- Jeżeli nie jesteś pewien, jaki limit możesz wykorzystać i chcesz uzyskać tak dużo wyników jak to możliwe, ustaw wartość limitu na
max. In that case, alimitselement will be returned, specifying the limits used. - The limit parameter for a given module consists of the module prefix followed by
limit, soptlimitis the maximum number ofprotectedtitlesreturned, andcmlimitis the maximum number ofcategorymembersreturned.
- Limit jednorazowo pobranych wyników może być ustawiony do $500 przez zwykłych użytkowników lub do $5000 dla użytkowników z uprawnieniem
Zobacz też
- Zarządzany przez MediaWiki Interfaces Team.
- Czat na żywo (IRC): #mediawiki-core connect
- Zgłaszanie błędów: Phabricator - MediaWiki-Action-API (Zgłoś problem)