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=description (desc)

(main | query | description)
  • Ten moduł jest wewnętrzny lub niestabilny. Jego działanie może się zmienić bez uprzedzenia.
  • Ten moduł wymaga praw odczytu.
  • Źródło: WikibaseClient
  • Licencja: GPL-2.0-or-later

Get a short description a.k.a. subtitle explaining what the target page is about.

The description is plain text, on a single line, but otherwise arbitrary (potentially including raw HTML tags, which also should be interpreted as plain text). It must not be used in HTML unescaped!

Parametry:
desccontinue

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

Type: integer
Default: 0
descprefersource

Które źródło opisu preferować, jeśli występuje:

local
Local descriptions via {{SHORTDESC:...}} parser function in the wikitext of the page.
central
Central descriptions from the associated Wedateka, archiwa item.
Jedna z następujących wartości: central, local
Default: local
Przykłady:
Get the description for the page 'London'.
api.php?action=query&prop=description&titles=London [otwórz w brudnopisie]
Get the description for the page 'London', preferring the central description if it exists.
api.php?action=query&prop=description&titles=London&descprefersource=central [otwórz w brudnopisie]