Help:Redirecciones

From mediawiki.org
This page is a translated version of the page Help:Redirects and the translation is 32% complete.
Outdated translations are marked like this.
PD Nota: Cuando editas esta página, aceptas liberar tu contribución bajo la licencia CC0. Para más información mira las páginas de ayuda de dominio público. PD

Las redirecciones se utilizan para que los usuarios vayan de una página a otra. Pueden ser útiles si un artículo es mencionado por varios nombres, o tiene puntuación alternativa, mayúsculas o letras.

Types of redirects

Two types of redirections exist:

  • Hard redirection: Readers navigated to the redirect page are taken directly to the target page (usually other pages of the same wiki).

Only hard redirection is described in this current article.

  • Soft redirection: Readers are left on the redirect page but given the option of clicking the link to the target page.

Usually this is achieved via a template; see corresponding article on Meta.

In wikis with $wgDisableHardRedirects enabled (such as most public Wikimedia projects), it's not possible to create a hard redirect to special pages (e.g. Special:MyLanguage) or pages located on another wiki; they will be automatically "softened".

Appearance

For hard redirects, you immediately get the target page. However, it shows a small notice after the top title to indicate you arrived here indirectly.

Help:Redirects
De MediaWiki
(Redirigido desde «Help:Redirect»)

Creando una redirección

When a page is moved, a redirect from the old to the new pagename is automatically created.

Users with the "suppressredirect" right may move a page without creating a redirect. By default this right is assigned to sysops and bots.

Para crear una redirección, tiene que empezar creando una nueva página con el nombre al cual desee redirigirse. Hágalo escribiendo el nombre deseado en el cuadro de búsqueda, o directamente en la URL (métodos descritos en Help:Comenzar una página nueva ) You can also use an existing page that you are making inactive as a page by going to that page and using the "edit" tab at the top. In either case, you will be inserting the following code at the very first text position of the Edit window for the page:

#REDIRECT [[nombre de la página]]

Puede utilizar el botón de 'vista previa', para comprobar que ha introducido el nombre de la página correcta (Generalmente usted será redirigido a una página existente, de modo que el vínculo debe ser de color azul, no rojo). The word "redirect" is not case-sensitive, but there must be no space before the "#" symbol. Any text before the code will disable the code and prevent a redirect. Any text or regular content code after the redirect code will be ignored (and should be deleted from an existing page). However, to put or keep the current page name listed in a Category, the usual tag for that category is entered or kept on a line after the redirect code entry.

Redirections can be simple page names or specified using a namespace. They can be suffixed with a section name if you have the corresponding anchor defined on the target page.[1]

Examples of valid operational redirections:

  • #REDIRECT[[Help:Magic_words#Page_names]]
  • #redirect [[Help:Magic_words#URL_encoded_page_names]]
  • #Redirect [[Manual:$wgConf]]
  • #REDIRECT [[MediaWiki/fr]] the translated page is imposed

You should 'preview' (using the button below the Edit window, or use Alt+P) to check that you have entered the correct destination page name.

When redirection is valid (and operational) you will see in the previewed text the name of the target you have provided, following a 'next line' icon (image) for example as follows:

 Help:Magic words#URL encoded page names

This is what you must get.

When redirection is not valid, the previewed text looks like a numbered list item with the destination page in blue: (it will also be the contents of the redirection page if you save as it is):

1. REDIRECT  nombre de la página

Reemplace nombre de la página con el nombre de la página a la cual quiere redirigir a los usuarios. If there is no valid destination page, you should not create the redirect.

Limitations

A redirect target cannot depend on a variable, template, or parser function. If that is the case, the browser will not be automatically redirected on visiting the page.

Example of redirection not allowed (not operational):

JavaScript page redirect

In order to avoid JavaScript functionality from breaking, all JavaScript pages have a different redirect syntax from regular pages. This syntax allows for proper execution of the page by the browser's JavaScript engine, as well as being recognised by MediaWiki as a redirect. To create a JavaScript page redirect, the format that must be used is as follows:

/* #REDIRECT */mw.loader.load( "{{fullurl:Target.js|action=raw&ctype=text/javascript}}" );

Where Target.js is the target page name.

Ver una redirección

De esta manera, usted puede hacer todas las cosas que permite cualquier página wiki. Usted puede ir a la correspondiente página de discusión para discutir la redirección. Puede ver el historial de la página antes de que la redirección sea puesta en marcha. Edite la página si la redirección es errónea, y se puede volver a una versión anterior para suprimir la redirección. This adds &redirect=no URL parameter.

Help:Redirection
De MediaWiki
Redirecciona la página a

Help:Redirect

De esta manera, usted puede hacer todas las cosas que permite cualquier página wiki. Usted puede ir a la correspondiente página de discusión para discutir la redirección. Puede ver el historial de la página antes de que la redirección sea puesta en marcha. Edite la página si la redirección es errónea, y se puede volver a una versión anterior para suprimir la redirección.

Borrar una redirección

Generalmente no hay necesidad de eliminar redirecciones. They do not occupy a significant amount of database space. If a page name is vaguely meaningful, there's no harm, and some benefit, in having it as a redirect to the more relevant or current page.

If want to move a page over a redirect that has only one edit in its history and targeted to the old page name, there is no need to delete the redirect: it is overwritten. If the redirect has more than one history entry, or the redirect target is somewhere else, then it can only be deleted-and-moved by an administrator.

Si un nombre de la página tiene vagamente sentido no hay daño (y sí algún beneficio) al tenerlo como una redirección a la página más relevante existente en su wiki. Sin embargo, si necesita borrar una redirección (por ejemplo, si el nombre de la página de redirección es ofensivo, o si usted desea que la gente deje de referirse al concepto con ese nombre), simplemente vaya a la página de la redirección, y siga el mismo procedimiento para borrar una página (véase Ayuda:Eliminación y recuperación ).

Problematical redirects

Redirecciones dobles

Una redirección doble es una página que redirige a una página que, a su vez, es redirigida también.[2] Instead, people will be presented with a view of the next redirect page. Se trata de una restricción deliberada, para evitar bucles infinitos y para mantener las cosas simples.

Sin embargo, esto significa que usted debe buscar y eliminar las dobles redirecciones, modificándolas para que se conviertan en una redirección en un solo paso. Es probable que usted necesite hacer esto después de mover una página importante. Para encontrar dobles redirecciones a una página en particular, utilice la herramienta Lo que enlaza aquí o utilice Special:DoubleRedirects para encontrar todas las que existen en la wiki.

There is an option, $wgFixDoubleRedirects , to automatically fix double redirects with a job queue. However, it tends to aggravate page move vandalism, so it is disabled by default. The __STATICREDIRECT__ magic word can be used to skip the double-redirect fix on a particular page.

Broken redirects

If the target page does not exist, the redirect is broken: redirection will not occur. You may find all broken redirects at Special:BrokenRedirects.

Redirigir una categoría

Para evitar que se vea la página de la categoría puesta en la página, ponga la palabra Category (o Categoría, si la interfaz es en castellano) con dos puntos, como sigue:

#REDIRECT [[:Category:Glossary]]

Transcluding a redirect

When a page called for inclusion is a redirect page, the redirect target is included instead, with the same parameters, without any redirect message. A double redirect does not work.

This allows to create several names for the same template.

Links to redirect

An internal link to a redirect page has CSS class mw-redirect. This can be useful to make them stand out, for clean-up work involving bypassing redirects.

Véase también

Referencias

  1. From 2006 development, after 2004 bug report.
  2. This may be controlled by $wgMaxRedirects .