Template:Number

From Bare Metal micro:bit
Revision as of 14:46, 11 August 2023 by Mike (talk | contribs) (Created page with "<span style="white-space: nowrap">{{#replace:{{{1}}}|| }}</span><noinclude>{{Documentation}}</noinclude>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

{{{1}}}

Documentation

Write

{{Number|10 000}}

to get

10 000

with a thin non-breaking space.

The implementation uses the #replace string function, and relies on the feature that an empty 'find' string is treated as a single space.