Справка:Перемещение (переименовывание) страниц

From mediawiki.org
This page is a translated version of the page Help:Moving a page and the translation is 70% complete.
Outdated translations are marked like this.
PD Примечание: Редактируя эту страницу, вы соглашаетесь на передачу своего вклада по лицензии CC0.
Подробнее — в проекте Помощь с общественным достоянием.
PD

Под перемещением (переименованием) страницы понимается изменения её заголовка. Для этого используется вкладка «Ещё» с действием «переименовать» в верхней части страницы. Эта вкладка не видна, если вы не авторизованы. Просто введите новое название страницы и нажмите кнопку «Переименовать страницу». Параметр «Переименовать соответствующую страницу обсуждения», как правило, оставляют отмеченным.

Если вы перемещаете страницу «А» в новое название «Б», то результатом этой операции станет:

  • Переименование заголовка страницы с «А» на «Б»
  • Перенос также и всей истории правок от страницы «А» к странице «Б».
  • Замена содержания страницы «А» перенаправлением на «Б»

Важное значение имеет следующий момент. Используя функцию «Переименовать», вы также перемещаете историю правок, что как раз и желательно в большинстве ситуаций. История правок позволяет людям увидеть, как создавалось содержимое страницы, и кто какой вклад внёс.

When you go to the move log for the source page,[1] you will find a record showing the reason behind a move. This is also displayed in the edit summary of the move, but may not be fully displayed due to the maximum edit summary length.

Если перемещать содержание страниц путём копирования и вставки (не используя функцию переименования), то такого эффекта не добиться (смотрите также Справка:Отслеживание изменений ).

Когда, в результате операции переименования остаётся перенаправление с исходного заголовка на новый (см. Справка:Перенаправления ), оно не должно приводить к каким-либо неработающим ссылкам, за исключением возможности создания двойного перенаправления — случая, когда страницы перенаправляются на страницу, которая является перенаправлением на саму себя. Вы можете отследить страницы, ссылающиеся на перенаправление, и изменить текст ссылок так, чтобы они напрямую указывали на новое название. Для этого удобно использовать функцию «Ссылки сюда», которой можно воспользоваться, нажав на соответствующую ссылку в группе «Инструменты» (в нижней части левой навигационной панели).


Instructions

Before you move a page, consider whether you're following these guidelines for the wiki involved. The guidelines for most wikis are similar to these:

  • Experiment in a sandbox before making changes.
  • Adhere to standard naming conventions when choosing a title.
  • Check for ongoing discussions on the talk page before making edits.
  • Avoid trying to move and edit a page simultaneously - if you open the edit box for a page (or its talk page), then move the page, then save, your edit can be applied to the redirect from the move rather than the page you moved.
  • Consider noting the fact that you moved the page on its talk page (although the move itself will be recorded as part of the page history).

Переименование страницы без создания перенаправления

Подсвечены соответствующие опции.

Пользователи с правом подавления перенаправлений (suppressredirect) могут, при желании, переименовывать страницы без создания перенаправления. Это, в частности, бывает удобно при отмене некорректного переименования.

Если имеется такое право, в форме переименования появляется один дополнительный флажок (смотрите иллюстрацию).

Moving over a redirect

If the destination page already exists as a redirect pointing to the source page with only one revision, it is possible to automatically delete the redirect to make way for the move, even without the right to delete pages. If the destination page redirects elsewhere or has more than one revision, it cannot be deleted automatically, and will need to be deleted manually by an administrator to make way for the move.

Отмена переименования

Как и для почти всех других операций редактирования в вики, операция перемещения может быть отменена (любым пользователем). Чтобы отменить перемещение, просто переименуйте страницу обратно, т.е., применительно к примеру выше, переместите «Б» обратно в «А».

Another way to reverse a move operation is by clicking "View logs for this page" from the history page and then the "revert" link from the corresponding record in "Move Log".

Заголовок страницы «Б» по-прежнему сохранится, но уже как перенаправление с «Б» на «А». Любой пользователь может удалить перенаправление и предложить удалить страницу. Однако окончательное удаление потребует прав sysop (смотрите Справка:Удаление и восстановление страниц ).

Note that the "undo" link in the history page only reverts edits to the page, and cannot undo moves.

Page swapping

To swap pages A and B with their histories, you can:

  1. Move A to C (no redirect).
  2. Move B to A (no redirect).
  3. Move C to B (no redirect).

People who do not have the suppressredirect right will need to ask someone who does to perform the move for them.

URL parameters

These query strings can be added to the URL of Special:MovePage in order to fill out fields and check boxes in advance.

Parameter Meaning
wpOldTitleNs=n Namespace number of existing page
wpOldTitle= Title of existing page
wpNewTitleNs=n Target namespace number
wpNewTitle= Target page title
wpMovetalk=1 Move talk page, if one exists.
wpReason= Text for reason field
wpWatch=1 Watch source and target pages

Special namespace restrictions

Pages in the "File:" and "Category:" namespaces require special permissions (movefile and move-categorypages respectively) to move. Moving a category additionally requires updating all pages in that category to point to the new name, which is not done automatically.

Moving a redirect page

Moving a redirect page, like any other page, is possible but not recommended due to its negative impact on page history. When a redirect page is moved to a new name, the old page's redirect must be updated to avoid double redirects, resulting in the old page no longer redirecting to the page containing its history. This makes locating the page history of the old page more challenging, while the new page inherits a history without clarifying the necessity for it to be a redirect page.

If a redirect page fails to direct users to the intended destination, the best approach, while maintaining page histories, is to adjust the redirect on that page without relocating it.

Protection

Administrators can protect a page from getting moved. If a user does not have permission to edit a page, they also cannot move it.

Other observations

When a page is moved, it appears in "Recent Changes" under "Move log," linking to a log of all moves. However, moving a watched page doesn't show up on the watchlist; both the old and new names remain watched after the move.

Subpages, like talk page archives and template documentation pages, don't move automatically when the main page is moved. Administrators can move up to 100 subpages along with the main page.

Переименование подстраниц

Пользователи с правом переименовывания подстраниц (move-subpages), при желании, могут переименовывать подстраницы страниц (до 100), сохраняя их деревовидную структуру. Если вы укажете в заголовке корневую страницу, которую хотите переместить (посетив Special:MovePage/Некоторая страница), на специальной странице будут отображаться подстраницы этой корневой страницы.

Ensure all subpage titles (and their corresponding talks) are freely accessible for this to function effectively.

В MediaWiki не предусмотрена специальная страница, с помощью которой можно выполнить групповую операцию по перемещению страниц. В зависимости от ситуации, можно воспользоваться следующими альтернативами:

Смотрите также

Citations