Template:Str number/trim/doc

The Template:Str_number/trim extracts a number at the start of parameter 1.

It takes a string as parameter, and returns the string trimmed to the beginning numeral. It is limited to 11 digits. It cannot handle negative numbers and truncates decimals to whole numbers. A trailing reftag ("&lt;ref>...&lt;/ref>") causes the number to repeat to 11 digits.