Difference between revisions of "Template:Coordinate/dms"
Jump to navigation
Jump to search
Template documentation
imported>Plastikspork (spaces) |
imported>Plastikspork (for substitution) |
||
| Line 1: | Line 1: | ||
{{{{{|safesubst:}}}#switch:{{{{{|safesubst:}}}#titleparts:{{{1|}}}|1|4}} | {{{{{|safesubst:}}}#switch:{{{{{|safesubst:}}}#titleparts:{{{1|}}}|1|4}} | ||
| − | |N|n|S|s = | + | |N|n|S|s = {{{{{|safesubst:}}}#titleparts:{{{1|}}}|1|1}}{{{{{|safesubst:}}}!}}{{{{{|safesubst:}}}#titleparts:{{{1|}}}|1|2}}{{{{{|safesubst:}}}!}}{{{{{|safesubst:}}}#titleparts:{{{1|}}}|1|3}}{{{{{|safesubst:}}}!}}{{{{{|safesubst:}}}uc:{{{{{|safesubst:}}}#titleparts:{{{1|}}}|1|4}}}} |
| − | |E|e|W|w = | + | |E|e|W|w = {{{{{|safesubst:}}}#titleparts:{{{1|}}}|1|1}}{{{{{|safesubst:}}}!}}{{{{{|safesubst:}}}#titleparts:{{{1|}}}|1|2}}{{{{{|safesubst:}}}!}}{{{{{|safesubst:}}}#titleparts:{{{1|}}}|1|3}}{{{{{|safesubst:}}}!}}{{{{{|safesubst:}}}uc:{{{{{|safesubst:}}}#titleparts:{{{1|}}}|1|4}}}} |
|#default{{{{{|safesubst:}}}#switch:{{{{{|safesubst:}}}#titleparts:{{{1|}}}|1|3}} | |#default{{{{{|safesubst:}}}#switch:{{{{{|safesubst:}}}#titleparts:{{{1|}}}|1|3}} | ||
| − | |N|n|S|s = | + | |N|n|S|s = {{{{{|safesubst:}}}#titleparts:{{{1|}}}|1|1}}{{{{{|safesubst:}}}!}}{{{{{|safesubst:}}}#titleparts:{{{1|}}}|1|2}}{{{{{|safesubst:}}}!}}{{{{{|safesubst:}}}uc:{{{{{|safesubst:}}}#titleparts:{{{1|}}}|1|3}}}} |
| − | |E|e|W|w = | + | |E|e|W|w = {{{{{|safesubst:}}}#titleparts:{{{1|}}}|1|1}}{{{{{|safesubst:}}}!}}{{{{{|safesubst:}}}#titleparts:{{{1|}}}|1|2}}{{{{{|safesubst:}}}!}}{{{{{|safesubst:}}}uc:{{{{{|safesubst:}}}#titleparts:{{{1|}}}|1|3}}}} |
|#default{{{{{|safesubst:}}}#switch:{{{{{|safesubst:}}}#titleparts:{{{1|}}}|1|2}} | |#default{{{{{|safesubst:}}}#switch:{{{{{|safesubst:}}}#titleparts:{{{1|}}}|1|2}} | ||
| − | |N|n|S|s = | + | |N|n|S|s = {{{{{|safesubst:}}}#titleparts:{{{1|}}}|1|1}}{{{{{|safesubst:}}}!}}{{{{{|safesubst:}}}uc:{{{{{|safesubst:}}}#titleparts:{{{1|}}}|1|2}}}} |
| − | |E|e|W|w = | + | |E|e|W|w = {{{{{|safesubst:}}}#titleparts:{{{1|}}}|1|1}}{{{{{|safesubst:}}}!}}{{{{{|safesubst:}}}uc:{{{{{|safesubst:}}}#titleparts:{{{1|}}}|1|2}}}} |
|#default{{{{{|safesubst:}}}#if:{{{1|}}} | |#default{{{{{|safesubst:}}}#if:{{{1|}}} | ||
|{{{{{|safesubst:}}}#iferror: {{{{{|safesubst:}}}#expr: {{{{{|safesubst:}}}#if:1|{{{1}}}}}0 + 1 }} | |{{{{{|safesubst:}}}#iferror: {{{{{|safesubst:}}}#expr: {{{{{|safesubst:}}}#if:1|{{{1}}}}}0 + 1 }} | ||
| | | | ||
|{{{{{|safesubst:}}}#switch:{{{type}}} | |{{{{{|safesubst:}}}#switch:{{{type}}} | ||
| − | |latd|latitude|longd| | + | |latd|latitude|longd|{{{{{|safesubst:}}}!}}{{{type}}} = {{{1}}} |
|#default{{{1}}} | |#default{{{1}}} | ||
}} | }} | ||
Latest revision as of 02:39, 2 January 2011
- default
- default
- default
Usage
{{Coordinate/dms| 20.30 }}→
- default
- default
- default
- default 20.30
{{Coordinate/dms| 20.30 |type=latitude}}→
- default
- default
- default20.30
{{Coordinate/dms| 20.30 |type=longitude}}→
- default
- default
- default
- default 20.30
{{Coordinate/dms| 20/30/10/N }}→ 20|30|10|N{{Coordinate/dms| 20/30/10/E }}→ 20|30|10|E{{Coordinate/dms| 20/30/10/S }}→ 20|30|10|S{{Coordinate/dms| 20/30/10/W }}→ 20|30|10|W{{Coordinate/dms| 20/30.1//N }}→ 20|30.1||N{{Coordinate/dms| 20/30.1//E }}→ 20|30.1||E{{Coordinate/dms| 20/30.1//S }}→ 20|30.1||S{{Coordinate/dms| 20/30.1//W }}→ 20|30.1||W{{Coordinate/dms| 20/30.1/N }}→
- default20|30.1|N
{{Coordinate/dms| 20/30.1/E }}→
- default20|30.1|E
{{Coordinate/dms| 20/30.1/S }}→
- default20|30.1|S
{{Coordinate/dms| 20/30.1/W }}→
- default20|30.1|W
{{Coordinate/dms| 20///N }}→ 20|||N{{Coordinate/dms| 20///E }}→ 20|||E{{Coordinate/dms| 20///S }}→ 20|||S{{Coordinate/dms| 20///W }}→ 20|||W{{Coordinate/dms| 20/N }}→
- default
- default20|N
{{Coordinate/dms| 20/E }}→
- default
- default20|E
{{Coordinate/dms| 20/S }}→
- default
- default20|S
{{Coordinate/dms| 20/W }}→
- default
- default20|W
| Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Subpages of this template. |