Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Humanipedia
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Module:Convert/documentation/conversion data/introduction
(section)
Module
Discussion
English
Read
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Default === A default is a code for a unit or combination that identifies the output unit or units that will be used if none is specified in the convert template. The [[#Defaults|Defaults]] section defines exceptions for unit codes with an SI prefix, where the default output is different from that of the base unit. Also, units using [[#Engineering notation|engineering notation]] may appear in the defaults section to define a default output for the unit. A default may specify a unit code or an expression that tests the input value, and which produces one of two different outputs depending on that value. In the expression, <code>v</code> represents the input value specified in the convert template, and exclamation marks (<code>!</code>) are used to separate the expression into either three or four fields. For example, the following expression might be used as the default for unit <code>in</code> (inch): : <code>v < 36 ! mm ! cm</code> The first field is a condition which evaluates to ''true'' or ''false''. In this example, if the input value is less than 36, the default output unit is <code>mm</code>; otherwise, it is <code>cm</code>. If present, the fourth field is appended to the result. For example, the following expression might be used for unit <code>Ml</code> (megalitre): : <code>v < 28.316846592 ! e3 ! e6 ! cuft</code> If the condition is true, the result is <code>e3cuft</code>; otherwise, it is <code>e6cuft</code>.
Summary:
Please note that all contributions to Humanipedia may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Humanipedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)