Template:Image width/doc

Usage
This template is meant to normalize values supplied for image widths. It should be used in conjunction with px.

It takes two unnamed parameters, the first being the value to test and the second being the fallback value. If the first parameter is not supplied, not a valid number (if it has letters or other non-numeric characters), or larger than the fallback value, the fallback is used instead. If no fallback is supplied, the template returns nothing for invalid input.