Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Asking questions  





2 Error and warning messages  



2.1  Needs a number  





2.2  Needs another number  





2.3  Invalid number  





2.4  Number overflow  





2.5  Invalid precision  





2.6  Precision too large  





2.7  Invalid altitude  





2.8  Invalid fraction  





2.9  Invalid sigfig  





2.10  Deprecated option  





2.11  Empty option  





2.12  Invalid option  





2.13  Needs unit name  





2.14  Unknown unit  





2.15  Unit mismatch  





2.16  Ambiguous unit  





2.17  Unit invalid here  





2.18  Wikidata problem  





2.19  Invalid input  







3 Notes  














Help:Convert messages








Ilokano

Norsk bokmål
پښتو

Simple English
Slovenščina
Српски / srpski
Türkçe
Українська
 

Edit links
 









Help page
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 


This page describes the error and warning messages reported by Module:Convert if a problem is detected while using {{convert}} to convert a value from one unit of measurement to another.

Asking questions

[edit]

If a problem cannot readily be resolved, please report it at one of the following.

Error and warning messages

[edit]

Needs a number

[edit]

Mouseover the message to see further information.[a]

An input number is required. In the first example above, the input number is 123.

Pages with this error are automatically placed in Category:Convert errors.[b]

Needs another number

[edit]

Mouseover the message to see further information.[a]

The first input number was specified, but the range used requires another number.

Pages with this error are automatically placed in Category:Convert errors.[b]

Invalid number

[edit]

Mouseover the message to see further information.[a]

A number to be converted can be entered as in these examples: 1.23or1,234or-0.9.

Fractions are entered as in these examples: 1+2/3 (1+23) or -1-2/3 (−1+23) or 2/3 (23).

Pages with this error are automatically placed in Category:Convert errors.[b]

Number overflow

[edit]

Mouseover the message to see further information.[a]

This error occurs if a number exceeds the range of values available for calculations. The number 1e290 means 1×10290.

Pages with this error are automatically placed in Category:Convert errors.[b]

Invalid precision

[edit]

Mouseover the message to see further information.[a]

A precision value is entered after the conversion information. For example, |2 gives a result that is rounded to two decimal places, while |-2 rounds to the nearest 100 so that two zeroes occur at the end of the number. This message will only appear if warnings have been enabled.

Pages with this error are automatically placed in Category:Convert errors.[b]

Precision too large

[edit]

Mouseover the message to see further information.[a]

Generally there is no reason to use a precision of more than a few decimal places, however, larger values may be used. The error shown occurs if the requested precision is higher than the maximum supported by the server.

A negative precision rounds to the nearest 10 (parameter |-1), or nearest 100 (|-2), or nearest 1000 (|-3), etc. A large negative precision produces a zero output.

Using a very small input value can cause the default precision to exceed the limit (1.234e-200 is 1.234×10−200). For such very small values, it is better to use the |sigfig= option.

Pages with this error are automatically placed in Category:Convert errors.[b]

Invalid altitude

[edit]

Mouseover the message to see further information.[a]

Conversion of the Mach unit of speed depends on the altitude at which the speed is measured. That altitude should be specified either in feet (for example, |altitude_ft=10,000) or in metres (for example, |altitude_m=3,749). The altitude cannot be determined accurately and only a whole number is accepted.

Pages with this error are automatically placed in Category:Convert errors.[b]

Invalid fraction

[edit]

Mouseover the message to see further information.[a]

A fraction denominator can be specified to display results with a fraction where appropriate. For example, |frac=8 specifies that the value should be rounded to the nearest eighth, and that a fraction should be included if necessary. A fraction denominator must be a whole number with value 2 or more. This message will only appear if warnings have been enabled.

Pages with this error are automatically placed in Category:Convert errors.[b]

Invalid sigfig

[edit]

Mouseover the message to see further information.[a]

The number of significant figures in the result can be specified. For example, |sigfig=2 requests two significant figures. The number of significant figures must be a whole number with value 1 or more. This message will only appear if warnings have been enabled.

Pages with this error are automatically placed in Category:Convert errors.[b]

Deprecated option

[edit]

