Difference between revisions of "Template:DEC"

From blackwiki
Jump to navigation Jump to search
imported>Fabio Bettani
m
imported>Bachinchi
(move to doc)
Line 1: Line 1:
 
{{{1}}}&deg;{{#ifeq: {{{2|+}}}|{{{2|-}}}|&nbsp;{{{2|}}}&prime;|}}{{#ifeq: {{{3|+}}}|{{{3|-}}}|&nbsp;{{{3|}}}&Prime;|}}<noinclude>
 
{{{1}}}&deg;{{#ifeq: {{{2|+}}}|{{{2|-}}}|&nbsp;{{{2|}}}&prime;|}}{{#ifeq: {{{3|+}}}|{{{3|-}}}|&nbsp;{{{3|}}}&Prime;|}}<noinclude>
<nowiki>{{{2}}}</nowiki>&prime;&nbsp;<nowiki>{{{3}}}</nowiki>&Prime;<br><br>
+
{{documentation}}
 
 
=Documentation=
 
<nowiki>{{DEC|degrees|minutes|seconds}}</nowiki>
 
:'''{{DEC|degrees|minutes|seconds}}'''
 
 
 
Note that the second and third arguments, '''seconds''' &amp; '''minutes''', are optional.
 
 
 
<nowiki>{{DEC|degrees|minutes}}</nowiki>
 
:'''{{DEC|degrees|minutes}}'''
 
 
 
<nowiki>{{DEC|degrees}}</nowiki>
 
:'''{{DEC|degrees}}'''
 
 
 
==See also==
 
* [[template:RA]]
 
* {{tl|Sky}}
 
 
 
[[Category:Astronomy formatting and function templates|{{PAGENAME}}]]
 
[[Category:Coordinates templates|{{PAGENAME}}]]
 
 
 
[[bg:Шаблон:Делта]]
 
[[da:Skabelon:DEC]]
 
[[de:Vorlage:Deklination]]
 
[[el:Πρότυπο:DEC]]
 
[[es:Plantilla:DEC]]
 
[[eo:Ŝablono:DEK]]
 
[[fa:الگو:DEC]]
 
[[gl:Modelo:DEC]]
 
[[ja:Template:DEC]]
 
[[nn:Mal:Dek]]
 
[[sl:Predloga:DEC]]
 
[[sv:Mall:DEK]]
 
[[vi:Tiêu bản:DEC]]
 
[[zh:模板:DEC]]
 
 
</noinclude>
 
</noinclude>

Revision as of 19:12, 26 July 2010

{{{1}}}°

Template documentation[view] [edit] [history] [purge]

{{{1}}}° {{{2}}}′ {{{3}}}″

Usage

{{DEC|degrees|minutes|seconds}}

degrees° minutes′ seconds″

Note that the second and third arguments, seconds & minutes, are optional.

{{DEC|degrees|minutes}}

degrees° minutes′

{{DEC|degrees}}

degrees°

When using in tables, leave a space between the | and the {{DEC}}, or else the table will break if the degrees begin with "+".

See also