checkuser, Administrators
2,635
edits
Leucosticte (talk | contribs) |
Zhuyifei1999 (talk | contribs) |
||
Line 393: | Line 393: | ||
:: ''I am unsure of necessity - but I am intrigued by the idea. Please add to [[Upgrades]] and include an example of how it is used. Best, [[MarkDilley]]'' | :: ''I am unsure of necessity - but I am intrigued by the idea. Please add to [[Upgrades]] and include an example of how it is used. Best, [[MarkDilley]]'' | ||
:::If you're going to use it, then I recommend using the English Wikipedia rather than the Wikimedia Commons as your foreign file repo. See http://wiki.mises.org/wiki/Special:ViewFiles for an example of how that's done. [[User:Leucosticte|Leucosticte]] ([[User talk:Leucosticte|talk]]) 12:28, 6 January 2014 (UTC) | :::If you're going to use it, then I recommend using the English Wikipedia rather than the Wikimedia Commons as your foreign file repo. See http://wiki.mises.org/wiki/Special:ViewFiles for an example of how that's done. [[User:Leucosticte|Leucosticte]] ([[User talk:Leucosticte|talk]]) 12:28, 6 January 2014 (UTC) | ||
::::That's this section (should ask [[Emufarmers]]): | |||
<pre>$wgForeignFileRepos[] = array( | |||
'class' => 'ForeignAPIRepo', | |||
'name' => 'shared', | |||
'apibase' => 'http://en.wikipedia.org/w/api.php', | |||
'fetchDescription' => true, // Optional | |||
'descriptionCacheExpiry' => 86400, // 24 hours, optional (values are seconds) | |||
'apiThumbCacheExpiry' => 86400, // 24 hours, optional, but required for local thumb caching | |||
);</pre> | |||
<nowiki>*</nowiki>But,* pro: we can get fair use images from en.wp; con: see [http://wiki.mises.org/wiki/File:Templo_Wat_Arun,_Bangkok,_Tailandia,_2013-08-22,_DD_30.jpg], cannot display files from commons correctly, except for those which are located in en.wp ([http://wiki.mises.org/wiki/File:%27Double_Square_Series_No._6%27,_acrylic_on_cotton_by_Kenneth_Bushnell_(b._1933),_1982,_HMA.JPG]) --[[YiFei]] | <small>[[User talk:Zhuyifei1999|talk]]</small> 13:59, 6 January 2014 (UTC) | |||
== You're Welcome == | == You're Welcome == |