Différences entre les versions de « PipeEscape »

De Semantic MediaWiki - Sandbox

(new)
 
(add)
Ligne 1 : Ligne 1 :
Demonstrates the usage of the [[mediawikiwiki:Extension:PipeEscape|"PipeEscape" extension]]
+
Demonstrates the usage of the [[mediawikiwiki:Extension:PipeEscape|"PipeEscape" extension.]]
  
; Code
+
; Code 1
 
<pre>
 
<pre>
 
{{#if: {{{arg|}}}
 
{{#if: {{{arg|}}}
Ligne 17 : Ligne 17 :
 
</pre>
 
</pre>
  
; Result
+
; Result 1
 
{{#if: {{{arg|}}}
 
{{#if: {{{arg|}}}
 +
|{{#!:
 +
{|
 +
|-
 +
!      || Heading 1 || Heading 2
 +
|-
 +
| Row a || a1        || a2
 +
|-
 +
| Row b || b1        || b2
 +
|}
 +
}}
 +
}}
 +
 +
; Code 2
 +
<pre>
 +
{{#if: {{{arg|value}}}
 +
|{{#!:
 +
{|
 +
|-
 +
!      || Heading 1 || Heading 2
 +
|-
 +
| Row a || a1        || a2
 +
|-
 +
| Row b || b1        || b2
 +
|}
 +
}}
 +
}}
 +
</pre>
 +
 +
; Result 2
 +
{{#if: {{{arg|value}}}
 
  |{{#!:
 
  |{{#!:
 
{|
 
{|

Version du 23 janvier 2019 à 19:30

Demonstrates the usage of the "PipeEscape" extension.

Code 1
{{#if: {{{arg|}}}
 |{{#!:
{|
|-
!       || Heading 1 || Heading 2
|-
| Row a || a1        || a2
|-
| Row b || b1        || b2
|}
}}
}}
Result 1


Code 2
{{#if: {{{arg|value}}}
 |{{#!:
{|
|-
!       || Heading 1 || Heading 2
|-
| Row a || a1        || a2
|-
| Row b || b1        || b2
|}
}}
}}
Result 2
Heading 1 Heading 2
Row a a1 a2
Row b b1 b2
Les cookies nous aident à fournir nos services. En utilisant nos services, vous acceptez notre utilisation de cookies.