Template:ComCur: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
{{#if:{{#pos:{{{1}}}|,}}{{#pos:{{lc:{{{1}}}}}|k}}{{#pos:{{lc:{{{1}}}}}|d}}{{#pos:{{lc:{{{1}}}}}|l}}{{#pos:{{lc:{{{1}}}}}| }}
{{#if:{{#pos:{{{1}}}|,}}{{#pos:{{lc:{{{1}}}}}|k}}{{#pos:{{lc:{{{1}}}}}|d}}{{#pos:{{lc:{{{1}}}}}|l}}{{#pos:{{lc:{{{1}}}}}| }}
|{{{1|}}}
|
|{{#switch:{{#len:{{{1}}}}}
|{{#switch:{{#len:{{{1}}}}}
|1|2|3={{{1}}}
|1|2|3={{{1}}}
Line 16: Line 16:
}}
}}
|{{{1|}}}
|{{{1|}}}
}}</includeonly><noinclude>This template will take a series of numbers and properly add commas. If it has any commas already, is more than 12 digits, or has a currency type, it will not make any changes.{{Cat|Templates,Templates for Templates}}</noinclude>
}}</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>

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.