No edit summary
No edit summary
Line 10: Line 10:
----
----


That suggestion proved to be quite propitious. There are some quirks to the way, or more accurately the order, of element rendering in the wiki engine that make some things that would otherwise be simple just about impossible or verbose to the point of making things 10 times longer to code than would otherwise be the case. I don't have any formal training and just pick things up as I need them to do something, which means that sometimes there's a simple way to do something but I just haven't come across it before. In thinking about the best way to do a mix of named and unnamed parameters (to allow a variety of markers) I chanced across a way to do this that is much much simpler, and will also allow markers to overlap and have captions (so if there are multiple markers you can hover your mouse over it and the name/description will popup).
I ended up making two templates, the first one, [[Template:Map Point]], is small and can plot 1-4 points with the same marker, it can also show popup captions for the points but they are optional (if no marker is specified it defaults to that large one) to make for a simple template to edit info into for most things that will only have one location.  


Mainly I just wanted to let you know that I'm working on a more robust template now and the syntax is likely to change so you might want to hold off adding it to any more pages for the moment. And if you think of anything else to add let me know. Also do you think 1/4 maps would be sufficient or would there be any benefit in going to 16ths? There's some examples of the quarters as well as overlapping markers (and the hover captions) at the bottom of [[Template:Sandbox]] for you to look at. Also if you have a concrete idea on what you want the markers to look like you let me know. If not I have some ideas. --[[User:Tlosk|Tlosk]] 14:42, 18 January 2009 (CST)
{{Map Point|34.9|N|54.5|E|Abandoned Subway}}
 
The second template, [[Template:Map Point Plus]], can show up to 30 points, uses a larger map, and can show a particular marker for each point like you suggested. It's also easy to add new markers  (I made a dungeon marker as an example). --[[User:Tlosk|Tlosk]] 15:28, 20 January 2009 (CST)
 
{{Map Point Plus
|43.4|N|27.0|E|Small|Rat House
|42.5|N|26.8|E|Small|Abandoned Barn
|43.3|N|26.6|E|Small|Drudge House
|43.1|N|26.5|E|Small|Banderling House
|42.9|N|26.3|E|Small|Empyrean Statue
|42.6|N|25.9|E|Small|Empty House
|42.4|N|25.9|E|Small|Empty Barn
|42.1|N|25.8|E|Small|Empty Hut
|41.4|N|26.3|E|Small|Lich House
|41.4|N|27.2|E|Small|Hanging Corpse Ruin
|34.9|N|54.5|E|Dungeon|Abandoned Subway
}}

Revision as of 21:28, 20 January 2009

Or leave a message below:


I added all the dispels to the sandbox, and also finished off the positive redirects. You might want to double check that it looks right, but I think the dispels will fit in nicely with your redirect format. --Atarax 11:21, 9 January 2009 (CST)


I ended up making two templates, the first one, Template:Map Point, is small and can plot 1-4 points with the same marker, it can also show popup captions for the points but they are optional (if no marker is specified it defaults to that large one) to make for a simple template to edit info into for most things that will only have one location.


Map Dereth Abandoned Subway


The second template, Template:Map Point Plus, can show up to 30 points, uses a larger map, and can show a particular marker for each point like you suggested. It's also easy to add new markers (I made a dungeon marker as an example). --Tlosk 15:28, 20 January 2009 (CST)


Map Dereth