Template

MapLine: Difference between revisions

From WhereToday

m (1 revision imported)
No edit summary
Line 1: Line 1:
<noinclude><nowiki>{{MapLine|latitude=|longitude=|start=|title=|description=|subtype=|keywords=|type=|link=|image=}}</nowiki>[[Category:Admin]]</noinclude><includeonly>
<noinclude><nowiki>{{MapLine|latitude=|longitude=|start=|title=|description=|subtype=|keywords=|type=|link=|image=}}</nowiki>[[Category:Admin]]</noinclude><includeonly>{{#ifeq:{{{latitude}}}|||{{#switch:{{{type}}}|commons|artefact=|{{{latitude}}},{{{longitude}}}~{{{description}}}~{{#ifeq:{{{image}}}|||{{filepath:{{#rreplace:{{{image}}}|.*/File:|}}|100px}}<br>}}{{#sub:{{{start}}}|1|4}} {{eq{{!}}{{{keywords}}}}}~{{#ifeq:{{#pos:{{{description}}}|{{PAGENAME}}}}||{{#ifeq:{{{subtype}}}||Blue-marker.png|{{#ifeq:{{#pos:{{{keywords}}}|http}}||m_{{{subtype}}}.png|tm_{{{subtype}}}.png}}}}|Red-marker.png}};
{{#ifeq:{{{latitude}}}|||
}}}}
  {{#switch:{{{type}}}|commons=|{{{latitude}}},{{{longitude}}}~{{{description}}}~{{#ifeq:{{{image}}}|||{{filepath:{{#rreplace:{{{image}}}|.*/File:|}}|100px}}<br>}}{{#sub:{{{start}}}|1|4}} {{{keywords}}}~
</includeonly>
    {{#ifeq:{{#pos:{{{description}}}|{{PAGENAME}}}}||
      {{#ifeq:{{{subtype}}}||Blue-marker.png|{{#ifeq:{{#pos:{{{keywords}}}|tripadvisor}}||m_{{{subtype}}}.png|tm_{{{subtype}}}.png}}}}|Red-marker.png}};
  }}
}}</includeonly>

Revision as of 06:57, 7 May 2024

{{MapLine|latitude=|longitude=|start=|title=|description=|subtype=|keywords=|type=|link=|image=}}