Jump to content

Topic on Extension talk:JsonConfig

Setting up commons as the data repo for an external wiki

5
Bawolff (talkcontribs)

It would be really cool if the examples could document how to setup commons as the data storage wiki, when using this as a third party.

There's been lots of questions related to that lately as more and more lua modules store their i18n on commons, and people try and copy those lua modules.

Kjvowen (talkcontribs)

The configuration settings for accessing ".tab" files on commons is here: Extension:JsonConfig/Tabular#Configuration

The same thing works for Map data:

$wgJsonConfigModels['Map.JsonConfig'] = 'JsonConfig\JCMapDataContent';
$wgJsonConfigs['Map.JsonConfig'] = [
'namespace' => 486,
'nsName' => 'Data',
// page name must end in ".map", and contain at least one symbol 'pattern' => '/.\.map$/',
'isLocal' => false,
];

$wgJsonConfigs['Map.JsonConfig']['remote'] = ['url' => 'https://commons.wikimedia.org/w/api.php'];
Alexis Jazz (talkcontribs)
Bawolff (talkcontribs)

honestly, i think its kind of weird that commons became the central repo for template translations, and i have some reservations sbout the design of the tabular data system in general, but well, here we are, guess its too late now

Sophivorus (talkcontribs)

I tried the above config and many variations and the errors persist. If I interpret correctly then, it's currently not possible for a third-party wiki to reuse the Data namespace at Commons?

Reply to "Setting up commons as the data repo for an external wiki"