Difference between revisions of "Template:Coord/dec2dms/dm1"

From blackwiki
Jump to navigation Jump to search
imported>Voice of Clam
(Fixing bug caused by changes to mod functionality, per editrequest)
imported>Tbhotch
(Removing a protection template from a non-protected page)
Line 1: Line 1:
 
<includeonly>{{#expr:(floor({{{1}}}+1.0/1200.0)) mod 360}}°{{padleft:{{padright:{{#expr:(({{{1}}}-trunc({{{1}}}))*600 round 0) mod 600 / 10}}|{{#ifexpr:(({{{1}}}-trunc({{{1}}}))*600 round 0) mod 600 >= 100|4|3}}|.0}}|4|0}}′</includeonly><noinclude>
 
<includeonly>{{#expr:(floor({{{1}}}+1.0/1200.0)) mod 360}}°{{padleft:{{padright:{{#expr:(({{{1}}}-trunc({{{1}}}))*600 round 0) mod 600 / 10}}|{{#ifexpr:(({{{1}}}-trunc({{{1}}}))*600 round 0) mod 600 >= 100|4|3}}|.0}}|4|0}}′</includeonly><noinclude>
 
Template to convert positive decimal degrees to degrees and minutes, rounded to 1 decimal place
 
Template to convert positive decimal degrees to degrees and minutes, rounded to 1 decimal place
{{pp-template|small=yes}}[[Category:Coord template]][[sl:Predloga:Koord/dec2dms/dm]]</noinclude>
+
[[Category:Coord template]][[sl:Predloga:Koord/dec2dms/dm]]</noinclude>

Revision as of 04:12, 19 December 2012

Template to convert positive decimal degrees to degrees and minutes, rounded to 1 decimal placesl:Predloga:Koord/dec2dms/dm