Welcome to the Virtual Education Wiki ~ Open Education Wiki
Template:Language: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(release 2 phase a) |
||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
{{#template_params:langcode (label=Language code (ISO 639-1);list;property=Has langcode)}} | This is release 2 of the template with an extra field for ISO 639-2 3-char values. | ||
</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;" | {{#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) | |||
}} | |||
</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;" | |||
! 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> | ||
|- | |- | ||
! Language code (ISO 639-1) | ! Language code (ISO 639-1) | ||
| {{#arraymap:{{{langcode|}}}|,|x|[[Has langcode::x]]}} | | {{#arraymap:{{{langcode|}}}|,|x|[[Has langcode::x]]}} | ||
|- | |||
! Language code (ISO 639-2) 3-char | |||
| {{#arraymap:{{{langcode2|}}}|,|x|[[Has langcode::x]]}} | |||
|} | |} | ||
[[Category:Languages]][[Category:VISCED]] | [[Category:Languages]][[Category:VISCED]] | ||
</includeonly> | </includeonly> |
Revision as of 16:47, 11 May 2023
This is release 2 of the template with an extra field for ISO 639-2 3-char values. This is the "Language" template.
It should be called in the following format:
{{Language |langcode= |langcode2= }}
Edit the page to see the template text.