Template:Language: Difference between revisions

tweaks - does it work?
(tweaks - does it work?)
Line 2: Line 2:
{|cellspacing=0 style="width:225px; background:#{{LanguageColours2|{{{2}}}}}"
{|cellspacing=0 style="width:225px; background:#{{LanguageColours2|{{{2}}}}}"
|style="width:40px; height:45px; background:#{{LanguageColours3|{{{2}}}}}; text-align:center; font-size:13pt"|'''[[:Category:{{LanguageNames|{{{1}}}}}Speakers|{{{1}}}]]-{{{2}}}'''
|style="width:40px; height:45px; background:#{{LanguageColours3|{{{2}}}}}; text-align:center; font-size:13pt"|'''[[:Category:{{LanguageNames|{{{1}}}}}Speakers|{{{1}}}]]-{{{2}}}'''
|style="font-size:10pt; padding:4pt; line-height:1.25em"|This person is {{#switch:{{{2}}}|2=an|3=an|#default=a}} [[:Category:{{LanguageNames|{{{1}}}}}Speakers ({{{2}}})|{{lc:{{Language/{{{2}}}}}}} {{LanguageNames|{{{1}}}}} speaker]].
|style="font-size:10pt; padding:2pt; <!-- line-height:1.25em -->"|This person is {{#switch:{{{2}}}|2=an|3=an|#default=a}} [[:Category:{{LanguageNames|{{{1}}}}}Speakers ({{{2}}})|{{lc:{{Language/{{{2}}}}}}} {{LanguageNames|{{{1}}}}} speaker]].
|}</div>{{#switch:{{{cat}}}
|}</div>{{#switch:{{{cat}}}
|no=
|no=
Line 28: Line 28:


This {{tag|User language templates|user language template}} renders the appropriate specific {{tag|language}} 'babel' user-box (examples shown right); as used in individual [[user page]]s of those 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 two (2) input requirements – immediately after <code>{{Language| . . .</code>.
This {{tag|User language templates|user language template}} renders the appropriate specific {{tag|language}} 'babel' user-box (examples shown right); as used in individual [[user page]]s of those 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 two (2) input requirements – immediately after <code>{{Language| . . .</code>.
*'''1st''' — ''ISO 639 code'' – the two- (or three-) letter [[wp:ISO 639|ISO 639]] language code;
*'''1st''' — ''ISO 639 code'' – the two- (or three-) letter {{W|ISO 639}} language code;
*'''2nd''' — ''level'' – 0, 1, 2, 3, 4, 5, or N (for 'native').
*'''2nd''' — ''level'' – 0, 1, 2, 3, 4, 5, or N (for 'native').


;''<big>Usage</big>
===Usage===
<code><nowiki>{{Language|</nowiki>''<nowiki>ISO 639 code</nowiki>''|level=''<nowiki>?</nowiki>''<nowiki>}}</nowiki></code><br>
<code><nowiki>{{Language|</nowiki>''<nowiki>ISO 639 code</nowiki>''|level=''<nowiki>?</nowiki>''<nowiki>}}</nowiki></code><br>
Where . . .
Where . . .
* ''<tt>[[#Find code|ISO 639 code]]</tt>'' — the two-or-three letter language code, and;
*''<tt>[[#Find code|ISO 639 code]]</tt>'' — the two-or-three letter language code, and;
* ''<tt>level=?</tt>'' — a number or letter indicating how well the language is spoken:
*''<tt>level=?</tt>'' — a number or letter indicating how well the language is spoken:
** 0 — not able to speak
**'''0''' — not able to speak
** 1 — basic
**'''1''' — basic
** 2 — intermediate
**'''2''' — intermediate
** 3 — advanced
**'''3''' — advanced
** 4 — near native
**'''4''' — near native
** 5 — professional
**'''5''' — professional
** N — native
**'''N''' — native


;''<big>Find code</big>
===Find code===
See [[wp:List of ISO 639-1 codes#Partial ISO 639 table|Wikipedia: List of ISO 639-1 codes]]; and in the table of languages, 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.  Finally, if it isn't there yet, write the languages' name in English.  You may also ask someone.
The [[English Wikipedia]] has articles on the {{W|ISO 639}} language codes.  To find the specific code for a language, see the {{W|List of ISO 639-1 codes#Partial ISO 639 table|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 [[Wikipedia: List of ISO 639-2 codes]], and look at the '''Alpha-3''' column.  If it still is not there, look at {{W|List of ISO 639-3 codes|the ISO 639-3 codes list}}, and click a letter.  Finally, if it is not there yet, write the name of the required languages in English.  You may also ask someone.


;''<big>Categorisation</big>
===Categorisation===
All main language [[Special:Categories|categories]] can be found at [[:category: Wiki People by Language]], and all sub-categories can be found at Category:<tt>Language</tt>Speakers (<tt>#</tt>), where <tt>Language</tt> is the anglicised name of a language, and <tt>#</tt> is a number between 0–5 or an N.
All main language [[Special:Categories|categories]] can be found at [[:category: Wiki People by Language]], and all sub-categories can be found at Category:<tt>Language</tt>Speakers (<tt>#</tt>), where <tt>Language</tt> is the anglicised name of a language, and <tt>#</tt> is a number between 0–5 or an N.


;''<big>Sub-pages and related or linked templates</big>
===Sub-pages and related or linked templates===
{{Special:PrefixIndex/{{FULLPAGENAME}}}}
{{Special:PrefixIndex/{{FULLPAGENAME}}}}


Line 57: Line 57:
[[Category:User language templates| ]]
[[Category:User language templates| ]]
[[Category:Category templates]]</noinclude>
[[Category:Category templates]]</noinclude>
__NOTOC__ __NOEDITSECTION__