Difference between revisions of "Template:Iso2language/sandbox"
Jump to navigation
Jump to search
imported>Trappist the monk |
imported>Trappist the monk (lang function name change;) |
||
| Line 1: | Line 1: | ||
| − | {{#if:{{#invoke:lang| | + | {{#if:{{#invoke:lang|name_from_tag|{{{1}}}}}|[[{{#invoke:lang|name_from_tag|{{{1}}}}} language|{{#ifeq:{{{code}}}|yes|{{{1}}}|{{#invoke:lang|name_from_tag|{{{1}}}}}}}]]|<span style="font-size:100%; font-style:normal;" class="error">error: unknown code: {{{1}}}</span>}}<noinclude> |
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 14:35, 20 October 2019
[[error: unrecognized language tag: {{{1}}} language|error: unrecognized language tag: {{{1}}}]]
| This is the template sandbox page for Template:Iso2language (diff). |
| This template uses Lua: |
Same function as {{ISO 639 name}}, but links the language name to its article.
- Example
| Code | Result |
|---|---|
{{iso2language|en}}
|
English |
{{iso2language|en|code=yes}}
|
en |
| The above documentation is transcluded from Template:Iso2language/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |