Difference between revisions of "Template:DEC/doc"

From blackwiki
Jump to navigation Jump to search
imported>Ahecht
imported>Beland
(When using in tables, leave a space between the | and the {{tl|DEC}}, or else the table will break if the degrees begin with "+".)
 
(2 intermediate revisions by 2 users not shown)
Line 14: Line 14:
 
<nowiki>{{DEC|degrees}}</nowiki>
 
<nowiki>{{DEC|degrees}}</nowiki>
 
:'''{{DEC|degrees}}'''
 
:'''{{DEC|degrees}}'''
 +
 +
When using in tables, leave a space between the | and the {{tl|DEC}}, or else the table will break if the degrees begin with "+".
  
 
==See also==
 
==See also==
Line 20: Line 22:
 
* {{tl|Decdeg}}
 
* {{tl|Decdeg}}
 
* {{tl|Sky}}
 
* {{tl|Sky}}
 +
* {{tl|Need sky}}
  
<includeonly>
+
<includeonly>{{Sandbox other||
 
[[Category:Astronomy formatting and function templates|{{PAGENAME}}]]
 
[[Category:Astronomy formatting and function templates|{{PAGENAME}}]]
 
[[Category:Coordinates templates|{{PAGENAME}}]]
 
[[Category:Coordinates templates|{{PAGENAME}}]]
  
</includeonly>
+
}}</includeonly>

Latest revision as of 22:14, 10 June 2020

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

Usage

{{DEC|degrees|minutes|seconds}}

Template:Str rep° minutes′ seconds″

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

{{DEC|degrees|minutes}}

Template:Str rep° minutes′

{{DEC|degrees}}

Template:Str rep°

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