Difference between revisions of "Template:Iso2language"

From blackwiki
Jump to navigation Jump to search
imported>16@r
m (ifeq)
imported>Gonnym
(Undid revision 972946830 by Gonnym (talk))
 
(9 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<includeonly>[[{{iso2lang|{{{1}}}}} language|{{#ifeq:{{{code|}}}|yes|{{{1|}}}|{{iso2lang|{{{1}}}}}}}]]</includeonly>
+
<includeonly>{{#invoke:ISO 639 name|iso_639_code_to_name|{{{1}}}|link=yes|label={{#ifeq:{{{code|}}}|yes|{{{1|}}}}}}}</includeonly><noinclude>
<noinclude>{{documentation}}</noinclude>
+
{{documentation}}
 +
</noinclude>

Latest revision as of 16:16, 14 August 2020

50px Template documentation[view] [edit] [history] [purge]

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

it:Template:Nomelingua