Différences entre les versions de « PipeEscape »

De Semantic MediaWiki - Sandbox

(add)
(chg)
Ligne 7 : Ligne 7 :
 
{|
 
{|
 
|-
 
|-
!       || Heading 1 || Heading 2
+
! style="width: 25px" || Heading 1 || Heading 2
 
|-
 
|-
 
| Row a || a1        || a2
 
| Row a || a1        || a2
Ligne 22 : Ligne 22 :
 
{|
 
{|
 
|-
 
|-
!       || Heading 1 || Heading 2
+
! style="width: 25px" || Heading 1 || Heading 2
 
|-
 
|-
 
| Row a || a1        || a2
 
| Row a || a1        || a2
Ligne 30 : Ligne 30 :
 
}}
 
}}
 
}}
 
}}
 +
Nothing is shown since the <code>#if</code> parser function gets no value via <code>{{{arg|}}}</code>.
  
 
; Code 2
 
; Code 2
Ligne 37 : Ligne 38 :
 
{|
 
{|
 
|-
 
|-
!       || Heading 1 || Heading 2
+
! style="width: 25px" || Heading 1 || Heading 2
 
|-
 
|-
 
| Row a || a1        || a2
 
| Row a || a1        || a2
Ligne 52 : Ligne 53 :
 
{|
 
{|
 
|-
 
|-
!       || Heading 1 || Heading 2
+
! style="width: 25px" || Heading 1 || Heading 2
 
|-
 
|-
 
| Row a || a1        || a2
 
| Row a || a1        || a2

Version du 23 janvier 2019 à 19:33

Demonstrates the usage of the "PipeEscape" extension.

Code 1
{{#if: {{{arg|}}}
 |{{#!:
{|
|-
! style="width: 25px" || Heading 1 || Heading 2
|-
| Row a || a1        || a2
|-
| Row b || b1        || b2
|}
}}
}}
Result 1

Nothing is shown since the #if parser function gets no value via .

Code 2
{{#if: {{{arg|value}}}
 |{{#!:
{|
|-
! style="width: 25px" || Heading 1 || Heading 2
|-
| Row a || a1        || a2
|-
| Row b || b1        || b2
|}
}}
}}
Result 2
style="width: 25px" 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.