Template:Radius: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Performs same calculation as Template:Distance)
(Use documentation/template demo templates)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{SmallIcon|Aoe Icon.png}} {{#if: {{{m|}}}
<includeonly>{{SmallIcon|Aoe Icon.png}} {{#if: {{{showtext|}}} | Radius:&nbsp; |}}{{#if: {{{m|}}}
   | {{{m}}}&#8239;m / {{m to ft | {{{m}}} }}&#8239;ft
   | {{{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]]}}
   | {{#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>
   }}</includeonly><noinclude>{{Documentation|content=
Usage: {{code|<nowiki>{{Radius | m = 5 | ft = 17 }}</nowiki>}}
Displays radius with icon.


Result: {{Radius | m = 5 | ft = 17 }}
== Examples ==
 
{{Template demo
----
| style = table
 
| <nowiki>{{Radius | m = 5 | ft = 17 }}</nowiki>
Usage: {{code|<nowiki>{{Radius | m = 3 }}</nowiki>}}
| <nowiki>{{Radius | m = 3 | showtext = true}}</nowiki>
 
}}
Result: {{Radius | m = 3 }}


}}
[[Category:Templates]]
</noinclude>
</noinclude>

Latest revision as of 21:23, 19 January 2025

Template documentation

Displays radius with icon.

Examples

Markup Renders as
{{Radius | m = 5 | ft = 17 }}
5 m / 17 ft
{{Radius | m = 3 | showtext = true}}
Radius: 3 m / 10 ft