Template:RA: Difference between revisions
Appearance
interwiki bg, de |
wikademia>Saintrain m Update to also display decimal degrees |
||
| Line 1: | Line 1: | ||
{{{1}}}<sup>h</sup> {{{2}}}<sup>m</sup>{{# | {{{1}}}<sup>h</sup> {{{2}}}<sup>m</sup>{{#iferror:{{#expr:{{{3}}}| | {{{3}}}<sup>s</sup>}}}} ({{HMS2Deg| {{{1|0}}}| {{{2|0}}}| {{{3|0}}}| p={{{p|5}}} }}°)<noinclude> | ||
Usage: {{tlc|RA|hours|minutes|seconds| 5=p=precision}}. | |||
Formats an [[hour angle]] expressed in hours, minutes and seconds, and in decimal degrees. | |||
So {{tlc|RA|12|29|06.7| 5=p=5}} displays as {{RA|12|29|06.7| p=5}} <br> | |||
and {{tlc|RA|12|29}} displays as {{RA|12|29}} | |||
Note that the third parameter, '''seconds''', is optional. <br> | |||
The optional fourth parameter, '''p''', sets number of decimals to display (defaults to 5). | |||
==See also== | ==See also== | ||
Revision as of 22:52, 27 August 2008
{{{1}}}h {{{2}}}m (Template:HMS2Deg°)
Usage: Template:Tlc.
Formats an hour angle expressed in hours, minutes and seconds, and in decimal degrees.
So Template:Tlc displays as 12h 29m6.7 (Template:HMS2Deg°)
and Template:Tlc displays as 12h 29m (Template:HMS2Deg°)
Note that the third parameter, seconds, is optional.
The optional fourth parameter, p, sets number of decimals to display (defaults to 5).
See also
bg:Шаблон:Алфа de:Vorlage:Rektaszension el:Πρότυπο:RA fa:الگو:RA ja:Template:RA sl:Predloga:RA vi:Tiêu bản:RA sv:Mall:RA