PipeEscape
From Semantic MediaWiki - Sandbox
Demonstrates the usage of the "PipeEscape" extension.
Example 1
- Code
{{#if: {{{arg|}}}
|{{#!:
{|
|-
! Heading Identifier || Heading Value 1 || Heading Value 2
|-
| Row a || a1 || a2
|-
| Row b || b1 || b2
|}
}}
}}
- Result
Nothing is shown since the #if parser function gets no value via {{{arg|}}}.
Example 2
- Code
{{#if: {{{arg|value}}}
|{{#!:
{|
|-
! Heading Identifier || Heading Value 1 || Heading Value 2
|-
| Row a || a1 || a2
|-
| Row b || b1 || b2
|}
}}
}}
- Result
| Heading Identifier | Heading Value 1 | Heading Value 2 |
|---|---|---|
| Row a | a1 | a2 |
| Row b | b1 | b2 |