Template:Htbot

From FEInfobase

(Difference between revisions)
Jump to: navigation, search
(created template, as robotic auto-formatting of meters converted to feet, with either inches, .x, or rounded whole feet, depending of level of height)
 
m (1 revision)
 

Latest revision as of 15:18, 20 February 2009

The Template:Htbot simply compares the given height to some common-sense levels of height, and then auto-formats the height in feet, with inches, .x, or rounded whole feet. Usage:
{{htbot|xxx.x}}
{{htbot|m=xxx.x}}
{{htbot|1.2}} - for 1.2 meters.
{{htbot|5300}} - for 5300 meters.
{{htbot|5|abbr=no}} - show "feet".

The height levels for choosing format are:

m < 6: shows feet & inches
m < 50: shows feet to 1 decimal, xxx.x
m > 50: shows feet rounded to whole feet.

The parameter "m" defaults to the first unnamed parameter. For example:

{{htbot|abbr=no|34}} - uses "34"

NOTE: When translating articles from German Wikipedia, use template htbot
to handle the German template {{Height|x}}.

Personal tools