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 two sources of the problem.
Here is one example: One is when tags are not closed properly. Here is an example from http://en.wikipedia.org/wiki/South_Africa. This is a portion of the page near the top that is part of the Infobox parameters...
<snip> |symbol_type=Coat of arms |image_map=South_Africa_(orthographic_projection).svg |national_motto=''{{unicode|!ke e: ǀxarra ǁke}}''{{spaces|2|}}<small>([[ǀXam language|ǀXam]])<br/>"Unity In Diversity" |national_anthem=[[National anthem of South Africa]] </snip>
Notice that the <small> tag is not closed.
On our version of the page many of the subsequent <tr> and <td> tags are rendered as html entities and this ruins the layout of the page. I'm not sure why this is works in the current on-line version but not ours. (Another example is the Refimprove template--check the latest change by Plastikspork--this makes any page with the Refimprove template broken).
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
On Tue, Sep 14, 2010 at 10:52 AM, Brent Palmer bop@brentopalmer.com wrote:
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.
Did you install Tidy or just turn the setting on?
Ahh, good question. But yes, we did install Tidy. It's the windows version though if that makes a difference. We are reasonably sure that it's working (it definitely works independently of MW) because a few small rendering problems were fixed, but the major ones described here weren't affected. We aren't exactly sure where or when Tidy is invoked (after each template is parsed?). We haven't yet tried to determine if it is supposed to be cleaning up something that it's not.
Thanks! Brent
On 09/14/2010 02:37 PM, OQ wrote:
On Tue, Sep 14, 2010 at 10:52 AM, Brent Palmerbop@brentopalmer.com wrote:
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.
Did you install Tidy or just turn the setting on?
Brent Palmer wrote:
Ahh, good question. But yes, we did install Tidy. It's the windows version though if that makes a difference. We are reasonably sure that it's working (it definitely works independently of MW) because a few small rendering problems were fixed, but the major ones described here weren't affected. We aren't exactly sure where or when Tidy is invoked (after each template is parsed?). We haven't yet tried to determine if it is supposed to be cleaning up something that it's not.
Thanks! Brent
If you enabled tidy after importing the articles, did you purge them? That <small> is closed for me with tidy, but the extra </div> in the "Further reading" section does give me problems.
wikitech-l@lists.wikimedia.org