You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cannot use [[File:|link=page]] syntax in a marker #828
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=
This is because "=" is used by mediawiki parser as a seperator for arguments for parser functions (param=value).
If one uses the equal sign within the locationtext (no matter at which position), mediawiki parser will fail to deliver the text correctly to the Maps extension. So it's not a bug in Maps.
It can be solved for example by editing the File extensions/Maps/src/WikitextParsers/LocationParser.php.
This adds a regex replace that replaces "link:" to "link=" in image definitions within the location text. Afterwards you can add links to images using ":" instead of "=". By using the colon sign, the text gets delivered correctly to Maps and within Maps it is replaced by the equal sign to that it get parsed correctly to a linked image.
Thanks for looking into this. Its making progress, as now the image appears, but the pop-up title and pop-up text now appear in separate boxes, as can be seen here and at https://warlike.info/Sandbox. I am using 12.0.0
Activity
baillyk commentedon Jun 5, 2026
This is because "=" is used by mediawiki parser as a seperator for arguments for parser functions (param=value).
If one uses the equal sign within the locationtext (no matter at which position), mediawiki parser will fail to deliver the text correctly to the Maps extension. So it's not a bug in Maps.
It can be solved for example by editing the File extensions/Maps/src/WikitextParsers/LocationParser.php.
in Maps 12.1.5, change Line 81-83 from:
to
This adds a regex replace that replaces "link:" to "link=" in image definitions within the location text. Afterwards you can add links to images using ":" instead of "=". By using the colon sign, the text gets delivered correctly to Maps and within Maps it is replaced by the equal sign to that it get parsed correctly to a linked image.
Example:
jrbray1 commentedon Jul 3, 2026
Thanks for looking into this. Its making progress, as now the image appears, but the pop-up title and pop-up text now appear in separate boxes, as can be seen here and at https://warlike.info/Sandbox. I am using 12.0.0
{{#display_map:
51.0915,1.1877~[[Dover Castle]]~no image;
| service=leaflet
| zoom=15
| width=600
| height=400
}}
{{#display_map:
51.0915,1.1877~[[Dover Castle]]
[[File:Abbotscliffe%20Tunnel%200252.JPG|thumb|100px|link:Abbotscliffe Tunnel]];[[Dover Castle]] no tilde [[File:Abbotscliffe%20Tunnel%200252.JPG|thumb|100px|link:Abbotscliffe Tunnel]];| service=leaflet
| zoom=15
| width=600
| height=400
}}
{{#display_map:
51.0915,1.1877
| service=leaflet
| zoom=15
| width=600
| height=400
}}
baillyk commentedon Jul 6, 2026
Not sure, but try to remove the "thumb" option from your images
jrbray1 commentedon Jul 6, 2026