Template:Distance: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(add a "bad" example)
No edit summary
Line 4: Line 4:
| ranged = {{Distance/Transform|60}}
| ranged = {{Distance/Transform|60}}
| short ranged = {{Distance/Transform|50}}
| short ranged = {{Distance/Transform|50}}
| #default = {{#if: {{{m|}}} | {{{m}}}{{nbts}}m / {{{ft}}}{{nbts}}ft <!-- Keeping for backward compatibility -->
| #default = {{#if: {{{m|}}} | {{{m}}}{{nbts}}m / {{{ft|{{color|red|Notice! Must include feet distance as well! [[Category:Articles with incorrect usage of the Distance template]][[Category:Articles with errors]]}}}}}{{nbts}}ft <!-- Keeping for backward compatibility -->
   | {{Distance/Transform|{{{ft}}}}} }}
   | {{Distance/Transform|{{{ft}}}}} }}
}}</includeonly><noinclude>
}}</includeonly><noinclude>

Revision as of 14:31, 25 December 2023

Usage: {{Distance|melee}}

Result: 1.5 m / 5 ft

Usage: {{Distance|reach}}

Result: 2.5 m / 8 ft

Usage: {{Distance|ranged}}

Result: 18 m / 60 ft

Usage: {{Distance|short ranged}}

Result: 15 m / 50 ft

Usage: {{Distance|m=X|ft=Y}}

Result: X m / Y ft

Usage: {{Distance|ft=50}}

Result: 15 m / 50 ft

Usage: {{Distance|m=5}}

Result: 5 m / Notice! Must include feet distance as well! ft