Difference between revisions of "Template:If"

From YTMND
Jump to: navigation, search
m
 
(That form doesn't actually work.)
 
(One intermediate revision by one user not shown)
Line 4: Line 4:
  
 
<pre><nowiki>
 
<pre><nowiki>
{{if|{{{value|}}}
 
|(Text to show if the value exists)
 
|(Text to show if not)
 
}}
 
 
OR
 
 
 
{{if|{{{value|}}}
 
{{if|{{{value|}}}
 
  |then=(Text to show if the value exists)
 
  |then=(Text to show if the value exists)
Line 17: Line 10:
 
</nowiki></pre>
 
</nowiki></pre>
  
[[Category:Templates|{{if}}]]</noinclude>
+
[[Category:Templates|if]]</noinclude>

Latest revision as of 11:38, January 29, 2009

Usage

Checks if there is a value

{{if|{{{value|}}}
 |then=(Text to show if the value exists)
 |else=(Text to show if not)
}}