Help:Parameter default: Difference between revisions

Content deleted Content added
No edit summary
Tags: Mobile edit Mobile web edit
No edit summary
Tags: Mobile edit Mobile web edit
Line 55:
Since v@=null we can also take make the concatenation the outer operation:
<code>[v[''i''|@] | [sep|]] [v[''i''|@] | {{[call]|[pc1|]|[pc2|]|[pc3|]|[pc4|]|[pv|1]=[''i'']}} ]</code>
 
==Conditional statement==
{{Tim|if}} contains:
----
<pre>{{{else{{{test|}}}|{{{test{{{test|}}}|{{{then|}}}}}}}}}</pre>
----
 
 
or in short form:
 
[ else[test|] | [ test[test|] | [then|] ] ]
 
If [test] is defined this reduces to
 
[ else[test] | [ test[test] | [then|] ] ]
 
For test equal to null this reduces to [else|]; otherwise, if no parameter name starting with "test" or "else" applies except these themselves, then this reduces to [then|].
 
If [test] is undefined we get
 
[ else | [then|] ]