Différences entre les versions de « PipeEscape »

De Semantic MediaWiki - Sandbox

(chg)
(form)
 
Ligne 31 : Ligne 31 :
 
}}
 
}}
 
}}
 
}}
Nothing is shown since the <code>#if</code> parser function gets no value via <code>{{{arg|}}}</code>.
+
Nothing is shown since the <code>#if</code> parser function gets no value via <code><nowiki>{{{arg|}}}</nowiki></code>.
  
 
== Example 2 ==
 
== Example 2 ==

Dernière version du 23 janvier 2019 à 19:59

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
Les cookies nous aident à fournir nos services. En utilisant nos services, vous acceptez notre utilisation de cookies.