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)
(removed {{#template_params: 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) |numL1 (label=Native speakers (L1); property=Has population) |numL2 (label=Second-language speakers (L2); property=Has population bis) }})
 
(5 intermediate revisions by the same user not shown)
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:
{{#template_params:
# one field, for language code (ISO 639-1)
langcode (label=Language code (ISO 639-1);list;property=Has langcode)
# an extra field for ISO 639-2 3-char values.
|langcode2 (label=Language code (ISO 639-2) 3-char;list;property=Has langcode bis)
# two extra fields for L1 and L2 speaker numbers.
}}
 
[[Category:Languages/tools]]
[[Category:Languages/tools]]
</noinclude>
</noinclude>
<includeonly>{| style="width: 30em; font-size: 90%; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; text-align:left;"
<includeonly>{{#template_display:_format=infobox}}
{| style="width: 30em; font-size: 90%; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; text-align:left;"
! style="text-align: center; background-color:#ccccff;" colspan="2" |<span style="font-size: larger;">{{PAGENAME}}</span>
! style="text-align: center; background-color:#ccccff;" colspan="2" |<span style="font-size: larger;">{{PAGENAME}}</span>
|-
|-
Line 15: Line 16:
! 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|}}}]]
|-
! Wikipedia page to check
| [[wikipedia:{{PAGENAME}} language]]
|}
|}


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

Latest revision as of 15:21, 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.