User:Lyger/Sandbox

Work in Progress
I'm currently looking into creating a template to show multiple co-ordinates on a single map. I'm focusing on Gloamwood for now. To see the work in progress, check out User:Lyger/Sandbox/Template.

See the below for how far I've got so far.

Arraymap
*g*

I am no big fan of templates with a fixed number of arguments (where the number should actually be variable) or arguments like x1, x2, x3, x4, ...

Say we want a template like  which looks like this header image

footer The  template splits the argument at each semicolor  and replaces each token "x" with , that is, it calls the   template for each semicolon-separated argument (and adds brackets '(' and ')'). The linebreak at the end specifies the new delimiter added between each output. Now, the  gets single pairs like "12,34", which you split up by using string functions. x: y: The above call to  will then produce header image shimmersand (x:12 y:34)break (x:56 y:78)break (x:90 y:37) footer Note that this works with an arbitrary amount of coordinate pairs. Using an empty argument  works as well and will result in: header image freemarch footer To see it in action, check out User talk:Mardur with the templates Template:Mardur/arraytest and Template:Mardur/arraytest2 --Mardur 16:48, 14 March 2011 (UTC)