Template:If pos
From CruisersWiki
(Difference between revisions)
(examples) |
|||
(9 intermediate revisions not shown) | |||
Line 1: | Line 1: | ||
{{{2{{{test|}}}|{{{test{{{test|}}}|{{{1|}}}}}}}}}<noinclude> | {{{2{{{test|}}}|{{{test{{{test|}}}|{{{1|}}}}}}}}}<noinclude> | ||
- | + | This version of [[Template:If]] have positional "then" and "else" parameters, hence it saves whitespace around them. | |
- | {{ | + | <nowiki>{{</nowiki>if pos | test= something |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]] | ||
<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