Difference between revisions of "Template:InfoboxCoordinates"
From Istaria Lexica
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
|- | |- | ||
− | | colspan="2" style="text-align: center; border-top: 1px solid #525252; padding: 5px 0px" | <span style="font-size: 11px">Coordinates:</span><br/><span style="font-size: 20px; font-weight: bold">{{#if:{{{x|}}}|{{{x}}}{{#set:x={{{x}}}}}|?}} / {{#if:{{{y|}}}|{{{y}}}{{#set:y={{{y}}}}}|?}}</span><hr style="background-color: #696969; width: 20%; margin: 5px auto" /><div style="font-size: 12px">istariareference.com:<br /><span class="plainlinks newwindow">[http://istariareference.com/istariamap.asp?type=&search={{PAGENAMEE}} Locate {{PAGENAME}} on map]</span>{{#if:{{{x|}}}|{{#if:{{{y|}}}|<br/><span class="plainlinks newwindow">[http://istariareference.com/istariamap.asp?search={{formatnum:{{{x}}}|R}}/{{formatnum:{{{y}}}|R}}&loc={{formatnum:{{{x}}}|R}},{{formatnum:{{{y}}}|R}}&map={{anchorencode:{{Determine Istariareference Map|{{formatnum:{{{x}}}|R}}|{{formatnum:{{{y}}}|R}}}}}} Search the coordinates]</span>}}}}</includeonly><noinclude>{{Documentation}}[[Category:Infobox Templates]][[Category:Non-standalone Templates]]</noinclude> | + | | colspan="2" style="text-align: center; border-top: 1px solid #525252; padding: 5px 0px" | <span style="font-size: 11px">Coordinates:</span><br/><span style="font-size: 20px; font-weight: bold">{{#if:{{{x|}}}|{{{x}}}{{#set:x={{{x}}}}}|?}} / {{#if:{{{y|}}}|{{{y}}}{{#set:y={{{y}}}}}|?}}</span><hr style="background-color: #696969; width: 20%; margin: 5px auto" /><div style="font-size: 12px">istariareference.com:<br /><span class="plainlinks newwindow">[http://istariareference.com/istariamap.asp?type=&search={{PAGENAMEE}} Locate {{PAGENAME}} on map]</span>{{#if:{{{x|}}}|{{#if:{{{y|}}}|<br/><span class="plainlinks newwindow">[http://istariareference.com/istariamap.asp?search={{formatnum:{{{x}}}|R}}/{{formatnum:{{{y}}}|R}}&loc={{formatnum:{{{x}}}|R}},{{formatnum:{{{y}}}|R}}&map={{anchorencode:{{Determine Istariareference Map|{{formatnum:{{{x}}}|R}}|{{formatnum:{{{y}}}|R}}}}}} Search the coordinates]</span>}}}}</includeonly><noinclude>{{Documentation}}[[Category:Infobox Templates]][[Category:Non-standalone Templates]][[Category:Add Data Templates]]</noinclude> |
Revision as of 18:45, 21 October 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)