Widget talk:Infobox map
Offset[edit]
So I'm not sure where the offset is coming from, but it seems like there is an almost consistent ~20units too high of a value in the y-axis. To be clear (because I know I'm not). I'll record the coordinates [10767, 19664], however in order to get the pin to place where it should be, I need to input | coordinates = [10767, 19644]. For the most part this is a trivial thing, however sometimes it's the difference between the NPC being on the edge of the map, and being out of the map. -Darqam 03:35, 26 December 2016 (UTC)
- It looks like the center of the pin lies on the coordinates, not the point of the pin. J.Tesla (talk) 10:12, 26 December 2016 (UTC)
- That would explain it. And actually the solution would be solved if we used the new icon suggested by Inc on Chieftain's page. -Darqam 15:53, 26 December 2016 (UTC)
- Fixed the anchor offset in the widget. A bit short on time at the moment, will reply to other thoughts at a later date. -Chieftain Alex 12:50, 27 December 2016 (UTC)
- That would explain it. And actually the solution would be solved if we used the new icon suggested by Inc on Chieftain's page. -Darqam 15:53, 26 December 2016 (UTC)
[edit]
So, the infobox map is currently overflowing on PoI pages (e.g. Eldvin Monastery), because the area infobox wraps it into a div with 5px padding left and right. Infobox width of 250px - 10px padding - 245px #npcmap width → 5px overflow.
On NPC pages (e.g. Abbot Mathias), object pages (e.g. Altar of Dwayna), and event pages (e.g. Accompany the Lionguard patrol) there's no padding and no overflow, but the map isn't really centered, due to it having an uneven size of 245px. Plus it almost "touches" the border of the infobox, because of the missing padding.
I'm not sure what's the best way to approach this, but if it were up to me, I'd set the #npcmap
dimensions to a nice, even, square 240×240px, which solves the aforementioned issues. :) -- Blackice (talk) 22:01, 23 November 2017 (UTC)
Nearest Waypoint Override[edit]
With this edit I think it would be a good addition if there was a parameter to manually override the waypoint that is shown on the map. --ItVictor (talk) 00:00, 28 January 2024 (UTC)
- Added a waypoint id option to the widget. I will call this "waypoint id" on the parent template. (has an underscore on actual template to prevent "too many shorthand parameters" widget error which I think occurs when widget parameters have spaces in their names.
{{Infobox map | coordinates = [29570, 101040] | waypoint id = 3427 }}
- -Chieftain Alex 09:35, 28 January 2024 (UTC)