Manual:$wgSharedUploadPath

From MediaWiki.org
Jump to: navigation, search
This page is a translated version of the page Manual:$wgSharedUploadPath and the translation is 29% complete.

Other languages:
Deutsch • ‎English • ‎فارسی • ‎日本語 • ‎polski
Shared uploads: $wgSharedUploadPath
Full path to the web server where shared uploads can be found.
導入されたバージョン: 1.3.8
除去されたバージョン: 使用中
可能な値: URL
既定値: "http://commons.wikimedia.org/shared/images"
"http://commons.mywiki.org/shared/images" 1.4.0 より前
他の設定: アルファベット順 | 機能順

詳細[edit]

Full path on the web server where shared uploads can be found.

If you operate multiple wikis, you can define a shared upload path using $wgSharedUploadPath. If $wgUseSharedUploadsManual:$wgUseSharedUploads is set, the wiki will look in the shared repository if no file of the given name is found in the local repository (for [[Image:..]], [[Media:..]] links).

Thumbnails will also be looked for and generated in this directory.

Uploads to the wiki will NOT be put there - they will be put into $wgUploadDirectoryManual:$wgUploadDirectory.

Thumbnails of shared images[edit]

For resizing images in mediawiki they need to have a row in image table of database containing dimensions and other information of image so you can't resize images haven't been uploaded by mediawiki software and for importing them to database without using mediawiki interface, you'll need to use some maintenance scripts. (maintenance/importimages.php)

If those images have been uploaded in another mediawiki, you can set $wgSharedUploadDBnameManual:$wgSharedUploadDBname to solve the problem.

関連項目[edit]