Vorlage:Str len: Unterschied zwischen den Versionen

K
37 Versionen von wikipedia:Vorlage:Str_len importiert
(Copying this new string length template from my user-space sandbox.)
K (37 Versionen von wikipedia:Vorlage:Str_len importiert)
 
(19 dazwischenliegende Versionen von 7 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
{{#ifeq: x{{#if:x|{{{1|}}}}} | x{{padleft:{{{1|}}}| 500 }}  <!-- str >= 500 -->
<onlyinclude><includeonly>{{#invoke:Str|len|{{{1|}}}}}</includeonly></onlyinclude>
| 500
{{Dokumentation}}
| {{#expr:  <!-- "expr" removes leading spaces and zeros -->
    {{str len full/core  <!-- xx0-xx9 -->
    |{{#if:x|{{{1|}}}}}
    | {{str len full/core  <!-- x0x-x9x -->
      |{{#if:x|{{{1|}}}}}
      | {{str len full/core  <!-- 0xx-4xx -->
        |{{#if:x|{{{1|}}}}}
        | |00
        }}|0
      }}|
    }}
  }}
}}<noinclude>
 
<!-- {{pp-template}} -->
{{documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>