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

(main | query | links)
  • Questo modulo richiede i diritti di lettura.
  • Questo modulo può essere utilizzato come generatore.
  • Fonte: MediaWiki
  • Licenza: GPL-2.0-or-later

Returns all links from the given pages.

Parametri:
plnamespace

Mostra collegamenti solo in questi namespace.

Valori (separati da | o alternativa): -1, -2, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 100, 101, 102, 103, 274, 275
Per specificare tutti i valori, utilizza *.
pllimit

Quanti collegamenti restituire.

Tipo: intero o max
The value must be between 1 and 500.
Default: 10
plcontinue

Quando più risultati sono disponibili, usa questo per continuare.

pltitles

Only list links to these titles. Useful for checking whether a certain page links to a certain title.

Separa i valori con | o alternativa.
Maximum number of values is 50 (500 for clients that are allowed higher limits).
pldir

La direzione in cui elencare.

Uno dei seguenti valori: ascending, descending
Default: ascending
Esempi:
Get links from the page Main Page
api.php?action=query&prop=links&titles=Main%20Page [apri in una sandbox]
Get information about the link pages in the page Main Page.
api.php?action=query&generator=links&titles=Main%20Page&prop=info [apri in una sandbox]
Get links from the page Main Page in the Utente and Template namespaces.
api.php?action=query&prop=links&titles=Main%20Page&plnamespace=2|10 [apri in una sandbox]