Sandbox

InfoDabble > Sandbox
Jump to: navigation, search

Manual:Wiki family leads you through the installation and configuration of a small wiki-family.

  • Puts images in a shared pool for all members of the family?

[edit] Upload

Make sure that folder "images" of the pool-wiki is writable.

It is useful to change the "Upload file"-Link of the language-wikis to point to poolwiki's upload-site. Open the "LocalSettings.php" of each language-wiki and add:

$wgUploadNavigationUrl = "http://pool.yourwiki.org/index.php/Special:Upload";

[edit] Use shared files

To use poolwiki's files in the languagewikis, open "LocalSettings.php" for each languagewiki and add:

$wgUseSharedUploads = true;
$wgSharedUploadPath = 'http://pool.yourwiki.org/images';
$wgSharedUploadDirectory = '/(LOCALPATH)/POOL-FOLDER/images/';
$wgHashedSharedUploadDirectory = true;

Now you can integrate pool's files with (e.g.) [[Image:MyLogo.png]] in the languagewikis.

[edit] Wiki Family Settings

These are settings that you want to apply to the entire wiki family. For example, maybe you want to be able to easily put all the wikis into read-only mode at the same time. You can also store the username/password for the database(s), if they are all the same. Additionally, you could control user permissions across your entire wiki from this one file.

Note: If you use a Images/Media commons or pool, we recommend that you not put these settings in the WikiFamilySettings.php file. That information only applies to every wiki in your wiki family other than your repository. We recommend putting it in a separate file.

Template:Languages

What I want is to use the local wiki's images if they exist, or images from a pooled wiki if not (same mechanism as wiki commons).


Global settings for shared media
Variable Default Description
$wgUseSharedUploads false If you operate multiple wikis, you can define a shared upload path here. Uploads to this wiki will NOT be put there - they will be put into $wgUploadDirectory. If $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.
$wgSharedUploadPath "http://commons.wikimedia.org/shared/images" Full path on the web server where shared uploads can be found
$wgFetchCommonsDescriptions false Whether to fetch commons image description pages and display them on the local wiki. This variable is used when you want to integrate the media-description, stored in a commonswiki, into your wikiproject. If setting this to true, you also need to set a suitable value for $wgRepositoryBaseUrl.
$wgSharedUploadDirectory "/var/www/wiki3/images" Path on the file system where shared uploads can be found.
$wgSharedUploadDBname false DB name with metadata about shared directory. Set this to false if the uploads do not come from a wiki.
$wgSharedUploadDBprefix Optional table prefix used in database.
$wgCacheSharedUploads true Cache shared metadata in memcached. Don't do this if the commons wiki is in a different memcached domain
$wgAllowCopyUploads false Allow for upload to be copied from an URL. Requires Special:Upload?source=web
$wgUploadNavigationUrl false Point the upload navigation link to an external URL. Useful if you want to use a shared repository by default without disabling local uploads (use $wgEnableUploads = false for that) e.g. $wgUploadNavigationUrl = 'http://commons.wikimedia.org/wiki/Special:Upload';
$wgRepositoryBaseUrl "http://commons.wikimedia.org/wiki/Image:" Base URL for a repository wiki. Leave this blank if uploads are just stored in a shared directory and not meant to be accessible through a separate wiki. Otherwise the image description pages on the local wiki will link to the image description page on this wiki. Please specify the namespace, as in the default example.
{{#includespecialpage:Statistics}}
{{#includespecialpage:Version}}
{{#includespecialpage:Statistics}}