Pomoc MediaWiki API
To jest automatycznie wygenerowana strona dokumentacji MediaWiki API. Dokumentacja i przykłady: https://www.mediawiki.org/wiki/API
prop=images (im)
- Ten moduł wymaga praw odczytu.
- Ten moduł może być użyty jako generator.
Returns all files contained on the given pages.
Parametry:
- imlimit
How many files to return.
- Nie więcej niż 500 (5000 dla botów) dozwolone.
- Domyślnie: 10
- imcontinue
When more results are available, use this to continue.
- imimages
Only list these files. Useful for checking whether a certain page has a certain file.
- Oddziel wartości za pomocą |. Maksymalna ilość wartości to 50 (500 dla botów).
- imdir
The direction in which to list.
- Jedna wartość: ascending, descending
- Domyślnie: ascending
Przykłady:
- Get a list of files used in the Main Page.
- api.php?action=query&prop=images&titles=Main%20Page
- Get information about all files used in the Main Page.
- api.php?action=query&generator=images&titles=Main%20Page&prop=info