Difference between revisions of "Template:DEC"
Jump to navigation
Jump to search
(interwiki de) |
imported>Saintrain m (Update to also display decimal degrees) |
||
| Line 1: | Line 1: | ||
| − | {{{1}}}° | + | {{{1}}}° {{{2}}}′{{#iferror:{{#expr:{{{3}}}| | {{{3}}}″}}}} ({{DMS2Deg| {{{1|0}}}| {{{2|0}}}| {{{3|0}}}| p={{{p|5}}} }}°)<noinclude> |
| − | |||
| − | + | Usage: {{tlc|DEC|degrees|minutes|seconds| 5=p=precision}}. | |
| − | |||
| − | |||
| − | + | Formats a [[declination]] angle (expressed in degrees, minutes and seconds), and in decimal degrees. | |
| − | + | So {{tlc|DEC|+02|03|09 |5=p=5}} displays as {{DEC|+02|03|09| p=5}} <br> | |
| − | + | and {{tlc|DEC|+02|03}} displays as {{DEC|+02|03}} | |
| − | < | + | The third parameter, '''seconds''', is optional. <br> |
| − | + | The optional fourth parameter, '''p'''(recision), sets number of decimals to display (defaults to 5). | |
==See also== | ==See also== | ||
Revision as of 22:56, 27 August 2008
{{{1}}}° {{{2}}}′ (0°)
Usage: {{DEC|degrees|minutes|seconds|p=precision}}.
Formats a declination angle (expressed in degrees, minutes and seconds), and in decimal degrees.
So {{DEC|+02|03|09|p=5}} displays as +02° 03′9 (2.0525°)
and {{DEC|+02|03}} displays as +02° 03′ (2.05°)
The third parameter, seconds, is optional.
The optional fourth parameter, p(recision), sets number of decimals to display (defaults to 5).
See also
bg:Шаблон:Делта de:Vorlage:Deklination el:Πρότυπο:DEC fa:الگو:DEC ja:Template:DEC sl:Predloga:DEC vi:Tiêu bản:DEC