Vorlage:Str len: Unterschied zwischen den Versionen
Aus KKWiki
Zur Navigation springenZur Suche springenK (Reverted edits by Happy-melon (talk) to last version by Dragons flight) |
(Copying this new string length template from my user-space sandbox.) |
||
Zeile 1: | Zeile 1: | ||
− | + | {{#ifeq: x{{#if:x|{{{1|}}}}} | x{{padleft:{{{1|}}}| 500 }} <!-- str >= 500 --> | |
− | + | | 500 | |
− | | | + | | {{#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> | </noinclude> |
Version vom 26. März 2009, 14:03 Uhr
Fehler im Ausdruck: Nicht erkanntes Satzzeichen „[“
Template documentation[[{{fullurl:Vorlage:Str len/doc| action=edit&preload=Template:Documentation/preload }} create]]
==Ups! Diese/r Vorlage/Artikel fehlt oder wurde noch nicht erstellt==
Melde dies bitte Benutzer Diskussion:Lugsciath, mit deinem Herkunftsort!
Danke - Bitte auf Hauptseite gehen! [[Kategorie:Wikipedia pages with strange ((documentation)) usage|==Ups! Diese/r Vorlage/Artikel fehlt oder wurde noch nicht erstellt==
Melde dies bitte Benutzer Diskussion:Lugsciath, mit deinem Herkunftsort!
Danke - Bitte auf Hauptseite gehen!Vorlage:Str len]]