Mal:Deg2DMS/dok
| Dette er en underside med dokumentasjon for Mal:Deg2DMS (se denne siden for selve malen). Den inneholder brukerinformasjon, kategorier og annet som ikke er del av den originale malsiden. |
| Denne malen brukes på 3,000 sider. Det anbefales at endringer testes i en sandkasse før de legges inn. Diskuter gjerne også endringer på diskusjonssiden først. |
Description
[rediger kilde]This template converts a positive decimal degree value to degrees° minutes' seconds'' format, or to degrees° minutesm secondss format (the degree symbol ° is invariant between the two formats).
Usage
[rediger kilde]{{Deg2DMS|positive decimal degrees|Mal:Olive=precision|Mal:Olive=ms}}
|p= is optional and defaults to 3. It is the number of decimal digits that the seconds are rounded to.
|sup= is optional and changes the default apostrophe-format for arcminutes and arcseconds (1° 2' 3'') to the m-s-format for arcminutes and arcseconds (1° 2m 3s). Any non-blank value has this effect, but using |sup=ms is customary.
For example:
{{Deg2DMS|266.416837}} returns 266° 25' 0.613''
{{Deg2DMS|266.416837|Mal:Olive=4}} returns 266° 25' 0.6132''
{{Deg2DMS|266.416837|Mal:Olive=4|Mal:Olive= }} returns 266° 25' 0.6132''
{{Deg2DMS|266.416837|Mal:Olive=4|Mal:Olive=ms}} returns 266° 25m 0.6132s
{{Deg2DMS|266.416837|Mal:Olive=4|Mal:Olive=no}} returns 266° 25m 0.6132s
{{Deg2DMS|266.416837|Mal:Olive=4|Mal:Olive=}} returns 266° 25' 0.6132''
See also
[rediger kilde]