Template:Str len/testcases

From MOASSpedia
Jump to navigation Jump to search

Testing {{str len}}

The surrounding "+ +" is to check that this template does not output any surrounding whitespace.


+{{str len}}+

+{{str len|}}+

+{{str len| }}+

+0+

+0+

+0+


+{{str len|0}}+

+{{str len| 0 }}+

+{{str len| 00 }}+

+1+

+1+

+2+


+{{str len| abcdefghi abcde }}+

+{{str len| 154-characters }}+

+{{str len| 499-characters }}+

+{{str len| 500-characters }}+

+{{str len| 507-characters }}+

+15+

+154+

+499+

+500+

+507+


Testing {{str len/sandbox}}

Which perhaps in turn uses {{str len/core/sandbox}}.


+{{str len/sandbox}}+

+{{str len/sandbox|}}+

+{{str len/sandbox| }}+

+Template:Str len/sandbox+

+Template:Str len/sandbox+

+Template:Str len/sandbox+


+{{str len/sandbox|0}}+

+{{str len/sandbox| 0 }}+

+{{str len/sandbox| 00 }}+

+Template:Str len/sandbox+

+Template:Str len/sandbox+

+Template:Str len/sandbox+


+{{str len/sandbox| abcdefghi abcde }}+

+{{str len/sandbox| 154-characters }}+

+{{str len/sandbox| 499-characters }}+

+{{str len/sandbox| 500-characters }}+

+{{str len/sandbox| 507-characters }}+

+Template:Str len/sandbox+

+Template:Str len/sandbox+

+Template:Str len/sandbox+

+Template:Str len/sandbox+

+Template:Str len/sandbox+


Comparing {{str len}} and {{str len/sandbox}}

+{{str len
| 0  
}}+

+{{str len/sandbox
| 0  
}}+

+{{str len
| aa  
}}+

+{{str len/sandbox
| aa  
}}+

+{{str len| 
  aa  
}}+

+{{str len/sandbox| 
  aa  
}}+

+1+

+Template:Str len/sandbox+

+2+

+Template:Str len/sandbox+

+2+

+Template:Str len/sandbox+