Forum:Problem with enhanced editing

Hello all. Over at the WoT wiki we have a slight problem with the enhanced editing window. When a user uses a template, it breaks up the template coding onto several different lines. This messes with the format of that particular template. See here for an example. I've tried to have the user manually type in the template with the parameters, but it is still breaking up the code. Anyone else having this problem? Willie -  HtS  15:47, August 24, 2010 (UTC)

I'm pretty sure thats what the RTE is supposed to do, so, just use source mode? -- Light Daxter -  Talk  16:02, August 24, 2010 (UTC)


 * This might be due to the enhanced editor removes single lineskips. Wiki editing requires two lineskips to get one linkskip in the article, so even if you're making something in the basic editor which just needs clearing from a table pipe  you still have to use two lineskips. Could be that ol' problem. Duskey ( talk ) 16:15, August 24, 2010 (UTC)


 * The problem seems to be this: if you edit the template with the RTE template editor, it puts it into the wikitext in "pretty" format, with a parameter on each line. In effect, this inserts a line break at the end of each unnamed parameter. That wouldn't matter with named parameters (those with "=" sign) because the wiki strips whitespace off the end of these; but with unnamed parameters, it does. While this is a bug that Wikia should fix, the workaround is to strip the line break from the parameter. This can be done with code like, since the #if: parser functions strips whitespace off the ends of its parameters. I changed your Template:quote this way. -- ◄mendel► 17:23, August 24, 2010 (UTC)

Thanks Mendel! That seems to have done the trick. Willie -  HtS  17:40, August 24, 2010 (UTC)