Template:Dist: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<includeonly>{{{m}}} m / {{m to ft | {{{m}}} }} ft</includeonly><noinclude> A simpler version of Template:Distance that must strictly be used like <code><nowiki>{{dist|m=X}}</nowiki></code> where <code>X</code> is the distance in meters. Example: <pre>Agile Chassis gives you + {{dist|m=9}} movement speed.</pre> Result: Agile Chassis gives you + {{dist|m=9}} movement speed. </noinclude>") |
(Clarify why we use a single named parameter.) |
||
Line 1: | Line 1: | ||
<includeonly>{{{m}}} m / {{m to ft | {{{m}}} }} ft</includeonly><noinclude> | <includeonly>{{{m}}} m / {{m to ft | {{{m}}} }} ft</includeonly><noinclude> | ||
A simpler version of [[Template:Distance]] that must strictly be used like <code><nowiki>{{dist|m=X}}</nowiki></code> where <code>X</code> is the distance in | A simpler version of [[Template:Distance]] that must strictly be used like <code><nowiki>{{dist|m=X}}</nowiki></code> where <code>X</code> is the distance in metric. | ||
Note: The template uses a single named parameter called <code>m</code> instead of an unnamed parameter so as to remind the user that the value must be in metric, not feet. | |||
Example: | Example: |
Latest revision as of 14:17, 24 April 2024
A simpler version of Template:Distance that must strictly be used like {{dist|m=X}}
where X
is the distance in metric.
Note: The template uses a single named parameter called m
instead of an unnamed parameter so as to remind the user that the value must be in metric, not feet.
Example:
[[Agile Chassis]] gives you + {{dist|m=9}} movement speed.
Result:
Agile Chassis gives you + 9 m / 30 ft movement speed.