সাঁচ:Least/doc

অসমীয়া ৱিকিপিডিয়াৰ পৰা

This helper template returns the least of two numbers. The motivation arises from a need to restrict the size of images displayed in Infoboxes. It allows the editor to specify the width of an image. If the requested width is greater than the maximum width, the maximum width is returned. Otherwise the requested width is returned. It is designed to fail gracefully.

Usage[সম্পাদনা কৰক]

{{least | <requested width> | <maximum width> }}

If the requested value is less than the maximum value then the requested value is returned.
If the requested value is greater than the maximum value then the maximum value is returned.
If the requested value is undefined or cannot be parsed then the maximum value is returned.
If the maximum value is undefined then the result is undefined.

Examples[সম্পাদনা কৰক]

{{least/sandbox|200|100}}সাঁচ:Least/sandbox
{{least/sandbox|100|200}}সাঁচ:Least/sandbox
{{least/sandbox||100}}সাঁচ:Least/sandbox
{{least/sandbox|100|}}সাঁচ:Least/sandbox

See also[সম্পাদনা কৰক]