Diferencia entre revisiones de «Pipe escape»
De La Venciclopedia
venciclopedia>Pppery (Substability) |
m (Texto reemplazado: «{{documentation}}» por «{{documentación}}») |
||
(No se muestra una edición intermedia del mismo usuario) | |||
Línea 1: | Línea 1: | ||
<includeonly>{{safesubst:#invoke: pipe escape | pipe }}</includeonly><noinclude> | <includeonly>{{safesubst:#invoke: pipe escape | pipe }}</includeonly><noinclude> | ||
{{ | {{documentación}} | ||
<!-- Put categories/interwiki on the documentation page --> | <!-- Put categories/interwiki on the documentation page --> |
Revisión actual - 05:30 7 feb 2024
This template uses Lua: |
This template allows you to escape multiple pipes within a template without the need to call {{!}}
many times, thereby simplifying the markup. The main usage of this template is creating tables in the parameters of templates, such as the content parameter of {{documentation}}.
This template should not be used if only a few usages of {{!}}
are required, as the other template is more efficient.
Usage
This template returns all the unnamed parameters separated by pipes, effectively "escaping" the pipes. Note that since =
determines a parameter, all usages of =
must be escaped using {{=}}.
This template trims white space from the beginning of the first parameter, and the end of the last parameter.
Example
{{quote|{{pipe escape|
{| class{{=}}"wikitable"
! Header
! Second header
|-
| Row
| Second column row
|-
| Second row
| Second column second row
|}
}}|Some guy who speaks in tables}}
- produces
Header Second header Row Second column row Second row Second column second row — Some guy who speaks in tables
See also
- {{!!}}
Esta documentación está transcluida desde Plantilla:Pipe escape/doc.
Los editores pueden experimentar en la zona de pruebas (crear) y en los casos de prueba (crear) de la plantilla.
Por favor, añade las categorías en la subpágina de documentación. Subpáginas de esta plantilla.
Los editores pueden experimentar en la zona de pruebas (crear) y en los casos de prueba (crear) de la plantilla.
Por favor, añade las categorías en la subpágina de documentación. Subpáginas de esta plantilla.