Forum:Template help

Infobox
This may seem like a weird request but could someone please help me create this template? If you could, the flags image names are Image:Japan.gif, Image:America.gif, and Image:Europe.gif. Thanks! And if you need anymore information I'll be happy to give it!
 * P.S. Make sure you read the description to the left of the image so you can see why it's complicated. -- Bentendo
 * You need someone skilled in JavaScript. Also, what do you want to happen when someone clicks the European flag? --Michaeldsuarez (Talk) (Deeds) 15:13, 30 March 2009 (UTC)
 * When someone clicks a country flag, the information for the game appears. For example, if you were to click the European flag, then the European box would appear, if the name was changed for Europe it would appear, and the release date for Europe would appear. Do you know where I can find someone who is skilled in JavaScript? -- Bentendo
 * Try asking Dantman or Ciencia Al Poder. --Michaeldsuarez (Talk) (Deeds) 18:57, 30 March 2009 (UTC)

Quote template
I recently worked on a quotation template (Citation in french). But i have trouble with some weird behavior.

The template use 3 unnamed parameters. is the cited text. is the name of the source. is an URL to the source but is optional.

So, i use a parser function to see if has any value. If it has one, this is what the parser function should output : [ ] Should produce an external link like we do everydays on wikis. But instead, it render like this : [http://somesite.com/ Source name ].

Here some links to where this is happenning :
 * Exemple page : c:fr.guildwars:kurzick
 * Template page : c:fr.guildwars:modèle:Citation

How it render change if i put all the parameters "on the same line". But it still treat the bracket "as nowiki". Weird. I never had that sort of problem before. — TulipVorlax 01:20, 31 March 2009 (UTC)
 * I think its because of the spaces after  and before.


 * Site officiel


 * http://fr.guildwars.com/
 * &mdash; [[Image:BalisticSig.png]] 01:33, 31 March 2009 (UTC)


 * I looked at "your version" of the kurzick page, and all was showing correctly, this time.
 * But, i wonder why w:c:fr.3d:modèle:Logiciel dont have the same problem. Maybe i have a bad habit of putting each parameter on it's own line but on fr.3d it doesn't seems to cause any problem. — TulipVorlax 01:43, 31 March 2009 (UTC)


 * Last edit to the kurzick page by Cizagna confirmed to me that what i suspected might be true : the wiki treat slightly differently unnamed parameters than named ones. The use of the equal sing seems to have something to do with this... — TulipVorlax 01:52, 31 March 2009 (UTC)


 * I have corrected the problem, the issue you are seeing is that spaces and newlines are stripped from the start and end of parameter values of named parameters, but not from unnamed parameters format as:


 * So the unnamed version HAS TO BE formated as:


 * or you get embedded "newlines" after the #'s or names.


 * I would go with the named parameters 99.9% of the time, they just work better for several reasons, not the least of which is that I just prefer having easy to remember name over more cryptic #'s in my templates.
 * or another solution is:



Edit conflict, was writing this :
 * Ok ! My last issue with this template has been solved the same way Cizagna solved what i was talking about higher on this page.
 * So, i think i'll stop using unnamed parameter for that sort of things (still very usefull in some other templates).
 * The way Cizagna solved this is by adding "2=" and "3=" before the value of second and third parameters. Doing the same with the first parameter solved my problem about the last french quotation mark been alone on a new line.
 * So, i think i'll replaced unnamed parameters with named ones in this template.
 * Thanks guys. — TulipVorlax 02:03, 31 March 2009 (UTC)
 * So, i think i'll replaced unnamed parameters with named ones in this template.
 * Thanks guys. — TulipVorlax 02:03, 31 March 2009 (UTC)