Template:Str num char

0

Template documentationview · edit · history · purge ]
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

ParameterDescriptionDefaultStatus
1target stringemptyrequired
2character to findemptyrequired

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"