Template:Radius: Difference between revisions
Jump to navigation
Jump to search
HiddenDragon (talk | contribs) (Performs same calculation as Template:Distance) |
HiddenDragon (talk | contribs) (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: |}}{{#if: {{{m|}}} | ||
| {{{m}}} m / {{m to ft | {{{m}}} }} ft | | {{{m}}} m / {{m to ft | {{{m}}} }} ft | ||
| {{#expr: {{{ft|0}}} * 3 / 10 }} m / {{{ft|0}}} 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 }} m / {{{ft|0}}} 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= | ||
Displays radius with icon. | |||
== Examples == | |||
{{Template demo | |||
| style = table | |||
| <nowiki>{{Radius | m = 5 | ft = 17 }}</nowiki> | |||
| <nowiki>{{Radius | m = 3 | showtext = true}}</nowiki> | |||
}} | |||
}} | |||
[[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 }} | ![]() |
{{Radius | m = 3 | showtext = true}} | ![]() |