Difference between revisions of "Template:If"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (*default 4th param to not set;)
m (*cats;)
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{P{{#if{{{1}}}:{{{2}}}|1|2}}|{{{3}}}|{{{4|}}}}}</includeonly><noinclude>Acts like an <nowiki>{{#if:}}</nowiki> but with without trimming of the parameters.
+
<includeonly>{{P{{#ifeq:{{{1}}}|eq|1|2}}|{{P{{#ifeq:{{{2}}}|{{{3}}}|1|2}}|{{{4}}}|{{{5|}}}}}|{{P{{#if{{{1}}}:{{{2}}}|1|2}}|{{{3}}}|{{{4|}}}}}}}</includeonly><noinclude>Acts like an <nowiki>{{#if:}}</nowiki> but with without trimming of the parameters.
  
 
== See also ==
 
== See also ==
 
* [[metawikipedia:Template:If|Template:If]] in the Meta-Wiki
 
* [[metawikipedia:Template:If|Template:If]] in the Meta-Wiki
  
[[Category:Templates]]</noinclude>
+
[[Category:Formatting and function templates]]
 +
[[Category:Wikimedia templates]]</noinclude>

Revision as of 20:01, 6 January 2014

Acts like an {{#if:}} but with without trimming of the parameters.

See also