10,991
editsAd placeholder
Template:Dist: Difference between revisions
Jump to navigation
Jump to search
Clarify why we use a single named parameter.
(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: |