Template:Digits/doc

From MOASSpedia
< Template:Digits
Revision as of 11:25, 7 November 2017 by 50.53.1.21 (talk) (Lua)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Usage

{{digits|string}}

{{digits|1=string}}

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

Examples

{{digits|12px}} → 12

{{digits|1,234,567}} → 1234567

{{digits|$1.23}} → 123

{{digits|1=1+2=3}} → 123

See also