Difference between revisions of "Template:Both/doc"
Jump to navigation
Jump to search
(sl:Predloga:Both) |
imported>JJMC89 ({{sandbox other}}) |
||
| (16 intermediate revisions by 12 users not shown) | |||
| Line 1: | Line 1: | ||
| − | {{ | + | {{Documentation subpage}} |
| + | {{high-risk|975000+}} | ||
| − | ==Usage== | + | ===Usage=== |
| − | + | {{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). | ||
| − | <includeonly> | + | ===TemplateData=== |
| + | {{TemplateDataHeader}} | ||
| + | <templatedata>{ | ||
| + | "description": "Produces '1' (equivalent to a true condition) if both 'string1' and 'string2' are non-empty; otherwise produces the empty string (false condition).", | ||
| + | "params": { | ||
| + | "1": { | ||
| + | "label": "String1", | ||
| + | "description": "First string", | ||
| + | "type": "string", | ||
| + | "required": true | ||
| + | }, | ||
| + | "2": { | ||
| + | "label": "String2", | ||
| + | "description": "Second string", | ||
| + | "type": "string", | ||
| + | "required": true | ||
| + | } | ||
| + | }}</templatedata> | ||
| + | |||
| + | == See also == | ||
| + | *{{tl|if}} | ||
| + | |||
| + | <includeonly>{{sandbox other|| | ||
[[Category:Boolean, register, and condition testing templates]] | [[Category:Boolean, register, and condition testing templates]] | ||
| − | [[Category: | + | [[Category:If-then-else templates]] |
| − | + | }}</includeonly> | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | </includeonly> | ||
Latest revision as of 04:22, 4 December 2016
| 40px | This is a documentation subpage for Template:Both. It contains usage information, categories and other content that is not part of the original template page. |
| 40px | This template is used on 1,310,000+ 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. Transclusion count updated automatically (see documentation). |
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).
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| String1 | 1 | First string | String | required |
| String2 | 2 | Second string | String | required |
See also
- {{if}}