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=images (im)
- Ten moduł wymaga praw odczytu.
- Ten moduł może być użyty jako generator.
- Źródło: MediaWiki
- Licencja: GPL-2.0-or-later
Zwraca wszystkie pliki zawarte na podanych stronach.
Parametry:
- imlimit
Liczba plików do zwrócenia.
- Type: integer or max
- The value must be between 1 and 500.
- Default: 10
- imcontinue
Gdy będzie dostępnych więcej wyników, użyj tego do kontynuowania.
- imimages
Only list these files. Useful for checking whether a certain page has a certain file.
- Oddziel wartości za pomocą | lub alternatywy.
- Maximum number of values is 50 (500 for clients allowed higher limits).
- imdir
The direction in which to list.
- Jedna z następujących wartości: ascending, descending
- Default: ascending
Przykłady:
- Get a list of files used in the Main Page.
- api.php?action=query&prop=images&titles=Main%20Page [otwórz w brudnopisie]
- Get information about all files used in the Main Page.
- api.php?action=query&generator=images&titles=Main%20Page&prop=info [otwórz w brudnopisie]