Помоћ око Медијавикијевог API-ја

Ово је аутоматски генерисана документација за Медијавики API

Документација и примери: -{R|https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page}-

meta=filerepoinfo (fri)

(main | query | filerepoinfo)
  • This module requires read rights.
  • Извор: MediaWiki
  • Лиценца: GPL-2.0-or-later

Return meta information about image repositories configured on the wiki.

Специфични параметри:
Other general parameters are available.
friprop

Која својства репозитара узети (доступна својства могу да варирају на другим викијима).

articleUrl
(no description)
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): articleUrl, canUpload, descBaseUrl, descriptionCacheExpiry, displayname, favicon, fetchDescription, initialCapital, local, name, rootUrl, scriptDirUrl, thumbUrl, url
Default: articleUrl|canUpload|descBaseUrl|descriptionCacheExpiry|displayname|favicon|fetchDescription|initialCapital|local|name|rootUrl|scriptDirUrl|thumbUrl|url
Пример:
Get information about file repositories.
api.php?action=query&meta=filerepoinfo&friprop=name|displayname [open in sandbox]