Template:ComCur: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{#if:{{#pos:{{{1}}}}}|,}} | {{#switch:{{{1|}}} |1|2|3={{{1}}} |4={{{#sub:{{{#sub{{{1}}}|1|3}}, |5={{{#sub:{{{1}}}|1|3}}, |6={{{#sub:{{{1}}}|1|3}}, }} }} {{#sub:123...") |
No edit summary |
||
(15 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly> |
|||
⚫ | |||
{{#if:{{#pos:{{{1}}}|,}}{{#pos:{{lc:{{{1}}}}}|k}}{{#pos:{{lc:{{{1}}}}}|d}}{{#pos:{{lc:{{{1}}}}}|l}}{{#pos:{{lc:{{{1}}}}}| }} |
|||
| |
|||
|{{{1|}}} |
|||
⚫ | |||
|1|2|3={{{1}}} |
|1|2|3={{{1}}} |
||
|4= |
|4={{#sub:{{{1}}}|0|1}},{{#sub:{{{1}}}|1|3}} |
||
|5= |
|5={{#sub:{{{1}}}|0|2}},{{#sub:{{{1}}}|2|3}} |
||
|6= |
|6={{#sub:{{{1}}}|3|1}},{{#sub:{{{1}}}|3|3}} |
||
|7={{#sub:{{{1}}}|0|1}},{{#sub:{{{1}}}|1|3}},{{#sub:{{{1}}}|4|3}} |
|||
|8={{#sub:{{{1}}}|0|2}},{{#sub:{{{1}}}|2|3}},{{#sub:{{{1}}}|5|3}} |
|||
|9={{#sub:{{{1}}}|0|3}},{{#sub:{{{1}}}|3|3}},{{#sub:{{{1}}}|6|3}} |
|||
|10={{#sub:{{{1}}}|0|1}},{{#sub:{{{1}}}|1|3}},{{#sub:{{{1}}}|4|3}},{{#sub:{{{1}}}|7|3}} |
|||
|11={{#sub:{{{1}}}|0|2}},{{#sub:{{{1}}}|2|3}},{{#sub:{{{1}}}|5|3}},{{#sub:{{{1}}}|8|3}} |
|||
|12={{#sub:{{{1}}}|0|3}},{{#sub:{{{1}}}|3|3}},{{#sub:{{{1}}}|6|3}},{{#sub:{{{1}}}|9|3}} |
|||
|{{{1|}}} |
|||
}} |
}} |
||
|{{{1|}}} |
|||
}} |
|||
}}</includeonly><noinclude>This template will take a series of numbers and properly add commas. If it has any commas already, contains spaces, is more than 12 digits, or has a currency type, it will not make any changes.{{Cat|Templates,Templates for Templates}}</noinclude> |
|||
{{#sub:1234|1|3}} |
Latest revision as of 14:25, 16 July 2013
This template will take a series of numbers and properly add commas. If it has any commas already, contains spaces, is more than 12 digits, or has a currency type, it will not make any changes.