Ad 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 +&nbsp;{{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}}}&#8239;m / {{m to ft | {{{m}}} }}&#8239;ft</includeonly><noinclude>
<includeonly>{{{m}}}&#8239;m / {{m to ft | {{{m}}} }}&#8239;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.
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:

Navigation menu