Difference between revisions of "Template:Coordinates"
From LFS Manual
Jump to navigationJump to search| Line 13: | Line 13: | ||
) / 10 | ) / 10 | ||
}}" | }}" | ||
| − | {{#ifexpr: {{{1}}} >= 0 | N | S }} | + | {{#ifexpr: {{{1}}} >= 0 | N | S }} <!-- Longitude --> |
| − | |||
| − |   | ||
| − | |||
| − | <!-- Longitude --> | ||
{{#expr: floor(abs({{{2}}})) }}° | {{#expr: floor(abs({{{2}}})) }}° | ||
{{#expr: floor((abs({{{2}}}) - floor(abs({{{2}}}))) * 60) }}' | {{#expr: floor((abs({{{2}}}) - floor(abs({{{2}}}))) * 60) }}' | ||
Revision as of 15:51, 28 February 2026
Template documentation
Usage
| Markup | Renders as |
|---|---|
{{Coordinates|51.4016|0.1355}}
|
51° 24' 5.8" N 0° 8' 7.8" E |
| Markup | Renders as |
|---|---|
{{Coordinates|51.4016|-0.1355}}
|
51° 24' 5.8" N 0° 8' 7.8" W |
| Markup | Renders as |
|---|---|
{{Coordinates|-51.4016|0.1355}}
|
51° 24' 5.8" S 0° 8' 7.8" E |
| Markup | Renders as |
|---|---|
{{Coordinates|-51.4016|-0.1355}}
|
51° 24' 5.8" S 0° 8' 7.8" W |