Difference between revisions of "Template:InfoboxCoordinates"
From Istaria Lexica
(Changed second link behavior to highlight the loc on map if there's a marker found) |
|||
Line 1: | Line 1: | ||
<includeonly>{{InfoboxSimpleLine|name=Coordinates:|value={{#if: {{{x|}}} | [[coordX::{{{x}}}]] | ?}} / {{#if: {{{y|}}} | [[coordY::{{{y}}}]] | ?}}|style=border-top: 1px solid #525252; border-bottom: 1px solid #525252}} | <includeonly>{{InfoboxSimpleLine|name=Coordinates:|value={{#if: {{{x|}}} | [[coordX::{{{x}}}]] | ?}} / {{#if: {{{y|}}} | [[coordY::{{{y}}}]] | ?}}|style=border-top: 1px solid #525252; border-bottom: 1px solid #525252}} | ||
|- | |- | ||
− | | colspan="2" style="text-align:center;" | [http://istariareference.com/istariamap.asp?type=&search={{PAGENAMEE}} Find on map]<br/>{{#if: {{{x|}}} | {{#if: {{{y|}}} | [http://istariareference.com/istariamap.asp?search={{{x}}}/{{{y}}}&loc={{{x}}},{{{y}}} Search the area]}}}}</includeonly><noinclude>{{Clr}}{{Documentation}}[[Category:Infobox Templates]]</noinclude> | + | | colspan="2" style="text-align:center;" | [http://istariareference.com/istariamap.asp?type=&search={{urlencode:{{PAGENAMEE}}|PATH}} Find on map]<br/>{{#if: {{{x|}}} | {{#if: {{{y|}}} | [http://istariareference.com/istariamap.asp?search={{{x}}}/{{{y}}}&loc={{{x}}},{{{y}}} Search the area]}}}}</includeonly><noinclude>{{Clr}}{{Documentation}}[[Category:Infobox Templates]]</noinclude> |
Revision as of 22:24, 13 June 2022
Template documentation (for the template shown above, sometimes hidden or invisible)
Description[edit]
Non-standalone template for adding a coordinates section to an infobox.
- Adds a x/y coordinates line (also sets SMW properties)
- Creates a 'search map' link to istariareference.com's map feature
- Creates an additional 'show on map' link if x/y coordinates exist, showing the area.
Syntax[edit]
{{InfoboxCoordinates |x = |y = }}
Parameters[edit]
{{InfoboxCoordinates |x = Latitude coordinate of the position (ex. 22433) |y = Longitude coordinate of the position (ex. 34200) }}
Visit Template:InfoboxCoordinates/doc to edit this text. (How to: document correctly)