Permanently protected template

Template:Both

From Wikipedia, the free encyclopedia
Jump to: navigation, search
Template documentation[view] [edit] [history] [purge]

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 error 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

Parameter Description Type Status
String1 1

First string

Default
empty
Example
empty
Auto value
empty
String required
String2 2

Second string

Default
empty
Example
empty
Auto value
empty
String required

See also