Template:If pos

From CruisersWiki

(Difference between revisions)
Jump to: navigation, search
(Category)
(examples)
 
Line 3: Line 3:
This version of [[Template:If]] have positional "then" and "else" parameters, hence it saves whitespace around them.
This version of [[Template:If]] have positional "then" and "else" parameters, hence it saves whitespace around them.
-
{{if pos | test= something |true|false}}
+
<nowiki>{{</nowiki>if pos | test= something |true|false}}
-
{{if pos | test= |true|false}}
+
Gives:
 +
:{{if pos | test= something |true|false}}
 +
 
 +
<nowiki>{{</nowiki>if pos | test= |true|false}}
 +
 
 +
Gives:
 +
:{{if pos | test= |true|false}}
[[Category:Templates|If pos]]
[[Category:Templates|If pos]]
<noinclude>
<noinclude>

Latest revision as of 16:19, 4 April 2015


This version of Template:If have positional "then" and "else" parameters, hence it saves whitespace around them.

{{if pos | test= something |true|false}}

Gives:

true
{{if pos | test= |true|false}}

Gives:

false
Personal tools
advertisement
Friends of Cruisers Wiki