Jump to content

Ayuda:Extensión:TemplateSandbox

From mediawiki.org
This page is a translated version of the page Help:Extension:TemplateSandbox and the translation is 23% complete.
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
Esta es la documentación de usuario de TemplateSandbox. La documentación técnica de la extensión TemplateSandbox también está disponible.

La extensión TemplateSandbox facilita el probar cambios a plantillas y a módulos de Scribunto al permitir que los cambios sean previsualizados en páginas existentes sin publicar los cambios para todos.

Testing a change to a single template

When the extension is installed and enabled, a box titled "Vista previa de la página con esta plantilla" will appear on the edit form underneath the "Guardar la página" and other buttons in template and module pages. If you enter the title of a page in the text field and use the adjacent "Mostrar vista previa" button, the entered page will be previewed as if the changes to the current template were saved.

Testing a change to multiple templates

To test changes to multiple templates, first save sandbox versions as subpages of a page somewhere. For example, to test changes to Template:Example 1 and Template:Example 2, you might save the sandbox versions to User:Example/sandbox/Template:Example 1 and User:Example/sandbox/Template:Example 2.

Next, go to Special:TemplateSandbox. Enter the title of the page to be previewed in the "Procesar la página:" field, and the prefix used in the previous step (e.g. "User:Example/sandbox") in the "Prefijo de la zona de pruebas" field.

To preview a particular revision of a page, enter the revision number in the "Procesar la revisión:" field. To preview arbitrary wikitext, fill in both the "Procesar la página:" (for magic words such as {{PAGENAME}}) and "Procesar el wikitexto:" fields.

Note that the canonical name of the page must be used after the sandbox prefix; equivalent titles will not work. For example, User:Example/sandbox/Template:example 1 will not work, despite the fact that Template:example 1 is equivalent to Template:Example 1.