Mouseover the asterisk after the convert result to see further information.[a]

The option |sortable=on outputs a hidden sort key for use in a sortable table. The option |sortable=out is now the same as |sortable=on, and the latter should be used. See deprecated options for information regarding which options should be used to replace those that are being phased out.

Pages with this error are automatically placed in Category:Convert errors.[b]

Empty option

[edit]

Mouseover the message to see further information.[a]

The option |sp=us specifies that US spelling should be used ("meters" instead of "metres"). However, |sp= has no effect as no value is specified. This message will only appear if all warnings have been enabled.

Pages with this error are automatically placed in Category:Convert errors.[b]

Invalid option

[edit]

Mouse over the message to see further information.[a]

The option |abbr=off specifies that abbreviations are off, that is, unit names will be used instead of symbols. By contrast, |abr=off is ignored because "abr" is not the name of an option.

The option |28, which should be placed after all the unit options, specifies that 8.5 metres is converted to inches with 28 significant figures. By contrast, |28|in and |in|abbr=off|in are ignored because |28 is followed by a unit, and |in is not the name of a formatting option.

This message will only appear if warnings have been enabled. Pages with this error are automatically placed in Category:Convert errors.[b]

Needs unit name

[edit]

Mouseover the message to see further information.[a]

A unit code must be specified following the input number or numbers.

Pages with this error are automatically placed in Category:Convert errors.[b]

Unknown unit

[edit]

Mouseover the message to see further information.[a]

Each unit code must exactly match a known unit, case sensitive. A simplified list of unit codes is at Help:Convert units, and all available unit codes are here.

Pages with this error are automatically placed in Category:Convert errors.[b]

Unit mismatch

[edit]

Mouseover the message to see further information.[a]

It is only possible to convert between units that have the same type. For example, psi and Pa are each of type "pressure" so a psi value can be converted to Pa. However, a psi value cannot be converted to a unit of a different type, such as ha (hectare) which has type "area".

Pages with this error are automatically placed in Category:Convert errors.[b]

Ambiguous unit

[edit]

Mouseover the message to see further information.[a]

Some unit codes are not supported; using them results in an message indicating that a different unit code should be chosen.

Pages with this error are automatically placed in Category:Convert errors.[b]

Unit invalid here

[edit]

Mouseover the message to see further information.[a]

Some units can only be used as outputs. For example『C F』displays a temperature in Celsius and Fahrenheit. Such a unit cannot be used with an input value, because, for example, there is no such temperature as "123 C F". Some output combinations are predefined—"C F" is one example, and『mi km』(miles and kilometres) is another. It is also possible to construct an output combination by joining unit codes with "+". However, individual units have to be specified, and an output combination cannot be used.

Pages with this error are automatically placed in Category:Convert errors.[b]

Wikidata problem

[edit]

Mouseover the message to see further information.[a]

An unexpected error occurred while attempting to use the Wikidata modules to read property or item information. This error should not occur; the above is a simulation of what would be displayed if, for example, the Wikidata modules were not available, or if they contained an error.

Pages with this error are automatically placed in Category:Convert errors.[b]

Invalid input

[edit]

Mouseover the message to see further information.[a]

Convert is configured to display any input text without error if a conversion fails, so this error should not occur. The above is a simulation of what would be displayed if convert were configured to show problems when a conversion was not possible.

The following examples use the input parameter. The unit mV is known to convert, but since no useful conversion is possible, there is no output. There is no boxes unit, so the input is displayed as given. The final example follows the same rule because P123. is not a valid property identifier.

Pages with this error are automatically placed in Category:Convert errors.[b]

Notes

[edit]
  1. ^ a b c d e f g h i j k l m n o p q r s If the mouse pointer is positioned over the convert message (mouseover), extra information will appear in a popup window.
  • ^ a b c d e f g h i j k l m n o p q r s A category is only included if the page is an article (a page in the main namespace).

  • Retrieved from "https://en.wikipedia.org/w/index.php?title=Help:Convert_messages&oldid=1230755228"

    Category: 
    Wikipedia how-to
     



    This page was last edited on 24 June 2024, at 14:39 (UTC).

    Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki