Template:coord: Difference between revisions

From Thesaurus Inscriptionum Raeticarum
Jump to navigationJump to search
No edit summary
No edit summary
 
Line 11: Line 11:
__NOTOC__
__NOTOC__
[[Category:Text Module]]
[[Category:Text Module]]
</noinclude><includeonly>{{#vardefine: ok|1}}{{#ifeq: {{{1|}}}||{{#vardefine: ok|0}}}}{{#ifeq: {{{2|}}}||{{#vardefine: ok|0}}}}{{#ifeq: {{#var: ok}}|1|[http://stable.toolserver.org/geohack/geohack.php?language=en&params={{{1|}}}_N_{{{2|}}}_E{{#if: {{{3|}}}|{{#vardefine: p |{{#replace: {{{3|}}}| |%20}}}}&pagename={{#var: p}}}} [[coordinate::{{{1|}}} N, {{{2|}}} E]]][[coordinate_n::{{{1|}}}| ]][[coordinate_e::{{{2|}}}| ]]|[undefined]}}</includeonly>
</noinclude><includeonly>{{#vardefine: ok|1}}{{#ifeq: {{{1|}}}||{{#vardefine: ok|0}}}}{{#ifeq: {{{2|}}}||{{#vardefine: ok|0}}}}{{#ifeq: {{#var: ok}}|1|[http://tools.wmflabs.org/geohack/geohack.php?language=en&params={{{1|}}}_N_{{{2|}}}_E{{#if: {{{3|}}}|{{#vardefine: p |{{#replace: {{{3|}}}| |%20}}}}&pagename={{#var: p}}}} [[coordinate::{{{1|}}} N, {{{2|}}} E]]][[coordinate_n::{{{1|}}}| ]][[coordinate_e::{{{2|}}}| ]]|[undefined]}}</includeonly>

Latest revision as of 17:28, 30 June 2015

This template serves to define and display coordinates.

Example

{{coord|45.706|11.348|MA-1 antler}}

will display

45° 42' 21.60" N, 11° 20' 52.80" E