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=description (desc)
- This module is internal or unstable, and you should not use it. Its operation may change without notice.
- This module requires read rights.
- Font : WikibaseClient
- Licéncia : GPL-2.0-or-later
Get a short description a.k.a. subtitle explaining what the target page is about.
La descripció és text pla, en una sola línia, però altrament arbitrària (potencialment inclou etiquetes d'HTML crues, que també poden interpretar-se com a text pla). No s'ha d'utilitzar amb HTML no escapat.
Paramètres :
Other general parameters are available.
- desccontinue
When more results are available, use this to continue. More detailed information on how to continue queries can be found on mediawiki.org.
- Tipus: enter
- Per defecte: 0
- descprefersource
Which description source to prefer if present:
- local
- Local descriptions via
{{SHORTDESC:...}}
parser function in the wikitext of the page. - central
- Central descriptions from the associated Wikidata item.
- One of the following values: central, local
- Per defecte: local
Examples:
- Aconsegueix la descripció de la pàgina 'Londres'.
- api.php?action=query&prop=description&titles=London [open in sandbox]
- Get the description for the page 'London', preferring the central description if it exists.
- api.php?action=query&prop=description&titles=London&descprefersource=central [open in sandbox]