Template:Radius: Difference between revisions

From Baldur's Gate 3 Wiki
Jump to navigation Jump to search
(Created page with "<includeonly>{{SmallIcon|Aoe Icon.png}} {{{m}}}{{nbts}}m / {{{ft}}}{{nbts}}ft</includeonly><noinclude> Usage: {{code|<nowiki>{{Radius | m = 5 | ft = 17 }}</nowiki>}} Result: {{Radius | m = 5 | ft = 17 }} </noinclude>")
 
(Added showtext parameter)
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>{{SmallIcon|Aoe Icon.png}} {{{m}}}{{nbts}}m / {{{ft}}}{{nbts}}ft</includeonly><noinclude>
<includeonly>{{SmallIcon|Aoe Icon.png}}{{#if: {{{showtext|}}} | Radius:&nbsp; |}}{{#if: {{{m|}}}
  | {{{m}}}&#8239;m / {{m to ft | {{{m}}} }}&#8239;ft
  | {{#expr: {{{ft|0}}} * 3 / 10 }}&#8239;m / {{{ft|0}}}&#8239;ft {{color|red|(ERROR: Distance not in metric!)}} {{Main namespace only|[[Category:Articles with incorrect usage of the Distance template]][[Category:Articles with errors]]}}
  }}</includeonly><noinclude>
Usage: {{code|<nowiki>{{Radius | m = 5 | ft = 17 }}</nowiki>}}
Usage: {{code|<nowiki>{{Radius | m = 5 | ft = 17 }}</nowiki>}}


Result: {{Radius | m = 5 | ft = 17 }}
Result: {{Radius | m = 5 | ft = 17 }}
----
Usage: {{code|<nowiki>{{Radius | m = 3 }}</nowiki>}}
Result: {{Radius | m = 3 | showtext = true}}
</noinclude>
</noinclude>

Revision as of 07:13, 6 June 2024

Usage: {{Radius | m = 5 | ft = 17 }}

Result: 5 m / 17 ft


Usage: {{Radius | m = 3 }}

Result: Radius: 3 m / 10 ft