Difference between revisions of "Template:Both/doc"
From CannaQAWiki
Jump to navigationJump to searchShawndouglas (talk | contribs) m (Updated for LabLynx Wiki) |
Shawndouglas (talk | contribs) (Cleaned up initial import) |
||
Line 27: | Line 27: | ||
<includeonly> | <includeonly> | ||
[[Category:Boolean, register, and condition testing templates]] | [[Category:Boolean, register, and condition testing templates]] | ||
[[Category: | [[Category:CannaQAwiki formatting and function templates]] | ||
</includeonly> | </includeonly> |
Latest revision as of 18:15, 16 March 2019
This is a documentation subpage for Template:Both. It contains usage information, categories, interlanguage links, and other content that is not part of the original template page. |
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).
Template Data
This is the TemplateData documentation for this template used by VisualEditor and other tools.
Both
Produces '1' (equivalent to a true condition) if both 'string1' and 'string2' are non-empty; otherwise produces the empty string (false condition).
Parameter | Description | Type | Status | |
---|---|---|---|---|
String1 | 1 | First string | String | required |
String2 | 2 | Second string | String | required |