Pomoc MediaWiki API

To jest automatycznie wygenerowana strona dokumentacji MediaWiki API.

Dokumentacja i przykłady: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_pag

prop=wbentityusage (wbeu)

(main | query | wbentityusage)
  • Ten moduł wymaga praw odczytu.
  • Źródło: WikibaseClient
  • Licencja: GPL-2.0-or-later

Returns all entity IDs used in the given pages.

Parametry:
wbeuprop

Właściwości do dodania do wyniku.

url
Jeżeli włączone, zostanie dodany url do elementu
Wartości (oddziel za pomocą | lub alternatywy): url
wbeuaspect

Zwróć tylko identyfikatory obiektów wykorzystujące ten aspekt.

S
The entity's sitelinks are used
L
The entity's label is used
D
The entity's description is used
T
The title of the local page corresponding to the entity is used
C
Statements from the entity are used
X
All aspects of an entity are or may be used
O
Something else about the entity is used. This currently implies alias usage and explicit checks for entity existence.
Wartości (oddziel za pomocą | lub alternatywy): C, D, L, O, S, T, X
wbeuentities

Zwróć tylko stronę, która wykorzystuje te elementy.

Oddziel wartości za pomocą | lub alternatywy.
Maximum number of values is 50 (500 for clients allowed higher limits).
wbeulimit

Ile zwrócić wykorzystanych obiektów.

Type: integer or max
The value must be between 1 and 500.
Default: 10
wbeucontinue

Gdy będzie dostępnych więcej wyników, użyj tego do kontynuowania.

Przykład:
Uzyskaj obiekty wykorzystane na stronie Main Page.
api.php?action=query&prop=wbentityusage&titles=Main%20Page [otwórz w brudnopisie]