gnosygnu / xowa

xowa offline wiki application
Other
376 stars 41 forks source link

Template:Pre2 not behaving correctly #468

Open desb42 opened 5 years ago

desb42 commented 5 years ago

As part of my research on template data, I came across en.wikipedia.org/wiki/Template:Chembox_Structure This was incidental in finding I was missing paramOrder in my processing of templatedata

However, an entirely different issue was identified The Usage section uses en.wikipedia.org/wiki/Template:Chembox_Structure/doc/parameter_list Comparing this chembox Note mediawiki interprets the wikitext, xowa does not

Template:Pre2 seems to be the culprit, and hidden inside that seems to be some fancy nowiki manipulations

(probably related to #259)

desb42 commented 3 years ago

Having done a little more digging it seems that there are times when \

 is not a \

In the screenshot of the enwiki sandbox pre

The wikitext of interest is the line

<pre<includeonly></includeonly>>[[fred]]</pre>

Note the presence of \

This somehow 'delays' or 'overrides' the \

 tag