Template talk:Map Point Plus

From Drunkapedia
Revision as of 06:01, 21 January 2009 by imported>Tlosk
Jump to: navigation, search

Tlosk, I noticed if you click the markers on the map, they go to that image's page. Is there any way to have the clickable marker take you an article related to the POI? Just an idea. --Atarax 16:58, 20 January 2009 (CST)

It would certainly be possible to construct a single map that behaved that way. As a template I don't know of a way off hand (because the objects get reused for every page that uses the template. But I seem to remember seeing something like that before, so there's probably some sneaky way of doing it, I'll see if I can find the page where I saw it.
On a side note, the 30 points isn't a hard limit, if anyone runs into a situation where you need more let me know. --Tlosk 19:36, 20 January 2009 (CST)
I found the page and it's an extension that lets you hyperlink various areas of an image to other articles or external links, which wouldn't work here. But it turns out that the extension author is a Mediawiki developer and has expanded on the functionality and it will be incorporated into the next quarterly release of the wiki. It lets you add a link= tag to any use of an image. So once it's released and we upgrade it will be very easy to have the points link to articles, etc. --Tlosk 20:15, 20 January 2009 (CST)
Cool, that sounds nice. I thought if they were variables or something, you could just link to the title of the label. When the upgrade comes out that would be nice though :) --Atarax 21:00, 20 January 2009 (CST)
If it were a straight html page it would be easy to do, but the wiki parsing engine only allows a subset of straight html since anyone can edit it. If there were unique images you could just redirect each image to it's respective topic like we do with icons. I'm looking at the source though and it might be possible to apply our own patch that adds the link tags. --Tlosk 05:00, 21 January 2009 (CST)