Incubator:Importing from Incubator/ru

From Wikimedia Incubator
Jump to navigation Jump to search

Что делать, когда поддомен создан?

Не копируйте страницы с тестового раздела в Инкубаторе на новый сайт. Это запрещено; страницы должны быть импортированы. Для этого вы должны быть членом пользовательской группы импортирующих (их список).

Важно, что редактирование уже существующих разделов в Инкубаторе технически невозможно, поэтому старайтесь не утрачивать ни одну из страниц или правок во время переноса на поддомен.

Как импортировать[edit source]

  1. Get your data (note: it is not yet needed to register) - there are different possibilities:
    • The normal MediaWiki way
      1. Go on Incubator (this wiki) to Special:Prefixindex
      2. 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.
      3. Put all page names on separate lines (also possible in a text editor by replacing tabs with newlines).
    • The API way
      1. Go to and get the appropriate parameters
      2. Copy the lists to a text program which supports utf-8 and regular expressions, then remove the unneeded parts.
      3. Copy the lists (namespaces Main, Talk, Template, Template talk, Category, Category talk) into the field at Special:Export.
    • You can 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!
  2. Uncheck "Include only the current revision, not the full history" (IMPORTANT because we need the history)
  3. Click on "export".
  4. Save that file on your computer. (be sure that it supports utf-8)
  5. Edit the file: remove prefixes etc. (e.g. replace "Project/isocode/" and "{{#titleparts: {{PAGENAME}} | 2 }}" with "" to remove prefixes), the easiest way is with regular expressions. (This means removing the prefixes from page titles, links, template transclusions and categories from every revision of the page! Failure in doing so would result in serious issues that would need the developers to help!)
  6. Make sure you are registered on the destination wiki.
  7. Go on the new wiki to Special:Import. Search your computer for the XML file, then upload it. Wait, and when it gives an error, just hit your browser's "back" button, click again on "upload" and wait again. Repeat this until it gives a message you are finished.
  8. Be sure the main page is the correct one, and click a few times on Special:Random to check there are no clear errors. Maybe leave a note that they can contact you when something is missing.
  9. You can update Incubator:Site creation log.
  10. You can perhaps notify contributors to the test of the new subdomain.
  11. Wait a few hours or days, to make sure there are no missing pages or other problems. If not:

См. также[edit source]