MediaWiki API ヘルプ
このページは自動生成された MediaWiki API の説明文書ページです。
説明文書と例: https://www.mediawiki.org/wiki/API
list=allfileusages (af)
- このモジュールは読み取りの権限を必要とします。
 - このモジュールはジェネレーターとして使用できます。
 - Source: MediaWiki
 - License: GPL-2.0-or-later
 
存在しないものを含め、すべてのファイルの使用状況を一覧表示する。
パラメーター:
- afcontinue
 When more results are available, use this to continue.
- affrom
 列挙を開始するファイルのページ名。
- afto
 列挙を終了するファイルのページ名。
- afprefix
 この値で始まるページ名のすべてのファイルを検索する。
- 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
 どの情報を結果に含めるか:
- ids
 - 使用しているページのページIDを追加します (afunique とは同時に使用できません)。
 - title
 - ファイルのページ名を追加します。
 
- 値 (|もしくは別の文字列で区切る): ids、title
 - 既定値: title
 - aflimit
 返す項目の総数。
- No more than 500 (5,000 for bots) allowed.
 - Type: integer or max
 - 既定値: 10
 - afdir
 一覧表示する方向。
- 値 (次の値のいずれか1つ): ascending、descending
 - 既定値: ascending
 
例:
- 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 [サンドボックスで開く]
 - ユニークなファイルを一覧表示する。
 - api.php?action=query&list=allfileusages&afunique=&affrom=B [サンドボックスで開く]
 - ファイル名を、存在しないものに印をつけて、すべて取得する。
 - api.php?action=query&generator=allfileusages&gafunique=&gaffrom=B [サンドボックスで開く]
 - ファイルを含むページを取得します。
 - api.php?action=query&generator=allfileusages&gaffrom=B [サンドボックスで開く]