Template:MapLink: Difference between revisions

Want an adless experience? Log in or Create an account.
make a map link if called by api, otherwise make a wiki link
(Created page with "<span class="internal-link" {{#if:{{{3|}}}|data-lat="{{{2}}}" data-lng="{{{3}}}"|data-target="{{{1}}}"}}>{{{1}}}</span><noinclude>{{Documentation}}</noinclude>")
 
(make a map link if called by api, otherwise make a wiki link)
Line 1: Line 1:
<span class="internal-link" {{#if:{{{3|}}}|data-lat="{{{2}}}" data-lng="{{{3}}}"|data-target="{{{1}}}"}}>{{{1}}}</span><noinclude>{{Documentation}}</noinclude>
<includeonly>{{#ifeq:{{PAGENAME}}|API|<span class="internal-link" {{#if:{{{3|}}}|data-lat="{{{2}}}" data-lng="{{{3}}}"|data-target="{{{1}}}"}}>{{{1}}}</span>|[[{{{1}}}]]}}</includeonly><noinclude>{{Documentation}}</noinclude>