टेम्पलेट:Str gtr str
Jump to navigation
Jump to search
टेम्पलेट बिबरनलेख[देखीं] [संपादन करीं] [इतिहास देखीं] [रिफ्रेश करीं]

Compares two strings for alphabetical order, and returns a value accordingly
Usage[संपादन]
{{Str gtr str|first string|second string|value if true|value if false}}
Examples[संपादन]
- {{Str gtr str|zebra|aardvark|zebra comes after aardvark|aardvark comes after zebra}} returns zebra comes after aardvark
- {{Str gtr str|cat|dog|cat comes after dog|dog comes after cat}} returns dog comes after cat
- {{Str gtr str|same text|same text|true|false}} returns false
Note that the strings are case dependant, and sorted in order of ASCII characters, so {{Str gtr str|Romeo|juliet|true|false}} returns false
Limitations[संपादन]
Only the first four characters of the strings are analysed, so that (for example) {{Str gtr str|Wikipedia|Wikicommons|true|false}} returns false. ASCII characters outside the range 32-126 are treated as a space.
See also[संपादन]
परिचय खातिर ऊपर दिहल गइल बिबरनलेख के टेम्पलेट:Str gtr str/doc से ट्रांसक्लूड क के इहाँ देखावल जा रहल बाटे। (संपादन करीं | इतिहास देखीं) संपादक लोग एह टेम्पलेट के अभ्यासपन्ना (सैंडबाक्स) (बनाईं | मिरर करीं) आ टेस्टकेस (बनाईं) पन्ना सभ पर अभ्यास आ प्रयोग (टेस्टिंग) क सकत बाटे। अनुरोध बा कि अगर श्रेणी जोड़े के होखे तब /doc उपपन्ना (सबपेज) पर जोड़ल जाय। एह टेम्पलेट के उपपन्ना (सबपेज) देखीं। |