Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 08:10, 3 June 2019 by imported>Nixinova (This is very different)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Template documentation (for the above template, sometimes hidden or invisible) [view] [edit] [history] [refresh]

Template:Documentation header Template: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 magic word 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

{{q|{{pipe escape|
{| class{{=}}"wikitable"
! Header
! Second header
|-
| Row
| Second column row
|-
| Second row
| Second column second row
|}
}}|Some guy who speaks in tables}}
produces

Template:Q

See also

es:Plantilla:Pipe escape fr:Modèle:Pipe escape

zh:Template:Pipe escape
The above text is transcluded from Template:MC/Pipe escape/doc; you can change it or view its history.
If you're done making changes, please refresh the text.
Please add categories and interwikis to Template:MC/Pipe escape/doc. (View all subpages of this page.)