MediaWiki API 帮助

这是自动生成的MediaWiki API文档页面。

文档和例子:-{R|https://www.mediawiki.org/wiki/API:Main_page/zh}-

meta=filerepoinfo (fri)

main | query | filerepoinfo
  • 此模块需要读取权限。
  • 来源:MediaWiki
  • 许可协议:GPL-2.0+

返回有关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、descBaseUrl、fetchDescription、scriptDirUrl、scriptExtension、favicon、canUpload
默认:name|displayname|rootUrl|local|url|thumbUrl|initialCapital|descBaseUrl|fetchDescription|scriptDirUrl|scriptExtension|favicon|canUpload
例子:
获得有关文件存储库的信息。
api.php?action=query&meta=filerepoinfo&friprop=apiurl|name|displayname