Parameters[]
{{{1}}} ... {{{n}}}: Any number of strings to compare.|ci=: Set this to do case-insensitive comparison.|versions=: Set this to do a sort-of-numeric comparison:- splits on whitespace and compares tokens alphabetically, except when tokens are all digits/periods, in which case it splits the token on the period and compares the numbers numerically.
Output[]
- The greatest of the arguments when compared as strings, taking into account
|ci=and|versions=
Examples[]
{{StringGreatest}} →
{{StringGreatest| abc }} → abc
{{StringGreatest| abc | aaa | zzz }} → zzz
{{StringGreatest| abc | ZZZ }} → abc
{{StringGreatest| abc | ZZZ | ci=1 }} → ZZZ
{{StringGreatest| 1.12.2 | 1.12.10 | 1.2 | versions=1 }} → 1.12.10
See also[]
[view | edit | history | purge]The above documentation is transcluded from Template:StringGreatest/doc.