Template:Mw lang/doc

A template similar to that uses MediaWiki's language set.

Usage
This template accepts two positional parameters and has one named parameter.


 * fn – names the function to be called in Module:mw lang. Valid values are:
 * – (default) essentially the same as the  magic word
 * – returns  when   is a valid MediaWiki language code
 * – inverse of ; attempts to return a language code for
 * – returns  when   is a valid MediaWiki language name
 * required for  and
 * required for  – case agnostic, must otherwise match MediaWiki language name exactly
 * (optional) specifies MediaWiki language set to evaluate; defaults to local wiki language

Examples
→

→

→

→← (not valid, returns )

→

→