Skip to content

Cannot use [[File:|link=page]] syntax in a marker #828

Description

@jrbray1

Setup

  • Maps version: 12.0.0
  • MW version: 1.43.3
  • PHP version: 8/4
  • SMW version (if applicable):

Issue

{{#display_map:
51.0915,1.1877~[[Abbotscliffe Tunnel]]~[[File:Abbotscliffe%20Tunnel%200252.JPG|thumb|100px|link=Abbotscliffe Tunnel]];
| service=leaflet
| zoom=15
| width=600
| height=400
}}

Which hopes to create a link to the article via text and through the image leaves the Map without markers, because it does not handle the equals sign in the link= properly. Removing the link= does display the marker with popup image, but the click through link is to the image file in Commons, not the desired page. Attempts to circumvent this with {{=}} and raw HTML have all failed. And of course you can't even display the image without a link, because that would require link=

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions