Template:Ifbetween

From MidsouthMakers - Memphis Area Hackerpace
Jump to navigation Jump to search
[edit] [purge] Template documentation

This template evaluates its first numeric parameter to see if it is in the closed range defined by its second and third numeric parameters. If the first parameter is in the range, the value of the fourth parameter is returned; if the first parameter is out of range, the fifth parameter is returned. If either the parameter to be returned is not given a value, an empty string is returned.

Syntax:
{{ifbetween|value|start|end|then|else}}