टेम्पलेट:Str number/doc: रिवीजन सभ के बीचा में अंतर

Content deleted Content added
Undid revision 400458137 by 117Avenue (talk)
clarify; 24
लाइन 4:
This is the {{tl|str number}} meta-template.
 
It takes a string as parameter, and returns itsthe lengthnumber of precedingleading numbersdigits. It can count up to 25 in length, and returns 25 forif strings thatthere are too longmore.
 
=== Examples ===
If the parameter is empty or undefined, itzero is considered to be of zero lengthreturned:
 
:<code><nowiki>{{str number}}</nowiki></code> returns {{str number}}
लाइन 21:
:<code><nowiki>{{str number|1234abc56}}</nowiki></code> returns {{str number|1234abc56}}
 
If there are more than 23 leading digits, 24 is returned:
It can measure strings up to 25 in length, and returns 25 for strings that are too long:
 
:{{xpsoc|str number|12345678901234567890123}}
:<code><nowiki>{{xpsoc|str number|123456789012345678901234}}</nowiki></code> returns 24
:<code><nowiki>{{str number|123456789012345678901234567890}}</nowiki></code> returns 25
:{{xpsoc|str number|1234567890123456789012345}}
:{{xpsoc|str number|12345678901234567890123abc}}
:{{xpsoc|str number|123456789012345678901234abc}}
:{{xpsoc|str number|1234567890123456789012345abc}}
 
=== See also ===