« MultipleFileRepos » : différence entre les versions
De Semantic MediaWiki - Sandbox
(add) |
(+ factbox) |
||
(18 versions intermédiaires par le même utilisateur non affichées) | |||
Ligne 1 : | Ligne 1 : | ||
== enwiki == | == Reference == | ||
https://phabricator.wikimedia.org/T190168 | |||
== Configuration == | |||
<syntaxhighlight lang="php"> | |||
## Repositories | |||
# commonswiki | |||
$wgForeignFileRepos[] = [ | |||
'class' => 'ForeignAPIRepo', | |||
'name' => 'commonswiki', | |||
'apibase' => 'https://commons.wikimedia.org/w/api.php', | |||
'url' => 'https://upload.wikimedia.org/wikipedia/commons', | |||
'thumbUrl' => 'https://upload.wikimedia.org/wikipedia/commons/thumb', | |||
'hashLevels' => 2, | |||
'transformVia404' => true, | |||
'fetchDescription' => true, | |||
'descriptionCacheExpiry' => 43200 | |||
]; | |||
# enwiki | |||
$wgForeignFileRepos[] = [ | |||
'class' => 'ForeignAPIRepo', | |||
'name' => 'enwiki', | |||
'apibase' => 'https://en.wikipedia.org/w/api.php', | |||
'url' => 'https://upload.wikimedia.org/wikipedia/en', | |||
'thumbUrl' => 'https://upload.wikimedia.org/wikipedia/en/thumb', | |||
'hashLevels' => 2, | |||
'transformVia404' => true, | |||
'fetchDescription' => true, | |||
'descriptionCacheExpiry' => 43200 | |||
]; | |||
# frwiki | |||
$wgForeignFileRepos[] = [ | |||
'class' => 'ForeignAPIRepo', | |||
'name' => 'frwiki', | |||
'apibase' => 'https://fr.wikipedia.org/w/api.php', | |||
'url' => 'https://upload.wikimedia.org/wikipedia/fr', | |||
'thumbUrl' => 'https://upload.wikimedia.org/wikipedia/fr/thumb', | |||
'hashLevels' => 2, | |||
'transformVia404' => true, | |||
'fetchDescription' => true, | |||
'descriptionCacheExpiry' => 43200 | |||
]; | |||
# wwwsmworgwiki | |||
$wgForeignFileRepos[] = [ | |||
'class' => 'ForeignAPIRepo', | |||
'name' => 'wwwsmworgwiki', | |||
'apibase' => 'https://www.semantic-mediawiki.org/w/api.php', | |||
'url' => 'https://www.semantic-mediawiki.org/w/images', | |||
'thumbUrl' => 'https://www.semantic-mediawiki.org/w/images/thumb', | |||
'hashLevels' => 2, | |||
'transformVia404' => true, | |||
'fetchDescription' => true, | |||
'descriptionCacheExpiry' => 43200 | |||
]; | |||
</syntaxhighlight> | |||
== Results == | |||
=== commonswiki === | |||
[[:Fichier:Mallnitz Seebachtal Wasserfälle 02.jpg]] | |||
[[Fichier:Mallnitz Seebachtal Wasserfälle 02.jpg|350px|Wasserfälle im Seebachtal bei Mallnitz]] | |||
=== enwiki === | |||
[[:Fichier:The Pursuit of Happiness I'm An Adult Now.jpg]] | [[:Fichier:The Pursuit of Happiness I'm An Adult Now.jpg]] | ||
[[Fichier:The Pursuit of Happiness I'm An Adult Now.jpg|350px|The Pursuit of Happiness - I'm An Adult Now]] | [[Fichier:The Pursuit of Happiness I'm An Adult Now.jpg|350px|The Pursuit of Happiness - I'm An Adult Now]] | ||
== frwiki == | === frwiki === | ||
[[:Fichier:Porte Liadski.jpg]] | [[:Fichier:Porte Liadski.jpg]] | ||
[[Fichier:Porte Liadski.jpg|350px|Porte Liadski]] | [[Fichier:Porte Liadski.jpg|350px|Porte Liadski]] | ||
=== wwwsmworgwiki === | |||
[[:Fichier:B Sirius.jpg]] | |||
[[Fichier:B Sirius.jpg|350px|Are you serious? B Sirius!]] | |||
=== localwiki === | |||
[[:Fichier:Client-brief client-budget.jpg]] | |||
[[Fichier:Client-brief client-budget.jpg|350px|Client brief vs client budget]] | |||
__SHOWFACTBOX__ | |||
[[Category:Examples]] |
Dernière version du 13 janvier 2020 à 00:19
Reference
https://phabricator.wikimedia.org/T190168
Configuration
## Repositories
# commonswiki
$wgForeignFileRepos[] = [
'class' => 'ForeignAPIRepo',
'name' => 'commonswiki',
'apibase' => 'https://commons.wikimedia.org/w/api.php',
'url' => 'https://upload.wikimedia.org/wikipedia/commons',
'thumbUrl' => 'https://upload.wikimedia.org/wikipedia/commons/thumb',
'hashLevels' => 2,
'transformVia404' => true,
'fetchDescription' => true,
'descriptionCacheExpiry' => 43200
];
# enwiki
$wgForeignFileRepos[] = [
'class' => 'ForeignAPIRepo',
'name' => 'enwiki',
'apibase' => 'https://en.wikipedia.org/w/api.php',
'url' => 'https://upload.wikimedia.org/wikipedia/en',
'thumbUrl' => 'https://upload.wikimedia.org/wikipedia/en/thumb',
'hashLevels' => 2,
'transformVia404' => true,
'fetchDescription' => true,
'descriptionCacheExpiry' => 43200
];
# frwiki
$wgForeignFileRepos[] = [
'class' => 'ForeignAPIRepo',
'name' => 'frwiki',
'apibase' => 'https://fr.wikipedia.org/w/api.php',
'url' => 'https://upload.wikimedia.org/wikipedia/fr',
'thumbUrl' => 'https://upload.wikimedia.org/wikipedia/fr/thumb',
'hashLevels' => 2,
'transformVia404' => true,
'fetchDescription' => true,
'descriptionCacheExpiry' => 43200
];
# wwwsmworgwiki
$wgForeignFileRepos[] = [
'class' => 'ForeignAPIRepo',
'name' => 'wwwsmworgwiki',
'apibase' => 'https://www.semantic-mediawiki.org/w/api.php',
'url' => 'https://www.semantic-mediawiki.org/w/images',
'thumbUrl' => 'https://www.semantic-mediawiki.org/w/images/thumb',
'hashLevels' => 2,
'transformVia404' => true,
'fetchDescription' => true,
'descriptionCacheExpiry' => 43200
];
Results
commonswiki
Fichier:Mallnitz Seebachtal Wasserfälle 02.jpg
enwiki
Fichier:The Pursuit of Happiness I'm An Adult Now.jpg
frwiki
wwwsmworgwiki
localwiki
... davantage au sujet de « MultipleFileRepos »
Mime type
Date de modification
Est local