User:APatro (WMF)/OutPutPage::parse

Jump to navigation Jump to search

Upon changing the code to use parseAsContent instead of the deprecated parse method, we noticed that external link icons are missing on the translation aid section on


<nowiki>#:</nowiki>  [ papers/static/papers/refresh.js:96]<br />



<div class="mw-parser-output"><p>#:  <a rel="nofollow" class="external text" href="">papers/static/papers/refresh.js:96</a><br/>



<p>#:  <a rel="nofollow" class="external text" href="">papers/static/papers/refresh.js:96</a><br />

Output from parse is wrapped in a div tag with class mw-parser-output whereas the output from parseAsContent is not. It is already documented that,

since 1.32, due to untidy output and inconsistent wrapper; use parseAsContent() if $interface is default value or false, or else parseAsInterface() if $interface is true.

The themes (checked with Vector & Timeless) are using the selector .mw-parser-output .external to style the content which is causing the external link to not appear.

I think it is expected for the parser content to be wrapped inside a container with .mw-parser-output class.