Skip to content

Instantly share code, notes, and snippets.

@filbertkm

filbertkm/sites.xml Secret

Last active Oct 5, 2016
Embed
What would you like to do?
Site export
<sites version="1.0" xmlns="http://www.mediawiki.org/xml/sitelist-1.0/">
<site type="mediawiki">
<globalid>enwiki</globalid>
<group>wikipedia</group>
<path type="file_path">https://en.wikipedia.org/w/$1</path>
<path type="page_path">https://en.wikipedia.org/wiki/$1</path>
<localid type="equivalent">en</localid>
<localid type="interwiki">en</localid>
</site>
</sites>
@filbertkm

This comment has been minimized.

Copy link
Owner Author

@filbertkm filbertkm commented Dec 15, 2015

$wgWBRepoSettings['siteLinkGroups'] = array(
'mywiki'
);

@brightbyte

This comment has been minimized.

Copy link

@brightbyte brightbyte commented Mar 8, 2016

To import, use maintenance/importSites.php (in MW core, not Wikibase).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.