Template:Str num char
0
This documentation is transcluded from Template:Str num char/doc.
Number of specific characters in a string
Usage
{{Str num char |1= |2= }}
Template parameters
Parameter | Description | Default | Status | |
---|---|---|---|---|
1 | target string | empty | required | |
2 | character to find | empty | required |
Additional information
The template is intended to be used in the following namespaces: no namespace specified
The template is intended to be used by the following user groups: no user group specified
Examples
- {{Str num char|1/2/3/4|/}} gives "3"
- {{Str num char|1/2/3/4|a}} gives "0"
- {{Str num char|1 2 3 4| }} gives "3"