• Home
  • Random
  • Log in
  • Settings
  • About WickedGov
  • General Disclaimer
WickedGov

Template:Both

  • Language
  • Watch
  • Edit
Template documentation[view] [edit] [history] [purge]
WarningThis template is used on approximately 1,550,000 pages, or roughly 107939% 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.
Shortcut
  • {{&&}}

Usage edit

{{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 edit

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Both in articles based on its TemplateData.

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[Edit template data]

ParameterDescriptionTypeStatus
String11

First string

Stringrequired
String22

Second string

Stringrequired

See also edit

  • {{if both}}
  • {{if}}
The above documentation is transcluded from Template:Both/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://www.wickedgov.org/w/index.php?title=Template:Both&oldid=2111"
Last edited on 9 January 2025, at 12:15

Languages

    This page is not available in other languages.

    WickedGov
    • This page was last edited on 9 January 2025, at 12:15.
    • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
    • Privacy Policy
    • About WickedGov
    • General Disclaimer
    • Terms of Use
    • Terms of Use
    • Desktop