Difference between revisions of "Template:Digits"

From blackwiki
Jump to navigation Jump to search
blackwiki>MusikAnimal
m (Protected "Template:Digits": Highly visible template; 1,000+ transclusions ([Edit=Require autoconfirmed or confirmed access] (indefinite)))
m (3 revisions imported)
 
(One intermediate revision by one other user not shown)
(No difference)

Latest revision as of 14:31, 30 September 2020

Template documentation[view] [edit] [history] [purge]

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