Steps to replicate the issue (include links if applicable):
- From our MediaWiki instance (https://www.limswiki.org/index.php/Main_Page), create a new page using pure transclusion of a Wikipedia (WP) page containing inline math. For our example, we'll use
{{wikipedia::Detection limit}}
, as found here: https://www.limswiki.org/index.php/Detection_limit.
- Save the code. On the now transcluded page, non-inline math renders properly, but inline math fails to display properly.
- Other pages that are examples include https://www.limswiki.org/index.php/Concentration and https://www.limswiki.org/index.php/Data_integration .
What happens?:
Pure transcluded inline math is bungled on the HTML side. When you look at the code using the browser inspect tool:
- The semantics code is removed from between the math tags and out of the p tags, and its placed into its own set of pre tags.
- The fallback image code is placed after both closing span tags and after the pre'd semantics tags.
- See the following image:
What should have happened instead?:
Pure transcluded inline math code should:
- Place the semantics code between the math tags, not in a new set of pre tags.
- The fallback image code should be placed after the first span tag closes but before the second span tag closes.
- See the following image:
What else is noteworthy about this problem?:
Inline math is working fine on our MediaWiki instance. This can be confirmed by looking at native content with math (e.g., https://www.limswiki.org/index.php/User:Shawndouglas/sandbox/sublevel6) and by changing from pure transclusion to raw transclusion (e.g., https://www.limswiki.org/index.php?title=Detection_limit&oldid=49362).
At this point, we don't know what could be causing purely transcluded inline math to be rendered as under "What happened?"
Software version (skip for WMF-hosted wikis like Wikipedia):
Us: https://www.limswiki.org/index.php/Special:Version
MW 1.36.1 and Math extension code that is compatible with that MW version (3.0.0). Again, local Math is working fine.
Other information (browser name/version, screenshots, etc.):
Happens in all browsers, including Chrome-based and Safari. Have included screenshots above. Other useful info:
WP page: https://en.wikipedia.org/wiki/Detection_limit
Our wiki's transclusion of that page: https://www.limswiki.org/index.php/Detection_limit