MediaWiki API ヘルプ

このページは自動生成された MediaWiki API の説明文書ページです。

説明文書と例: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

meta=filerepoinfo (fri)

(main | query | filerepoinfo)
  • このモジュールは読み取りの権限を必要とします。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

Return meta information about image repositories configured on the wiki.

パラメーター:
friprop

Which repository properties to get (properties available may vary on other wikis).

apiurl
URL to the repository API - helpful for getting image info from the host.
articlepath
Repository wiki's $wgArticlePath or equivalent.
canUpload
Whether files can be uploaded to this repository, e.g. via CORS and shared authentication.
descriptionCacheExpiry
(説明なし)
displayname
The human-readable name of the repository wiki.
favicon
Repository wiki's favicon URL, from $wgFavicon.
fetchDescription
Whether file description pages are fetched from this repository when viewing local file description pages.
initialCapital
Whether file names implicitly start with a capital letter.
local
Whether that repository is the local one or not.
name
The key of the repository - used in e.g. $wgForeignFileRepos and imageinfo return values.
rootUrl
Root URL path for image paths.
scriptDirUrl
Root URL path for the repository wiki's MediaWiki installation.
server
Repository wiki's $wgServer or equivalent.
thumbUrl
Root URL path for thumbnail paths.
url
Public zone URL path.
値 (| または別の文字列で区切る): apiurl、articlepath、canUpload、descriptionCacheExpiry、displayname、favicon、fetchDescription、initialCapital、local、name、rootUrl、scriptDirUrl、server、thumbUrl、url
既定: apiurl|articlepath|canUpload|descriptionCacheExpiry|displayname|favicon|fetchDescription|initialCapital|local|name|rootUrl|scriptDirUrl|server|thumbUrl|url
例:
ファイルリポジトリについての情報を取得します。
api.php?action=query&meta=filerepoinfo&friprop=apiurl|name|displayname [サンドボックスで開く]