"साचा:Str len" च्या विविध आवृत्यांमधील फरक

Content deleted Content added
Better naming of /core parameter 3, and core does not return any leading zeros anymore.
Feeding the numbered parameters as numbers instead, to get white space stripping. Slightly more efficient, and simpler code. Tested in the /sandbox.
ओळ १:
{{#ifeq: x{{#if:x|{{{1|}}}}} | x{{padleft:{{{1|}}}| 500 }} <!-- str >= 500 -->
| 500
| {{str len/core/sandbox <!-- xx0-xx9 -->
|{{#if:x| 1 = {{{1|}}}}}
| 2 = {{str len/core/sandbox <!-- x0x-x9x -->
|{{#if:x| 1 = {{{1|}}}}}
| 2 = {{str len/core/sandbox <!-- 0xx-4xx -->
|{{#if:x| 1 = {{{1|}}}}}
| |2 = hundreds
}}| tens3 = hundreds
}}| ones
| 3 = tens
}}
| 3 = ones
}}
}}<noinclude>
"https://mr.wikipedia.org/wiki/साचा:Str_len" पासून हुडकले