Difference between revisions of "Template:Both/doc"

From blackwiki
Jump to navigation Jump to search
imported>Eyesnore
imported>JJMC89
({{sandbox other}})
 
Line 3: Line 3:
  
 
===Usage===
 
===Usage===
<nowiki>{{both|string1|string2}}</nowiki>
+
{{tlc|{{BASEPAGENAME}}|string1|string2}}
  
 
Produces '''1''' (equivalent to a true condition) if both ''string1'' and ''string2'' are non-empty; otherwise produces the empty string (false condition).
 
Produces '''1''' (equivalent to a true condition) if both ''string1'' and ''string2'' are non-empty; otherwise produces the empty string (false condition).
Line 29: Line 29:
 
*{{tl|if}}
 
*{{tl|if}}
  
<includeonly>
+
<includeonly>{{sandbox other||
 
[[Category:Boolean, register, and condition testing templates]]
 
[[Category:Boolean, register, and condition testing templates]]
 
[[Category:If-then-else templates]]
 
[[Category:If-then-else templates]]
</includeonly>
+
}}</includeonly>

Latest revision as of 04:22, 4 December 2016

Usage

{{Both|string1|string2}}

Produces 1 (equivalent to a true condition) if both string1 and string2 are non-empty; otherwise produces the empty string (false condition).

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Both

Produces '1' (equivalent to a true condition) if both 'string1' and 'string2' are non-empty; otherwise produces the empty string (false condition).

Template parameters

ParameterDescriptionTypeStatus
String11

First string

Stringrequired
String22

Second string

Stringrequired

See also