v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Dwarf Fortress Wiki:Offline wiki

From Dwarf Fortress Wiki
Revision as of 17:36, 6 August 2015 by 196.210.2.185 (talk) (how to get a local df wiki)
Jump to navigation Jump to search

Ok so im mostly just dumping my process here in the hopes that it gets picked up and cleaned/formatted to fit the rest of the wiki

The basic idea is that you aim a script at a mediawiki and have it create a dump of the XML and images in a format thats compatible with the standard MediaWiki import utilities. Once its dumped to file, you import it into a local MediaWiki instance that can be started on-demand.


Step 1: Get a Mediawiki dump

I did this by using the scripts provided by wikiteam. In my case, my command is as follows:

python dumpgenerator.py --api=http://dwarffortresswiki.org/api.php --index=http://dwarffortresswiki.org/index.php --xml --images --curonly --path dfwiki

The arguments are mostly self-explanatory, and there are many, many more. The most useful of which is the --resume option, that will let you restart a stalled/killed/stopped dump operation

Warning: this process may take very, very long. While the --curonly flag will make it skip histories, but the default namespace options mean it will still download ALL pages, including file definitions and talk pages.


Step 2: Get a Mediawiki install going.

I used a very simple XAMPP + mediawiki stack provided by Bitnami


Step 3: Import your pages

I used the maintenance scripts. The special page might work, but i had issues getting the file uploaded due to its size. Best is to use the importDump.php script, but even that took its time.

Step 4: Import your images

I used the MediaWiki importImages.php maintenance script.




Once you have your files imported, you should be able to navigate to http://127.0.0.1/mediawiki/ to get going