Template:Language: Difference between revisions

From WikiIndex
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "Wiki People" to "Wiki people")
 
(45 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly><div style="float:left;border:solid #{{LanguageColours1|{{{2}}}}} 1px;margin:1px">
<includeonly><div style="float:right; border:solid #{{LanguageColours1|{{{2}}}}} 1px; margin:.1em">
{| cellspacing="0" style="width:238px;background:#{{LanguageColours2|{{{2}}}}};"
{|cellspacing=0 style="width:230px; background:#{{LanguageColours2|{{{2}}}}}"
| style="width:45px;height:45px;background:#{{LanguageColours3|{{{2}}}}};text-align:center;font-size:14pt" | '''[[:Category:{{LanguageNames|{{{1}}}}}Speakers|{{{1}}}]]-{{{2}}}'''  
|style="width:40px; height:45px; background:#{{LanguageColours3|{{{2}}}}}; text-align:center; font-size:13pt"|'''[[:Category:{{Language names|{{{1}}}}} speakers|{{{1}}}]]-{{{2}}}'''
| style="font-size:8pt;padding:4pt;line-height:1.25em" | This user is {{#switch:{{{2}}}|2=an|3=an|#default=a}} [[:Category:{{LanguageNames|{{{1}}}}}Speakers ({{{2}}})|{{Language/{{{2}}}}}{{LanguageNames|{{{1}}}}}Speaker]].
|style="font-size:10pt; padding:1pt<!--; line-height:1.25em-->"|This person is {{#switch:{{{2}}}|2=an|3=an|#default=a}} [[:Category:{{Language names|{{{1}}}}} speakers ({{{2}}})|{{lcfirst:{{Language/{{{2}}}}}}} {{Language names|{{{1}}}}} speaker]].
|}</div>{{#switch:{{{cat}}}
|}</div>{{#switch:{{{cat}}}
| no =  
|no=
| #default=[[Category:{{LanguageNames|{{{1}}}}}Speakers|{{PAGENAME}}]][[Category:{{LanguageNames|{{{1}}}}}Speakers ({{{2}}})|{{PAGENAME}}]]
|#default=[[Category:{{Language names|{{{1}}}}} speakers|{{PAGENAME}}]][[Category:{{Language names|{{{1}}}}} speakers ({{{2}}})|{{PAGENAME}}]]
}}</includeonly><noinclude>
}}</includeonly><noinclude>
==Usage==
{|style=float:right
<nowiki>{{language|code|level}}</nowiki>
!{{Cambridge-Dictionary|babel}} examples below
*Code[[#Find code|*]] = the two/three code acronym for the language
*Level = A number/letter how well the language is spoken:
**0 - not able to speak
**1 - basic
**2 - intermediate
**3 - advanced
**4 - near native
**5 - professional
**N - native
 
==Find code==
See [[Wikipedia: List of ISO 639-1 codes]], and look at the column saying '''"639-1"'''. If your language isn't there, see [[Wikipedia: List of ISO 639-2 codes]], and look at the '''Alpha-3''' column. If it still isn't there, look at [[wp:List of ISO 639-3 codes|the ISO 639-3 codes list]] and click a letter. If it isn't there yet, write the language's name in English. You may also ask someone.
==Examples==
{| align="right"
|-
|-
|{{language|fr|N|cat=no}}
|{{Language|fr|N|cat=no}}
|-
|-
|{{language|en|5|cat=no}}
|{{Language|en|5|cat=no}}
|-
|-
|{{language|de|4|cat=no}}
|{{Language|de|4|cat=no}}
|-
|-
|{{language|es|3|cat=no}}
|{{Language|es|3|cat=no}}
|-
|-
|{{language|pt|2|cat=no}}
|{{Language|pt|2|cat=no}}
|-
|-
|{{language|it|1|cat=no}}
|{{Language|it|1|cat=no}}
|-
|-
|{{language|zh|0|cat=no}}
|{{Language|zh|0|cat=no}}
|}
|}
==Categorization==
;Some examples are shown on the right
All main language categories can be found at Category:<tt>Language</tt>Speakers, and all sub categories can be found at Category:<tt>Language</tt>Speakers_(<tt>#</tt>), where <tt>Language</tt> is the name of a language, and <tt>#</tt> is a number between 0&ndash;5 or an N.</noinclude>
:''Note:'' [[red link]]s indicate we have no {{tag|Wiki people by language|person}} here on this WikiIndex wiki site who speaks that {{tag|language}} at that level.
 
This {{tag|User language templates|user language template}} renders the appropriate specific '''{{tag|language}}''' '{{Cambridge-Dictionary|babel}}' user-box (examples shown right); as used on personal individual '''[[user page]]s''' of those [[:Category:Wiki people|people]] who identify their {{tag|Wiki people by language|spoken language(s)}}, along with any 'parent' [[Special:Categories|category]] and its associated sub-categories of [[:category: Wiki people by language]].
 
This [[Special:Templates|template]] has <u>two</u> (2) compulsory input requirements; immediately after <code>{{Language| . . .</code>.
*'''1st''' — ''ISO&nbsp;639 code'' – the {{Wp|List of ISO 639-1 codes|two}}- or {{Wp|List of ISO 639-3 codes|three}}- letter {{Wp|ISO 639}} language code;
*'''2nd''' — ''level'' – 0, 1, 2, 3, 4, 5, or N (for 'native').
 
===Usage===
To use a {{Cambridge-Dictionary|babel}} box on your own [[user page]], highlight the following code, copy (<kbd>Ctrl-c</kbd> on your Windows keyboard, or <kbd>⌘-c</kbd> on a Macintosh keyboard), paste (<kbd>Ctrl-v</kbd> or <kbd>⌘-v</kbd>) it in the [[edit box]] of your user page, then amend the two '''''bold-italics''''' to the required information, before saving (<kbd>Ctrl-s</kbd> or <kbd>⌘-s</kbd>) your [[edit]].
 
<code><nowiki>{{Language|</nowiki>'''''<nowiki>ISO 639 code</nowiki>'''''|level='''''<nowiki>?</nowiki>'''''<nowiki>}}</nowiki></code><br>
Where . . .
*<tt>'''''[[#Find code|ISO&nbsp;639 code]]'''''</tt> — the {{Wp|List of ISO 639-1 codes|two}}- or {{Wp|List of ISO 639-3 codes|three}}- letter language code, and;
*<tt>level='''''?'''''</tt> — a <u>letter</u> ''or'' <u>number</u> indicating how well, or proficiency and competency the language is spoken (and / or understood):
**'''N''' — native
**'''5''' — professional
**'''4''' — near native
**'''3''' — advanced
**'''2''' — intermediate
**'''1''' — basic
**'''0''' — not able to speak
 
===Find code===
The [[English Wikipedia]] has articles on the {{Wp|ISO 639}} language codes.  To find the specific code for a language, see the {{Wp|List of ISO 639-1 codes#Partial ISO 639 table|list of ISO&nbsp;639-1 codes}}; and in the table of languages, look at the column saying '''639-1'''.  If the language you seek is not there, see {{Wp|list of ISO 639-2 codes}}, and look at the '''Alpha-3''' column.  If it still is not there, look at {{Wp|List of ISO 639-3 codes|the ISO&nbsp;639-3 codes list}}, and click a letter.  Finally, if it is not there yet, write the name of the required language in English.  You may also ask someone, or look for fellow [[user]]s on any of the language versions of [[:Category:Wikipedia|Wikipedia]].  Finally, [[template: Wikipedia]] has many examples of ISO&nbsp;639 language codes.
 
;''See also
*{{WMF-Meta|Template: List of language names ordered by code}} — at [[Wikimedia Meta-Wiki]]
*[[Template: ISO 639-2]] — creates an interwiki link to the ISO 639-2 Identifier Documentation of the two-letter (alpha-2) language code on the ISO 639-2 Registration Authority website
*[[Template: ISO 639-3]] — creates an interwiki link to the ISO 639-3 Identifier Documentation of the three-letter (alpha-3) language code on the ISO 639-3 Registration Authority website
*[[Template: IETF-language-tag]] — a template to display the standardised language code for a specific language from the Internet Engineering Task Force
 
===Categorisation===
All main language [[Special:Categories|categories]] for [[:Category:Wiki people|wiki people]] can be found at [[:category: Wiki people by language]].  All sub-categories can be found at <code>Category:<mark>Language</mark> speakers (<mark>#</mark>)</code>, where <tt><mark>Language</mark></tt> is the <u>anglicised</u> name of a user language, and <tt><mark>#</mark></tt> is a number between 0-to-5 or an N which defines their proficiency level.
 
===Sub-pages and related or linked templates===
{{Special:PrefixIndex/{{FULLPAGENAME}}}}
[[Category:Wiki people by language| ]]
[[Category:Language| ]]
[[Category:User language templates| ]]
[[Category:Category templates]]
__NOTOC__ __NOEDITSECTION__</noinclude>

Latest revision as of 18:11, 29 May 2024

babel examples below
fr-N This person is a native French speaker.
en-5 This person is a professional English speaker.
de-4 This person is a near native German speaker.
es-3 This person is an advanced Spanish speaker.
pt-2 This person is an intermediate Portuguese speaker.
it-1 This person is a basic Italian speaker.
zh-0 This person is a non Chinese speaker.
Some examples are shown on the right
Note: red links indicate we have no person here on this WikiIndex wiki site who speaks that language at that level.

This user language template renders the appropriate specific language 'babel' user-box (examples shown right); as used on personal individual user pages of those people who identify their spoken language(s), along with any 'parent' category and its associated sub-categories of category: Wiki people by language.

This template has two (2) compulsory input requirements; immediately after {{Language| . . ..

  • 1stISO 639 code – the two- or three- letter ISO 639 language code;
  • 2ndlevel – 0, 1, 2, 3, 4, 5, or N (for 'native').

Usage

To use a babel box on your own user page, highlight the following code, copy (Ctrl-c on your Windows keyboard, or ⌘-c on a Macintosh keyboard), paste (Ctrl-v or ⌘-v) it in the edit box of your user page, then amend the two bold-italics to the required information, before saving (Ctrl-s or ⌘-s) your edit.

{{Language|ISO 639 code|level=?}}
Where . . .

  • ISO 639 code — the two- or three- letter language code, and;
  • level=? — a letter or number indicating how well, or proficiency and competency the language is spoken (and / or understood):
    • N — native
    • 5 — professional
    • 4 — near native
    • 3 — advanced
    • 2 — intermediate
    • 1 — basic
    • 0 — not able to speak

Find code

The English Wikipedia has articles on the ISO 639 language codes. To find the specific code for a language, see the list of ISO 639-1 codes; and in the table of languages, look at the column saying 639-1. If the language you seek is not there, see list of ISO 639-2 codes, and look at the Alpha-3 column. If it still is not there, look at the ISO 639-3 codes list, and click a letter. Finally, if it is not there yet, write the name of the required language in English. You may also ask someone, or look for fellow users on any of the language versions of Wikipedia. Finally, template: Wikipedia has many examples of ISO 639 language codes.

See also

Categorisation

All main language categories for wiki people can be found at category: Wiki people by language. All sub-categories can be found at Category:Language speakers (#), where Language is the anglicised name of a user language, and # is a number between 0-to-5 or an N which defines their proficiency level.

Sub-pages and related or linked templates