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

Content deleted Content added
imported>Ben b
added reflist
imported>Dragons flight
+cat, -restrictions
लाइन 4:
This is the {{tl|str letter}} meta-template.
 
It takes a string as parameter, and returns its length of preceding letters. It can count up to 25 in length, and returns 25 for strings that are too long.
 
=== Examples ===
लाइन 24:
:<code><nowiki>{{str letter|ÁbČĐÈęFğ}}</nowiki></code> returns {{str letter|ÁbČĐÈęFğ}}
:<code><nowiki>{{str letter|NR<ref>a reference</ref>}}</nowiki></code> returns {{str letter|NR<ref>a reference</ref>}}
 
It can measure strings up to 25 in length, and returns 25 for strings that are too long:
 
:<code><nowiki>{{str letter|abcdefghijklmnopqrstuvwx}}</nowiki></code> returns 24
Line 39 ⟶ 37:
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:String manipulation templates|{{PAGENAME}}]]
[[Category:Lua-based templates]]
 
</includeonly>