Template:DEC: Difference between revisions
Appearance
interwiki de |
wikademia>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}}}′ (Template:DMS2Deg°)
Usage: Template:Tlc.
Formats a declination angle (expressed in degrees, minutes and seconds), and in decimal degrees.
So Template:Tlc displays as +02° 03′9 (Template:DMS2Deg°)
and Template:Tlc displays as +02° 03′ (Template:DMS2Deg°)
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