Hi, We are creating an off-line version of the wikipedia, but we continue to have problems getting templates to render correctly. So far, we've tracked down several sources of the problem.
Here is another example: In several templates I've tracked down the problem to a call to the #switch function. The function appears to work in that the correct text is output from the function, but several of the tags following it are converted to html entities. Here is a snippet of the Historical_populations template:
<includeonly>{| class="toccolours {{#ifeq: {{{state|}}} | collapsed | collapsible collapsed | }}" style="clear: {{{align|right}}}; width: {{{width|15em}}}; text-align: center; border-spacing: 0; float: {{{align|right}}}; margin: {{ #switch: {{{align|}}} | left = 0 1em 1em 0 | #default = 0 0 1em 1em }};" |- ! colspan="{{#ifeq:{{{percentages}}}|off|2|3}}" class="navbox-title" | <span style="font-size:110%;">{{{title|Historical populations}}}</span> |- style="font-size: 95%;"
If I remove the #switch and hard-code the default text in (0 0 1em 1em), it works fine.
We have the same extensions applied as Wikipedia. We also have the wgUseTidy set to true.
If you have any ideas about how to troubleshoot this one, I'd appreciate it.
Brent
wikitech-l@lists.wikimedia.org