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
list=allfileusages (af)
- Denna modul kräver läsrättigheter.
- Denna modul kan användas som en generator.
- Source: MediaWiki
- License: GPL-2.0-or-later
Lista all fil användningsområden, inklusive icke-existerande.
Parametrar:
Other general parameters are available.
- afcontinue
When more results are available, use this to continue. More detailed information on how to continue queries can be found on mediawiki.org.
- affrom
The title of the file to start enumerating from.
- afto
The title of the file to stop enumerating at.
- afprefix
Sök för all fil-titlar som börjar med detta värde.
- afunique
Only show distinct file titles. Cannot be used with afprop=ids. When used as a generator, yields target pages instead of source pages.
- Type: boolean (details)
- afprop
Which pieces of information to include:
- ids
- Adds the page IDs of the using pages (cannot be used with afunique).
- title
- Lägger till filens titel.
- Värden (separerade med | eller alternativ): ids, title
- Default: title
- aflimit
Hur många saker att returnera totalt.
- Type: integer or max
- The value must be between 1 and 500.
- Default: 10
- afdir
Riktningen att lista mot.
- Ett av följande värden: ascending, descending
- Default: ascending
Examples:
- List file titles, including missing ones, with page IDs they are from, starting at B.
- api.php?action=query&list=allfileusages&affrom=B&afprop=ids|title [open in sandbox]
- Lista unika filtitlar
- api.php?action=query&list=allfileusages&afunique=&affrom=B [open in sandbox]
- Hämtar alla fil titlar, markerar dem saknade.
- api.php?action=query&generator=allfileusages&gafunique=&gaffrom=B [open in sandbox]
- Hämtar sidor som innehåller filerna.
- api.php?action=query&generator=allfileusages&gaffrom=B [open in sandbox]