Template:Both - Wikipedia
Template:Both
Template documentation​[​view​] [edit] [history] [purge]
This template is used on 1,370,000+ pages, or roughly 3% of all pages.
To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them.
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
String11First stringStringrequired
String22Second stringStringrequired
See also
{{if}}
The above documentation is transcluded from Template:Both/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
Last edited on 4 December 2016, at 04:31
Content is available under CC BY-SA 3.0 unless otherwise noted.
Privacy policy
Terms of Use
Desktop
HomeRandomNearbyLog inSettingsDonateAbout WikipediaDisclaimers
LanguageWatchEdit