Template:Str number/doc

This is the str number meta-template.

It takes a string as parameter, and returns the number of leading digits. It can count up to 25, and returns 25 if there are more.

Examples
If the parameter is empty or undefined, zero is returned:


 * returns
 * returns
 * returns

The count is interrupted by anything but the ten digits:


 * returns
 * returns
 * returns
 * returns
 * returns
 * returns
 * returns
 * returns

If there are more than 10 leading digits, 11 is returned:


 * returns
 * returns
 * returns
 * returns
 * returns
 * returns