API:Parameter information/pl
From MediaWiki.org
| Ta strona jest częścią dokumentacji MediaWiki API. |
| Język: | English • Deutsch • polski |
|---|
Szybki przegląd:
- Przewodnik dla początkujących
- FAQ
- Tutorial
- Formaty danych
- Raportowanie błędów
- Ograniczenie użycia
- Cross-site requests
- Autoryzacja
- Zapytania
- Podpowiedzi wyszukiwania
- Rozszerzanie szablonów
- Odświeżanie cache
- Informacje o parametrach
- Zmiana zawartości wiki
- Kanały listy obserwowanych
- Wikidata
- Rozszerzenia
- Korzystanie z API w MediaWiki oraz rozszerzeniach
- Różne
- Implementacja
- Kod klienta
| Wersja MediaWiki: | 1.12 |
Pobieranie informacji o parametrach[edit]
Możesz wyświetlić informacje na temat modułów API i ich parametrów poprzez parametr action=paraminfo.
Określ Parametry[edit]
modules: Lista nazw głównych modułów (wartość parametruaction=)querymodules: Lista nazw modułów zapytań (wartości parametrówprop=,meta=lublist=)
Przykład[edit]
Pobieranie informacji na temat parametrów action=parse oraz prop=info
| Result |
|---|
| The following content has been placed in a collapsed box for improved usability. |
<?xml version="1.0" encoding="utf-8"?> <api> <paraminfo> <modules> <module classname="ApiParse" description="This module parses wikitext and returns parser output" prefix="" name="parse"> <parameters> <param name="title" default="API" description="Title of page the text belongs to" /> <param name="text" /> <param name="page" /> <param name="oldid" /> <param name="prop" default="text|langlinks|categories|links|templates|images|externallinks|sections|revid" multi="" limit="500" description="Which pieces of information to get. NOTE: Section tree is only generated if there are more than 4 sections, or if the __TOC__ keyword is present"> <type> <t>text</t> <t>langlinks</t> <t>categories</t> <t>links</t> <t>templates</t> <t>images</t> <t>externallinks</t> <t>sections</t> <t>revid</t> </type> </param> </parameters> </module> </modules> <querymodules> <module classname="ApiQueryInfo" description="Get basic page information such as namespace, title, last touched date, ..." prefix="in" name="info"> <parameters> <param name="prop" multi="" limit="500" description="Which additional properties to get: "protection" - List the protection level of each page "talkid" - The page ID of the talk page for each non-talk page "subjectid" - The page ID of the parent page for each talk page"> <type> <t>protection</t> <t>talkid</t> <t>subjectid</t> </type> </param> <param name="token" multi="" limit="500" description="Request a token to perform a data-modifying action on a page"> <type> <t>edit</t> <t>delete</t> <t>protect</t> <t>move</t> <t>block</t> <t>unblock</t> <t>email</t> </type> </param> </parameters> </module> <module name="blah" missing="" /> </querymodules> </paraminfo> </api> |
| The above content has been placed in a collapsed box for improved usability. |