Jump to content

మూస:langrev

విక్షనరీ నుండి

The following documentation is located at Template:langrev/doc. [edit]
Note: Please move the documentation subpage to Template:langrev/documentation.

This template is used to-reverse-map language names to their codes. It is the reverse of direct transclusion of the language code template. It has one unnamed parameter, which should be the name of the language to be converted. If a mapping for that name exists, it will return the code for it on Wiktionary. If it doesn't exist, it returns an empty string. The template can be used equally well with or without subst:.

The mapping is done with subtemplates, which contain just the code in question. For example, {{langrev/English}} contains en. The mapping can be many-to-one, since a language might have more than one given name. Of course, only one of those will be what the language code itself expands to. So it may be possible for {{langrev|Low Saxon}} to equal nds even though {{nds}} equals Low German. In technical terms, this template is not injective (one-to-one) and therefore can't be reversed.

"https://te.wiktionary.org/w/index.php?title=మూస:langrev&oldid=282431" నుండి వెలికితీశారు