Difference between revisions of "Template:If both/doc"

From blackwiki
Jump to navigation Jump to search
imported>Droll
m (moved Template:If2/Documentaion/doc to Template:If2/doc: Template:If2/doc just a dumb mistake)
imported>Droll
(tweak text)
Line 11: Line 11:
 
<nowiki>{{if a | b | x | y}} --> x</nowiki>
 
<nowiki>{{if a | b | x | y}} --> x</nowiki>
  
<nowiki>{{if a |   | x | y}} --> y</nowiki>
+
<nowiki>{{if a | &ensp;  | x | y}} --> y</nowiki>
  
 +
<noinclude>
 +
<!-- PLEASE ADD CATEGORIES AND
 +
INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
  
  
<!-- PLEASE ADD CATEGORIES AND
+
</noinclude>
INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
 

Revision as of 18:06, 9 February 2010

This simple template is designed to facilitate template coding and should only be used in templates.

The functionality is simple. If a and b then x else y

I both a and b are true {defined} then a is defined If either a or be are (undefined) then is b defined

{{if a | b | x | y}} --> x

{{if a |   | x | y}} --> y