ਫਰਮਾ:Digits
This template is used on many pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
ਇਹ ਫਰਮਾ ਹੇਠ ਲਿਖੇ ਲੂਆ ਨੂੰ ਵਰਤਦਾ ਹੈ: |
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
ਸੋਧੋ- {{str number/trim}}, remove the first non-digit character and everything following
- {{cardinal}}, remove ordinal indicators, eg.
{{cardinal|1st}}
→ 1