మూస:Str len: కూర్పుల మధ్య తేడాలు
Content deleted Content added
imported>Davidgothberg Better naming of /core parameter 3, and core does not return any leading zeros anymore. |
imported>Davidgothberg Feeding the numbered parameters as numbers instead, to get white space stripping. Slightly more efficient, and simpler code. Tested in the /sandbox. |
||
పంక్తి 1:
{{#ifeq: x{{#if:x|{{{1|}}}}} | x{{padleft:{{{1|}}}| 500 }} <!-- str >= 500 -->
| 500
| {{str len/core/sandbox <!-- xx0-xx9 -->
|
| 2 = {{str len/core/sandbox <!-- x0x-x9x -->
|
| 2 = {{str len/core/sandbox <!-- 0xx-4xx -->
|
|
}}
| 3 = tens
}}
| 3 = ones
}}
}}<noinclude>
|