Board Thread:Support Requests - Getting Technical/@comment-32507313-20170623151216/@comment-32507313-20170626204208

It shouldn't matter if parameters are missing.

I know its not inherently an HTML tag problem, I've transcluded html tags before. But in this case something wrong is happening when the parameters are being filled. I think the conditionals are being evaluated at the wrong time (after the template is being injected) which results in the html being in an incorrect state and therefore put into a paragraph. I converted a portion of the code to the wikitest format, and that worked as expected.




 * - style="text-align: center;" |

I'm thinking this is a Wikia problem since this code works on Wikpedia. The fact that this table is rendered correctly in the VE implies that its a difference in processing. (Perhaps the VE back-end evaluates the conditionals before rendering the html.)

From my knowledge of how Wikimedia works, I think this is what's happening with Wikia's transclusion:


 * Template is called
 * Template is transcluded into page
 * Invalid html tags are put into paragraphs and surrounded by quotes (if statements have not been evaluated?)
 * Conditionals are evaluated

Which would result in the discrepancy in the HTML vs using wikitext table format.