Difference between revisions of "Template:Coord/dec2dms/dms1"
< Template:Coord | dec2dms
Jump to navigation
Jump to search
imported>קיפודנחש (includeonly + minidoc.) |
imported>Hike395 (fix, although template is currently unused) |
||
| Line 1: | Line 1: | ||
| − | <includeonly>{{#expr:{{{1}}} mod 360}}°{{padleft:{{#expr:{{{1}}} * 60 mod 60}}|2|0}}′{{padleft:{{#expr:({{{1}}} * 36000 round 0) mod 600 / 10}}| | + | <includeonly>{{#expr:floor({{{1}}}+1/72000) mod 360}}°{{padleft:{{#expr:floor(({{{1}}}-trunc({{{1}}}))*60+1/1200) mod 60}}|2|0}}′{{padleft:{{padright:{{#expr:(({{{1}}}-trunc({{{1}}}))*36000 round 0) mod 600 / 10}}|{{#ifexpr:(({{{1}}}-trunc({{{1}}}))*36000 round 0) mod 600 >= 100|4|3}}|.0}}|4|0}}″</includeonly><noinclude> |
| − | This is a helper template for [[Template:Coord]], converting longitude or latitude in decimal notation to a Degrees/Minutes/Seconds display. | + | This is a helper template for [[Template:Coord]], converting a positive longitude or latitude in decimal notation to a Degrees/Minutes/Seconds display. Currently unused, but probably should not be deleted, because it may be used in the future. |
[[Category:Coord template]] | [[Category:Coord template]] | ||
</noinclude> | </noinclude> | ||
Revision as of 16:43, 18 December 2012
This is a helper template for Template:Coord, converting a positive longitude or latitude in decimal notation to a Degrees/Minutes/Seconds display. Currently unused, but probably should not be deleted, because it may be used in the future.