Template:Str number/trim/doc

From RabastorWiki
Jump to navigation Jump to search

Lua error: Cannot create process: proc_open(/home4/iltornan/lua/error.log): Failed to open stream: No such file or directory Lua error: Cannot create process: proc_open(/home4/iltornan/lua/error.log): Failed to open stream: No such file or directory

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}}Lua error: Cannot create process: proc_open(/home4/iltornan/lua/error.log): Failed to open stream: No such file or directory
  • {{Str number/trim|abcde}}Lua error: Cannot create process: proc_open(/home4/iltornan/lua/error.log): Failed to open stream: No such file or directory
  • {{Str number/trim|abcde123}}Lua error: Cannot create process: proc_open(/home4/iltornan/lua/error.log): Failed to open stream: No such file or directory
  • {{Str number/trim|123456}}Lua error: Cannot create process: proc_open(/home4/iltornan/lua/error.log): Failed to open stream: No such file or directory
  • {{Str number/trim|123 456}}Lua error: Cannot create process: proc_open(/home4/iltornan/lua/error.log): Failed to open stream: No such file or directory
  • {{Str number/trim|1976–2006}}Lua error: Cannot create process: proc_open(/home4/iltornan/lua/error.log): Failed to open stream: No such file or directory
  • {{Str number/trim|19/76+2006}}Lua error: Cannot create process: proc_open(/home4/iltornan/lua/error.log): Failed to open stream: No such file or directory
  • {{Str number/trim|1234abc}}Lua error: Cannot create process: proc_open(/home4/iltornan/lua/error.log): Failed to open stream: No such file or directory
  • {{Str number/trim|1234abc56}}Lua error: Cannot create process: proc_open(/home4/iltornan/lua/error.log): Failed to open stream: No such file or directory
  • {{Str number/trim|12345678901234567890}}Lua error: Cannot create process: proc_open(/home4/iltornan/lua/error.log): Failed to open stream: No such file or directory
  • {{Str number/trim|1234567890123456789012345}}Lua error: Cannot create process: proc_open(/home4/iltornan/lua/error.log): Failed to open stream: No such file or directory
  • {{Str number/trim| 1234567890123456789012345}}Lua error: Cannot create process: proc_open(/home4/iltornan/lua/error.log): Failed to open stream: No such file or directory
  • {{Str number/trim|13<ref>a reference</ref>}}Lua error: Cannot create process: proc_open(/home4/iltornan/lua/error.log): Failed to open stream: No such file or directory

See also

Lua error: Cannot create process: proc_open(/home4/iltornan/lua/error.log): Failed to open stream: No such file or directory

References

Lua error: Cannot create process: proc_open(/home4/iltornan/lua/error.log): Failed to open stream: No such file or directory