Template:Str number/trim/doc

From BibleStrength

Template:Documentation subpage Template:Lua

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 number if non-numeric text does not appear before the first number.

Examples

  • {{Str number/trim}}Script error: No such module "String".
  • {{Str number/trim|abcde}}Script error: No such module "String".
  • {{Str number/trim|abcde123}}Script error: No such module "String".
  • {{Str number/trim|123456}}Script error: No such module "String".
  • {{Str number/trim|123 456}}Script error: No such module "String".
  • {{Str number/trim|1976–2006}}Script error: No such module "String".
  • {{Str number/trim|19/76+2006}}Script error: No such module "String".
  • {{Str number/trim|1234abc}}Script error: No such module "String".
  • {{Str number/trim|1234abc56}}Script error: No such module "String".
  • {{Str number/trim|12345678901234567890}}Script error: No such module "String".
  • {{Str number/trim|1234567890123456789012345}}Script error: No such module "String".
  • {{Str number/trim| 1234567890123456789012345}}Script error: No such module "String".
  • {{Str number/trim|13<ref>a reference</ref>}}Script error: No such module "String".

See also

Template:Navbox with collapsible groups

References