MediaWiki currently generates for the HTML attribute lang some language codes which are not conform to BCP 47:
- de-formal: https://validator.w3.org/nu/?doc=https%3A%2F%2Fwww.mediawiki.org%2Fwiki%2FSpecial%3ASpecialPages%3Fuselang%3Dde-formal
- en-rtl: https://validator.w3.org/nu/?doc=https%3A%2F%2Fwww.mediawiki.org%2Fwiki%2FSpecial%3ASpecialPages%3Fuselang%3Den-rtl
- nl-informal: https://validator.w3.org/nu/?doc=https%3A%2F%2Fwww.mediawiki.org%2Fwiki%2FSpecial%3ASpecialPages%3Fuselang%3Dnl-informal
I suggest the following replacements:
- de-formal -> de or de-x-formal
- en-rtl -> en
- nl-informal -> nl or nl-x-informal
simple is already converted to en. So here is nothing to do: https://validator.w3.org/nu/?doc=https%3A%2F%2Fwww.mediawiki.org%2Fwiki%2FSpecial%3ASpecialPages%3Fuselang%3Dsimple