Template:Str len: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Davidgothberg Feeding the numbered parameters as numbers instead, to get white space stripping. Slightly more efficient, and simpler code. Tested in the /sandbox. |
meta>Happy-melon maybe we shouldn't be running sandbox code on 30,000 pages? :-P |
||
Line 1: | Line 1: | ||
{{#ifeq: x{{#if:x|{{{1|}}}}} | x{{padleft:{{{1|}}}| 500 }} <!-- str >= 500 --> | {{#ifeq: x{{#if:x|{{{1|}}}}} | x{{padleft:{{{1|}}}| 500 }} <!-- str >= 500 --> | ||
| 500 | | 500 | ||
| {{str len/core | | {{str len/core <!-- xx0-xx9 --> | ||
| 1 = {{{1|}}} | | 1 = {{{1|}}} | ||
| 2 = {{str len/core | | 2 = {{str len/core <!-- x0x-x9x --> | ||
| 1 = {{{1|}}} | | 1 = {{{1|}}} | ||
| 2 = {{str len/core | | 2 = {{str len/core <!-- 0xx-4xx --> | ||
| 1 = {{{1|}}} | | 1 = {{{1|}}} | ||
| 2 = | | 2 = |