Incubator:Importing from Incubator
From Wikimedia Incubator
What to do when a subdomain was created:
- Do not copy pages from the test at Incubator to the new site. This is illegal. These pages must be imported from Incubator. Ask a steward to do this or do it yourself or ask someone else who knows how to do it. For doing this, you need to be member of the "import" group (on the new site) which members are able to import pages from XML files using Special:Import. See below how to do this.
See also some discussions about that: Incubator:Community Portal#What happens when a new site is created? and en:Wikipedia talk:Tambayan Philippines#Good news (despite the great Tagalog/Filipino debate).
[edit] How to import
- Get your data (note: it is not needed to register)
- The normal MediaWiki way
- Go on Incubator (this wiki) to Special:Prefixindex
- Copy the page names of all pages of your test (namespaces Main, Talk, Template, Template talk, Category, Category talk) into the field at Special:Export.
- Put all page names on separate lines.
- The API way
- Go to http://incubator.wikimedia.org/w/api.php and get the appropriate parameters
- Copy the lists to a text program which supports utf-8 and regular expressions, then remove the unneeded parts.
- Copy the lists (namespaces Main, Talk, Template, Template talk, Category, Category talk) into the field at Special:Export.
- Another way: Use this tool and remove the numbers in front of the pages names and copy the list to Special:Export. Remember the Toolserver replication lag!
- The normal MediaWiki way
- Uncheck "Include only the current revision, not the full history".
- Click on "export".
- Save that file on your computer. (be sure that it supports utf-8)
- Edit the file: remove prefixes etc. (e.g. replace "Project/isocode/" with "" to remove prefixes), the easiest way is with regular expressions.
- Register on the destination wiki.
- Request on m:RFP for temporary import and sysop access (sysop access is not needed, but is useful). It is a good idea to join the #wikimedia-stewards IRC channel.
- Go on the new wiki to Special:Import. Search your computer for the XML file, then upload it.
- Add a notice on the Administrators' noticeboard that the test can be deleted.
- Don't forget to ask on m:RFP for removing your access.
- You have finished!

