Changes
Jump to navigation
Jump to search
Template:Coord/input/dm (view source)
Revision as of 09:42, 23 January 2015
, 09:42, 23 January 2015Removed manual category tag since it's now coming from Template:Coord/sub doc.
<includeonly>{{Coord/link
|dms-lat={{{1}}}°{{#if:{{{2}}}|{{{2}}}′}}{{{3}}}
|dms-long={{{4}}}°{{#if:{{{5}}}|{{{5}}}′}}{{{6}}}
|dec-lat={{Coord/dms2dec|{{{3}}}|{{{1}}}|0{{{2}}}}}
|dec-long={{Coord/dms2dec|{{{6}}}|{{{4}}}|0{{{5}}}}}
|param={{{1}}}_{{{2}}}_{{{3}}}_{{{4}}}_{{{5}}}_{{{6}}}_{{{7}}}
|default={{#if:{{{format|}}}|{{{format}}}|dms}}
|name={{{name|}}}}}<!--
-->{{#if:{{{4}}}||{{Coord/input/error2|msg=missing longitude (dm format)|sort_ch=#}}}}<!--
-->{{#if:{{{8}}}{{{9}}}{{{10}}}|{{Coord/input/error2|msg=extra parameters (dm format)|sort_ch=#}}}}<!--
-->{{#ifexpr:0{{{1}}}>90|{{Coord/input/error2|msg=latd>90 (dm format)|sort_ch=>}}}}<!--
-->{{#ifexpr:0{{{1}}}<-90|{{Coord/input/error2|msg=latd<-90 (dm format)|sort_ch=<}}}}<!--
-->{{#ifexpr:0{{{2}}}<60||{{Coord/input/error2|msg=latm>=60 (dm format)|sort_ch='}}}}<!--
-->{{#ifexpr:0{{{2}}}<0|{{Coord/input/error2|msg=latm<0 (dm format)|sort_ch='}}}}<!--
-->{{#ifexpr:0{{{4}}}<360||{{Coord/input/error2|msg=longd>=360 (dm format)|sort_ch=>}}}}<!--
-->{{#ifexpr:0{{{4}}}>-360||{{Coord/input/error2|msg=longd<=-360 (dm format)|sort_ch=<}}}}<!--
-->{{#ifexpr:0{{{5}}}<60||{{Coord/input/error2|msg=longm>=60 (dm format)|sort_ch='}}}}<!--
-->{{#ifexpr:0{{{5}}}<0|{{Coord/input/error2|msg=longm<0 (dm format)|sort_ch='}}}}<!--
--></includeonly><noinclude>
{{Documentation|Template:Coord/sub doc}}
</noinclude>
|dms-lat={{{1}}}°{{#if:{{{2}}}|{{{2}}}′}}{{{3}}}
|dms-long={{{4}}}°{{#if:{{{5}}}|{{{5}}}′}}{{{6}}}
|dec-lat={{Coord/dms2dec|{{{3}}}|{{{1}}}|0{{{2}}}}}
|dec-long={{Coord/dms2dec|{{{6}}}|{{{4}}}|0{{{5}}}}}
|param={{{1}}}_{{{2}}}_{{{3}}}_{{{4}}}_{{{5}}}_{{{6}}}_{{{7}}}
|default={{#if:{{{format|}}}|{{{format}}}|dms}}
|name={{{name|}}}}}<!--
-->{{#if:{{{4}}}||{{Coord/input/error2|msg=missing longitude (dm format)|sort_ch=#}}}}<!--
-->{{#if:{{{8}}}{{{9}}}{{{10}}}|{{Coord/input/error2|msg=extra parameters (dm format)|sort_ch=#}}}}<!--
-->{{#ifexpr:0{{{1}}}>90|{{Coord/input/error2|msg=latd>90 (dm format)|sort_ch=>}}}}<!--
-->{{#ifexpr:0{{{1}}}<-90|{{Coord/input/error2|msg=latd<-90 (dm format)|sort_ch=<}}}}<!--
-->{{#ifexpr:0{{{2}}}<60||{{Coord/input/error2|msg=latm>=60 (dm format)|sort_ch='}}}}<!--
-->{{#ifexpr:0{{{2}}}<0|{{Coord/input/error2|msg=latm<0 (dm format)|sort_ch='}}}}<!--
-->{{#ifexpr:0{{{4}}}<360||{{Coord/input/error2|msg=longd>=360 (dm format)|sort_ch=>}}}}<!--
-->{{#ifexpr:0{{{4}}}>-360||{{Coord/input/error2|msg=longd<=-360 (dm format)|sort_ch=<}}}}<!--
-->{{#ifexpr:0{{{5}}}<60||{{Coord/input/error2|msg=longm>=60 (dm format)|sort_ch='}}}}<!--
-->{{#ifexpr:0{{{5}}}<0|{{Coord/input/error2|msg=longm<0 (dm format)|sort_ch='}}}}<!--
--></includeonly><noinclude>
{{Documentation|Template:Coord/sub doc}}
</noinclude>