Page MenuHomePhabricator

Import pages
Closed, ResolvedPublic


After setup of the wiki, the existing pages at need to be imported. uses PostgreSQL as the backend, so Special:Export/Special:Import is probably the way to go.

Version: unspecified
Severity: enhancement
See Also:



Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 3:01 AM
bzimport set Reference to bz60415.
bzimport added a subscriber: Unknown Object (MLST).
Nemo_bis closed this task as Resolved.EditedJul 20 2015, 12:53 PM
Nemo_bis claimed this task.

Import done, will now have to perform some fixes. I don't plan to keep the category tree, only links for now.

In pywikibot user-fixes:

fixes['toolserver-move'] = {
    'regex': True,
    'msg': {
        '_default':u'Adapt page [[Thread:Project:Current_issues/Toolserver_wiki|imported]] from [[Toolserver]] wiki.',
    'replacements': [
        (r'{{(.)', ur'{{:Toolserver:Template:{{subst:uc:\1}}'),
        (r'\[\[([^|\]]+)\|', ur'[[Toolserver:{{subst:ucfirst:\1}}|'),
        (r'\[\[([^|\]]+)\]\]', ur'[[Toolserver:{{subst:ucfirst:\1}}|\1]]'),
        (r'^', u'{{MovedFromToolserver}}\n'),

Of course this is very simplistic (should exclude {{(..|/|#) etc. etc.) but unbreaks more pages than it breaks.