Template:Pin: Difference between revisions

Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.
add leading zero only if first character is decimal point
(make sure there's a 0 to the left of the decimal point)
(add leading zero only if first character is decimal point)
Line 1: Line 1:
{"type":"Feature","geometry":{"type":"Point","coordinates":[{{padleft:{{{lng}}}|6}},{{padleft:{{{lat}}}|6}}]},"properties":{"type":"{{{type|other}}}","name":"{{{name}}}","link":"{{{link|{{{name}}}}}}"}},
{"type":"Feature","geometry":{"type":"Point","coordinates":[{{#ifeq:{{#sub:{{{lng}}}|0|1}}|.|0|}}{{{lng}}},{{#ifeq:{{#sub:{{{lat}}}|0|1}}|.|0|}}{{{lat}}}]},"properties":{"type":"{{{type|other}}}","name":"{{{name}}}","link":"{{{link|{{{name}}}}}}"}},

Navigation menu