Difference between revisions of "Template:Digits/doc"

From blackwiki
Jump to navigation Jump to search
imported>Ahecht
(create)
 
(Lua)
 
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 +
{{Lua|Module:String}}
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
== Usage ==
 
== Usage ==

Latest revision as of 16:25, 7 November 2017

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