MediaWiki API 說明
此頁為自動產生的 MediaWiki API 說明文件頁面。
說明文件與範例:https://www.mediawiki.org/wiki/API
list=allfileusages (af)
- 此模組需要讀取權限。
- 此模組可作為產生器使用。
- 來源:MediaWiki
- 協定:GPL-2.0-or-later
列出所有檔案用途,包含不存在的。
參數:
- afcontinue
當有更多結果可用時,使用這個繼續。
- affrom
要起始列舉的檔案標題。
- afto
要終止列舉的檔案標題。
- afprefix
搜尋以此值為開頭的所有檔案標題。
- afunique
只显示明显的文件标题。不能与afprop=ids一起使用。 当作为生成器使用时,产生目标页面而不是来源页面。
- 類型:布林值(詳細資訊)
- afprop
要包含到的資訊部份:
- ids
- 添加使用中頁面的頁面 ID(不能與 afunique 一起使用)。
- title
- 添加檔案標題。
- 多值 (以 | 或 alternative 分隔):ids、title
- 預設值:title
- aflimit
要回傳的項目總數。
- 不允許超過 500 (機器人為 5,000)。
- 類型:整數或max
- 預設值:10
- afdir
列出時所採用的方向。
- 單值:ascending、descending
- 預設值:ascending
範例:
- 列出檔案標題,包含頁面 ID 以 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 [在沙盒中開啟]