Thread:Pecoes/@comment-3183460-20130624160555/@comment-3508190-20130712094452

I've thought about it some more and here's what I'm going to do unless you have objections:

I'll add a new (optional) parameter to Template:Zone_Map_Note. The new parameter will be the last of the lot. This is what it would look like: In the absence of a value for this parameter the note gets added to the legend by name and into the category that's associated with the icon. But if this parameter is found, it takes precedence.

Here's the parameter on its own: People :: Theresa Denman ;; Profession Trainer :: Jewelcrafting,Leathercrafting

This means: Create two divisions in the legend:  and. (Divisions are separated by a double semicolon. You can create only a single division, of course - or more than two.) Add  to the   division and   to the   division. (Division names and content are separated by a double colon.) The divisions  and   are magic. Their contents will be split apart at the commas and an indexed entry will be created for each subdivision. (Adding new magic divisions can only be done by editing the JavaScript code, but it should be quick and painless.)So all in all the above would create three legend entries. The tooltip for each of them will be

I think this solution gives you much more freedom to design the legend as you see fit. There's only so much guess work an algorithm will get right after all :P  I will write a little bot that crawls the wiki and attempts to add that new parameter to every call of Template:Zone_Map_Note. Since this parameter does not get used at the moment, this won't disrupt anything. The bot will use the same algorithm the JavaScript currently uses, so the results will vary. On the Stormwind City map from which this map note was taken, it will fail more often than not. You will have to add the last parameter by hand for most map notes. How many maps will require hand-editing, I cannot say. But the worst that can happen is that the legend doesn't look tidy and is less useful than it could be. It's not going to explode.

EDIT:

You might want to give my Coesbot bot access or I'll have to rack up a huge amount of edits to my main account.