Template:Str len: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Davidgothberg
Changing calls to "str len full/core" to be direct to "str len/core" since this template has been moved.
Ookami (talk | contribs)
m 32 revisions imported
 
(10 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{#ifeq: x{{#if:x|{{{1|}}}}} | x{{padleft:{{{1|}}}| 500 }}   <!-- str >= 500 -->
{{{{{|safesubst:}}}#invoke:String|len|s={{{1|}}}}}<noinclude>
| 500
{{documentation}}
| {{#expr:  <!-- "expr" removes leading spaces and zeros -->
    {{str len/core  <!-- xx0-xx9 -->
    |{{#if:x|{{{1|}}}}}
    | {{str len/core  <!-- x0x-x9x -->
      |{{#if:x|{{{1|}}}}}
      | {{str len/core  <!-- 0xx-4xx -->
        |{{#if:x|{{{1|}}}}}
        | |00
        }}|0
      }}|
    }}
  }}
}}<noinclude>


{{pp-template}}
{{documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Latest revision as of 04:34, 3 September 2020

0