Ohje:Sivun siirtäminen

From mediawiki.org
This page is a translated version of the page Help:Moving a page and the translation is 30% complete.
PD Huomautus: Muokkaamalla tätä sivua hyväksyt, että tuottamasi sisältö julkaistaan CC0 -lisenssillä. Katso lisätietoja Public Domain -ohjesivulta. PD

Sivun siirtäminen tarkoittaa sen uudelleennimeämistä. Tämä tapahtuu käyttämällä siirrä-toimintoa "Muut"-välilehdellä sivun yläreunassa. Välilehti ei ole näkyvissä, jos et ole kirjautunut sisään. Then enter the new name and click "Siirrä sivu". Tavallisesti haluat jättää valintaruudun "Siirrä myös keskustelusivu" valituksi.

Jos siirrät sivun "A" uudelle nimelle "B", muutos tekee seuraavat asiat:

  • Uudelleennimeää sivun "A" otsikon "B":ksi
  • Uudelleennimeää sivun "A" muutoshistorian myös sivun "B" muutoshistoriaksi
  • Luo uuden sivun "A", jonka sisältö on ohjaus sivulle "B"

The second point is important. By using the "Siirrä" feature, you also move the editing history, which is desirable in most situations. The editing history allows people to see how the contents of the page were built up, and who contributed what.

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.

If you move contents around by copying and pasting (not using the move feature), you do not achieve this (see also Ohje:Muutosten seuranta ).

When the move operation leaves behind a redirect (see Help:Redirects ), it should not result in any broken links except the possibility of double redirects – that is, pages redirecting to "A" which becomes a redirect itself. You might want to hunt down pages or other redirects which link in to the redirect, and change their text to link directly to the new title. The "Tänne viittaavat sivut" feature, which can be used through the link in the Työkalut (at bottom of the sidebar) is useful when doing this.

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, it is possible for your edit to 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).

Peru siirto

Kuin melkein minkä tahansa muutoksen wikissä, siirron voi peruuttaa (kuka tahansa). Siirron perumiseksi yksinkertaisesti siirrä sivu takaisin, eli siirrä "B" takaisin "A":ksi.

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".

Sivun otsikko "B" jää silti jäljelle ohjaussivuna "A":han. Any user can remove the redirect and propose that the page be deleted. However the final deletion will require sysop privileges (see Help:Deletion and undeletion ).

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

Moving a page without creating a redirect

Relevant option highlighted

Users with the suppressredirect user right can optionally move a page without creating a redirect. This is particularly useful when undoing a move.

When the right is enabled, one additional check box will appear when one needs to move a page (see picture at right).

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.

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

Mass renaming / moving

MediaWiki does not offer a special page with which to perform a batch operation for page moves. There may be alternatives, depending on your situation:

Moving subpages

Users with the move-subpages user right can optionally move subpages of a page (up to $wgMaximumMovedPages , defaulting to 100), preserving its "tree" structure. If you specify the root page you want to move in the title (by visiting Special:MovePage/Some page), the special page displays the subpages of that root page.

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.

Katso myös

Citations