Difference between revisions of "Template:Least/doc"
m (1 revision) |
(No difference)
|
Latest revision as of 17:54, 18 January 2010
Purpose
This template can be used to restrict the size of an image displayed in an Infobox. It allows the editor to specify the width of an image. If the requested value is greater than the maximum value then the maximum value is returned. Otherwise the requested value is returned. It is designed to fail gracefully.
Usage
If the requested value is greater than the maximum value then the maximum value is returned.
If the requested value is less than the maximum value then the requested value is returned.
If the requested value is undefined or non numeric then the maximum value is returned.
If the maximum value is undefined then the result is undefined.
Examples
{{least|200|100}} --> 100
{{least|100|200}} --> 100
{{least||200}} --> 200
{{least|100px|200}} --> 200
{{least|200}} -->
See also