Bahaipedia
Bahaipedia
Menu
About Bahaipedia
Ask a question
General help
Random page
Recent changes
In other projects
Tools
What links here
Related changes
Upload file
Special pages
Printable version
Permanent link
Page information
Template
Discussion
View history
Talk
Contributions
Create account
Log in
Navigation
About Bahaipedia
Ask a question
General help
Random page
Recent changes
In other projects
Learn more
Core topics
Bahá’í Faith
Central Figures
Teachings
Practices
Tools
What links here
Related changes
Upload file
Special pages
Printable version
Permanent link
Page information
Translations

Template:Digits

From Bahaipedia
Jump to:navigation, search
Template documentation[view] [edit] [history] [purge]
This template uses Lua:
  • Module:String

Usage[edit]

{{digits|string}}

{{digits|1=string}}

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

Examples[edit]

{{digits|12px}} → 12

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

{{digits|$1.23}} → 123

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

See also[edit]

  • {{str number/trim}}

Template:String-handling templates

The above documentation is transcluded from Template:Digits/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://bahaipedia.org/index.php?title=Template:Digits&oldid=66065"
Categories:
  • Templates based on the String Lua module
  • String manipulation templates
This page was last edited on 25 October 2018, at 03:09.
Text is available under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License.
Privacy policy
About Bahaipedia
Disclaimers
Powered by MediaWiki