Template:Distance

From bg3.wiki
Revision as of 11:27, 19 January 2025 by HiddenDragon (talk | contribs) (Added template demo and documentation templates)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Template documentation

A template for displaying distances:

Examples

Markup Renders as
{{Distance|melee}}
1.5 m / 5 ft
{{Distance|reach}}
2.5 m / 8 ft
{{Distance|ranged}}
18 m / 60 ft
{{Distance|short ranged}}
15 m / 50 ft
{{Distance|m=1.5}}
1.5 m / 5 ft
{{Distance|ft=50}}
15 m / 50 ft (ERROR: Distance not in metric!)

Game files use metric, and apply the calculation mentioned in Template:M to ft when the options are set to imperial. This is why the template expects a value in metric and refuses to apply the reverse transform, which may lead to unexpected results due to rounding.