API:Filerepoinfo

From MediaWiki.org
Jump to navigation Jump to search
Other languages:
English • ‎dansk • ‎español • ‎français • ‎polski • ‎русский • ‎فارسی • ‎ไทย • ‎中文 • ‎日本語 • ‎한국어

Return meta information about image repositories configured on the wiki.

Parameters[edit]

  • friprop: Which repository properties to get. Possible values: name, displayname, rootUrl, and local will be present for all repositories. apiurl should be present for all foreign API repositories (e.g., InstantCommons). All other values are optional. For a comprehensive listing, see $wgForeignFileRepos . Repositories can also define their own custom properties, which can be seen via the api help (Default: All available values.)
    • 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.
    • apiurl: URL to the repository API - helpful for getting image info from the host. (missing in MW 1.25)

Example[edit]

Possible errors[edit]

Unknown.



meta=filerepoinfo (fri)

(main | query | filerepoinfo)

Return meta information about image repositories configured on the wiki.

Parameter:
friprop

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

canUpload
Whether files can be uploaded to this repository, e.g. via CORS and shared authentication.
descBaseUrl
(no description)
descriptionCacheExpiry
(no description)
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.
thumbUrl
Root URL path for thumbnail paths.
url
Public zone URL path.
Values (separate with | or alternative): canUpload, descBaseUrl, descriptionCacheExpiry, displayname, favicon, fetchDescription, initialCapital, local, name, rootUrl, scriptDirUrl, thumbUrl, url
Default: canUpload|descBaseUrl|descriptionCacheExpiry|displayname|favicon|fetchDescription|initialCapital|local|name|rootUrl|scriptDirUrl|thumbUrl|url