This is probably just a documentation issue, but I am unclear how this template, which "uses MediaWiki's language set" (per the sentence at the top) differs from {{iso 639 name}}. At first, I thought it was related to languages for which we have a Wikipedia in that language (which I believe is predicted by Special:SiteMatrix, although I am not 100% certain of that). This is just a small sampling where I tried to get some representative examples, e.g., one where ISO and SiteMatrix codes are different; one exists but locked; a couple non-existent, but it's hard to generalize from these few examples.
{{iso 639 name|fn=iso_639_code_to_name|bh}} → error: bh not found in ISO 639-1, -2, -2B, -3, -5 list (help); {{mw lang|fn=name_from_code|bh|en}} → Bhojpuri
Can you beef up the doc to explain what exactly mw_lang is doing, what to expect under differing circumstances, and when this template is appropriate as opposed to {{iso 639 name}}? Two brief subsections ===When to use=== and ===When not to use=== under section § Usage, along with a longer intro sentence at the top would be ideal. There may be some tricky edge cases (as there often are in language) which may work better as explanatory notes and resolved in a ==Notes== section. Thanks, Mathglot (talk) 00:24, 22 June 2026 (UTC)[reply]