ढाँचा:Str letter

स्वतन्त्र विश्वकोश, नेपाली विकिपिडियाबाट
Jump to navigation Jump to search

0

Template documentation[view] [edit] [history] [purge]

This is the {{str letter}} meta-template.

It takes a string as parameter, and returns its length of preceding numbers. It can count up to 25 in length, and returns 25 for strings that are too long.

Examples[सम्पादन गर्ने]

If the parameter is empty or undefined it is considered to be of zero length:

{{str letter}} returns 0
{{str letter|}} returns 0
{{str letter| }} returns 0

The count is interrupted by numbers, symbols, and punctuation:

{{str letter|12345}} returns 0
{{str letter|abcdef?}} returns 6
{{str letter|abc def}} returns 3
{{str letter|ABcD123}} returns 4
{{str letter|abc, def}} returns 3
{{str letter|abc(def)}} returns 3
{{str letter|abc xyzabcdefghijklmnopqrstuvwxyz}} returns 3
{{str letter|ÁbČĐÈęFğ}} returns 8

It can measure strings up to 25 in length, and returns 25 for strings that are too long:

{{str letter|abcdefghijklmnopqrstuvwx}} returns 24
{{str letter|abcdefghijklmnopqrstuvwxyz}} returns 25

See also[सम्पादन गर्ने]

Description of all string templates