Difference between revisions of "Template:Coor/prec dms"

From blackwiki
Jump to navigation Jump to search
imported>Quarl
(«60 words changed»)
imported>Quarl
(«"= {{{1}}} round 0 and {{{2}}} round 2 =" → " {{{1}}} round 0 and {{{2}}} round 2 ", "= {{{1}}}*60 round 0 and {{{2}}}*60 round 2 =" → " {{{1}}}*60 round 0 and {{{2}}}*60 round 2 "»)
Line 1: Line 1:
 
<includeonly>{{#ifexpr:
 
<includeonly>{{#ifexpr:
   {{{1}}} round 2 == {{{1}}} round 0 and {{{2}}} round 2 == {{{2}}} round 0
+
   {{{1}}} round 2 = {{{1}}} round 0 and {{{2}}} round 2 = {{{2}}} round 0
 
   |d
 
   |d
 
   |{{#ifexpr:
 
   |{{#ifexpr:
       {{{1}}}*60 round 2 == {{{1}}}*60 round 0 and {{{2}}}*60 round 2 == {{{2}}}*60 round 0
+
       {{{1}}}*60 round 2 = {{{1}}}*60 round 0 and {{{2}}}*60 round 2 = {{{2}}}*60 round 0
 
         |dm
 
         |dm
 
         |dms}}}}</includeonly><noinclude>
 
         |dms}}}}</includeonly><noinclude>
 
{{template doc}}
 
{{template doc}}
 
</noinclude>
 
</noinclude>

Revision as of 05:21, 18 March 2007

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

Given two decimal numbers which were converted from d/m/s, return the coordinate precision:

ddegrees
dmdegrees, minutes
dmsdegrees, minutes, seconds

Examples:

{{coor/prec}}d
{{coor/prec}}d
{{coor/prec}}dm
{{coor/prec}}dm
{{coor/prec}}dms
{{coor/prec}}dms