VOOZH about

URL: https://minecraft.wiki/w/Template:Pipe_escape

⇱ Template:Pipe escape – Minecraft Wiki


Template:Pipe escape

From Minecraft Wiki
Jump to navigation Jump to search
Documentation[view] [edit] [history] [purge]
This template uses Module:Pipe escape, a script written in 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.

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

[edit source]
{{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
Header Second header
Row Second column row
Second row Second column second row
— Some guy who speaks in tables

See also

[edit source]
[view] [edit] [history] [purge]The above documentation is transcluded from Template:Pipe escape/doc.
Retrieved from "https://minecraft.wiki/w/Template:Pipe_escape?oldid=1386726"

Navigation menu