Template:Max/5/doc

__NOWYSIWYG__

Description
 returns the maximum number, out of FIVE (5) parameters, where some parameters can be ignored as text entries rather than numbers (such as a parameter with “none” or “n/a” or “-”).

Usage
&rarr; &rarr; &rarr; &rarr;

&rarr; 7 &rarr; 65 &rarr; -1 &rarr; 34

To set a floor amount, as a minimum result, also pass a specified amount, such as "50" where will return at least 50 as the maximum. Otherwise, negative numbers are allowed, to find the highest among negative numbers, when all negative.

This template, in turn, uses Template:Max/3 and Template:Max/2 to find the maximum among two groups of 3 and 2 parameters, but it also skips any invalid or text data in the entries, such as "(pass)" or "n/a" or "--" or "none" etc. Hence, only the numeric parameters are compared, not the text words.
 * Peformance considerations

The template-expansion depth is kept to a minimum, as 8 nesting levels, by avoiding deeply nested if-else-else-else structures. }}