Jump to content

Template:Digits/doc

From Simple English Wikipedia, the free encyclopedia
Revision as of 01:55, 20 November 2025 by ~2025-34905-20 (talk | changes) (Created page with "{{Documentation subpage}} {{Lua|Module:String}} <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see Wikipedia:Wikidata) --> == Usage == {{tlx|digits|''string''}} {{tlx|digits|2=1=''string''}} Removes all characters from ''string'' that are not a digit 0–9. == Examples == {{Template example bullet|digits|12px}} {{Template example bullet|digits|1,234,567}} {{Template example bullet|digits|$1.23}} * {{tlx|digit...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

{{digits|string}}

{{digits|1=string}}

Removes all characters from string that are not a digit 0–9.

Examples

[change source]
  • {{digits|1,234,567}}  1234567
  • {{digits|24.51 km (15.23 mi)}}  24511523
[change source]
  • {{str number/trim}}, remove the first non-digit character and everything following