Welcome to the Virtual Education Wiki ~ Open Education Wiki

Template:Language: Difference between revisions

From Virtual Education Wiki
Jump to navigation Jump to search
(added Category:Languages/tools to template noinclude)
(interim save of R3)
Line 1: Line 1:
<noinclude>
<noinclude>
This is release 2 of the template with an extra field for ISO 639-2 3-char values.
Release levels:
# one field, for language code (ISO 639-1)
# an extra field for ISO 639-2 3-char values.
# two extra fields for L1 and L2 speaker numbers.
 
{{#template_params:
{{#template_params:
langcode (label=Language code (ISO 639-1);list;property=Has langcode)
langcode (label=Language code (ISO 639-1); list; property=Has langcode)
|langcode2 (label=Language code (ISO 639-2) 3-char;list;property=Has langcode bis)
|langcode2 (label=Language code (ISO 639-2) 3-char; list; property=Has langcode bis)
|numL1 (label=First-language speakers; property=Has population)
|numL2 (label=Second-language speakers; property=Has population bis)
}}
}}
[[Category:Languages/tools]]
[[Category:Languages/tools]]
Line 15: Line 21:
! Language code (ISO 639-2) 3-char
! Language code (ISO 639-2) 3-char
| {{#arraymap:{{{langcode2|}}}|,|x|[[Has langcode bis::x]]}}
| {{#arraymap:{{{langcode2|}}}|,|x|[[Has langcode bis::x]]}}
|-
! Native speakers (L1)
| [[Has population::{{{numL1|}}}]]
|-
! 2nd language speakers (L2)
| [[Has population bis::{{{numL2|}}}]]
|}
|}


[[Category:Languages]][[Category:VISCED]]
[[Category:Languages]][[Category:VISCED]]
</includeonly>
</includeonly>

Revision as of 14:39, 12 May 2023

Release levels:

  1. one field, for language code (ISO 639-1)
  2. an extra field for ISO 639-2 3-char values.
  3. two extra fields for L1 and L2 speaker numbers.

This is the "Language" template.

It should be called in the following format:

{{Language
|langcode=
|langcode2=
|numL1=
|numL2=
}}

Edit the page to see the template text.