Jump to content

Manual:Edición de secciones

From mediawiki.org
This page is a translated version of the page Manual:Section editing and the translation is 52% complete.
Outdated translations are marked like this.

La edición de secciones es la práctica de editar una sección particular de una página haciendo clic en el enlace «editar» (o «editar código») junto a su título.

This page is for the technical details of section editing and how to configure it. See Ayuda:Sección for the end-user documentation about the feature.

Existing sections

When editing a section in the source editor, the URL contains section=n where n is an integer index to the section being edited. These are counted from 0 (but see #Lead section below for more about section 0). If you try to edit a section number that doesn't exist, you'll get an error message.

When editing a section, the edit summary field is pre-populated with a special section indicator, such as /* Existing sections */, which will be turned into a link when it's viewed in page history, diffs, etc.

When opening a section for editing in the VisualEditor , the whole page is opened for editing. The main difference between this and editing the whole page is that the edit summary is still pre-populated with the section name.

New sections

It is possible to create a new section at the end of a page by adding section=new to the URL. This opens the normal editing form, with an additional text field above the page textbox (labelled 'Subject:'), into which the section title can be entered.

In addition, the normal edit summary field is hidden. It's not possible to add an edit summary when adding a new section, because the section title will be used (in fact, the 'Subject:' and 'Summary (?):' fields are internally the same). The phrase 'New section' will be added to the generated edited summary.

If the DiscussionTools extension is installed, adding a new section will not open the page editing form but instead direct you to a new comment form at the bottom of the page.

Lead section

Page content that is before the beginning of the first section is called the "lead section" or "section zero". It can not be edited directly via the UI in most skins, but it is possible to manually change the edit URL to include section=0. Various Gadgets exist to make this easier, such as the edittop gadget.

Right-click to edit

editsectiononrightclick (0 por defecto) es un derecho de usuario que permite a los editores editar secciones haciendo clic derecho en el título de sección (funcionalidad JavaScript). This feature requires JavaScript to be enabled.

Limitaciones

  • Las vistas previas de páginas solo mostrarán la parte del artículo que pueda plantear problemas para el texto...
  • La elección de palabras o el formato pueden ser más difíciles de elegir a falta de contenido antes o después de la sección editable.

Habilitar y deshabilitar enlaces de sección

La edición de secciones es una funcionalidad activada por defecto en MediaWiki, pero se puede deshabilitar de varias maneras, como se explica a continuación. Deshabilitar esta funcionalidad es especialmente útil cuando se crea un encabezado a través de una plantilla: la edición de secciones habitual del wiki en este caso editaría el código de la plantilla, lo que le resultaría antiintuitivo al usuario.

Historical note: In MediaWiki 1.23 and earlier there was a user preference for disabling the section editing links. This was removed with T54811.

Site or user stylesheets

It is possible to use the global or personal stylesheets to remove the section editing links. The following CSS shoulg be added to MediaWiki:Common.css or Special:MyPage/common.css:

.mw-editsection {
    display:none !important;
}

Palabra mágica

Se puede utilizar la palabra mágica __NOEDITSECTION__ para ocultar todos los enlaces de edición de sección de una determinada página.

Esta palabra mágica es transcluible, lo que quiere decir que se puede incrustar en una plantilla para deshabilitar la edición de secciones en todas las páginas donde se utilice esta plantilla.

Insertar y dar estilo a los enlaces de sección

CSS

En Vector y otras apariencias, el enlace de sección tiene la siguiente clase CSS:

.mw-editsection