API:Filerepoinfo

From MediaWiki.org
Jump to: navigation, search

Other languages:
Deutsch • ‎English • ‎español • ‎فارسی • ‎Հայերեն • ‎日本語 • ‎русский • ‎sicilianu

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. All other values are optional. 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. $wgForeignFileReposManual:$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)
    • url
    • thumbUrl
    • initialCapital
    • descBaseUrl
    • scriptDirUrl
    • articleUrl
    • fetchDescription
    • descriptionCacheExpiry
    • scriptExtension
    • favicon

Example[edit]

Possible errors[edit]

Unknown.




meta=filerepoinfo (fri)

(main | query | filerepoinfo)
  • This module requires read rights.
  • Source: MediaWiki
  • License: GPL-2.0+

Return meta information about image repositories configured on the wiki.

Parameter:
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.
Values (separate with | or alternative): name, displayname, rootUrl, local, url, thumbUrl, initialCapital, descBaseUrl, scriptDirUrl, fetchDescription, descriptionCacheExpiry, favicon, canUpload
Default: name|displayname|rootUrl|local|url|thumbUrl|initialCapital|descBaseUrl|scriptDirUrl|fetchDescription|descriptionCacheExpiry|favicon|canUpload