MediaWiki API 說明

此頁為自動產生的 MediaWiki API 說明文件頁面。

說明文件與範例:https://www.mediawiki.org/wiki/API

meta=filerepoinfo <pre>(fri) </pre>

(main | query | filerepoinfo)
  • 此模組需要讀取權限。

Return meta information about image repositories configured on the wiki.

參數:
friprop

Which repository properties to get (there may be more available on some wikis):

apiurl
URL to the repository API - helpful for getting image info from the host.
name
The key of the repository - used in e.g. $wgForeignFileRepos and imageinfo return values.
displayname
The human-readable name of the repository wiki.
rooturl
Root URL for image paths.
local
Whether that repository is the local one or not.
多值 (以 | 分隔):name、displayname、rootUrl、local、url、thumbUrl、initialCapital、scriptDirUrl、scriptExtension、favicon
預設值:name|displayname|rootUrl|local|url|thumbUrl|initialCapital|scriptDirUrl|scriptExtension|favicon
範例:
获得有关文件存储库的信息。
api.php?action=query&meta=filerepoinfo&friprop=apiurl|name|displayname