Difference between revisions of "Template:0000expr"
Jump to navigation
Jump to search
blackwiki>Dcoetzee (Switch to using {{#invoke:BaseConvert|convert|n={{{1}}}|base=10|width=4}}) |
m (3 revisions imported) |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
| − | <includeonly>{{#invoke:BaseConvert|convert|n={{{1}}}|base=10|width=4}}</includeonly><noinclude>{{documentation}}</noinclude> | + | <includeonly>{{#invoke:BaseConvert|convert|n={{#expr:{{{1}}}}}|base=10|width=4}}</includeonly><noinclude>{{documentation}}</noinclude> |
Latest revision as of 09:04, 30 September 2020
| 30px | This template uses Lua: |
Like Template:0expr but adds padding zeros to get the number up to 4 digits instead of 2. For example:
{{0000expr|15+2}}
produces:
0017
| The above documentation is transcluded from Template:0000expr/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |