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

From blackwiki
Jump to navigation Jump to search
imported>Droll
(update)
imported>Droll
(tidy)
Line 3: Line 3:
 
__NOTOC__
 
__NOTOC__
  
This [[Help:Templates/Helper templates|helper template]] is designed to be used in other templates. It can help editors create templates that or self documenting templates.
+
This [[Help:Templates/Helper templates|helper template]] is designed to be used in other templates. It can help editors create templates that or self documenting.
  
 
== Usage ==
 
== Usage ==

Revision as of 00:25, 1 August 2010


This helper template is designed to be used in other templates. It can help editors create templates that or self documenting.

Usage

If a and b then x.

If a nor b then y.

If a or b then y.

It can be used to replace the construct: {{#if: a | {{#if: b | x | y }}

Examples

{{if both | a | b | x }} → x

{{if both | a | | x | y }} → y

{{if both | | b | x | y }} → y

See also=