Template:UserLanguageSubcategory: Difference between revisions

From WikiIndex
Jump to navigation Jump to search
m (upper case, hyphens)
(grammar improvements)
Line 8: Line 8:
{{#switch:{{{2}}}
{{#switch:{{{2}}}
|no=  
|no=  
|#default= {{{2}}}
|#default={{{2}}}
----
----
}}
}}
{{#ifeq:{{{level}}}|0|The [[:Category:Wiki People|people]] in this [[Special:Categories|sub-category]] listed below '''don't understand''' '''[[:Category:{{LanguageNames|{{{1}}}}}|{{LanguageNames|{{{1}}}}}]]''' (or not very well, at least).|The [[:Category:Wiki People|people]] in this [[Special:Categories|sub-category]] listed below speak [[:Category:{{LanguageNames|{{{1}}}}}Speakers|'''{{LanguageNames|{{{1}}}}}''']] at {{#switch:{{{level}}}|1=a|2=an|3=an|4=a|5=a|N=a}} '''{{Language/{{{level}}}}}''' level.
{{#ifeq:{{{level}}}|0|The [[:Category:Wiki People|people]] in this [[Special:Categories|sub-category]] listed below '''don't understand''' '''[[:Category:{{LanguageNames|{{{1}}}}}|{{LanguageNames|{{{1}}}}}]]''' (or not very well, at least).|The [[:Category:Wiki People|people]] in this [[Special:Categories|sub-category]] listed below speak '''[[:Category:{{LanguageNames|{{{1}}}}}Speakers|{{LanguageNames|{{{1}}}}}]]''' at {{#switch:{{{level}}}|1=a|2=an|3=an|4=a|5=a|N=a}} '''{{Language/{{{level}}}}}''' level.
}}
}}
==Levels==
==Levels==
{{#ifeq:{{{level}}}|0||'''0''' = [[:Category:{{LanguageNames|{{{1}}}}}Speakers (0)|Not speaking]]|}},
{{#ifeq:{{{level}}}|0||'''0''' = [[:Category:{{LanguageNames|{{{1}}}}}Speakers (0)|not speaking]],}}
{{#ifeq:{{{level}}}|1||'''1''' = [[:Category:{{LanguageNames|{{{1}}}}}Speakers (1)|Basic]]}},
{{#ifeq:{{{level}}}|1||'''1''' = [[:Category:{{LanguageNames|{{{1}}}}}Speakers (1)|basic]],}}
{{#ifeq:{{{level}}}|2||'''2''' = [[:Category:{{LanguageNames|{{{1}}}}}Speakers (2)|Intermediate]]}},
{{#ifeq:{{{level}}}|2||'''2''' = [[:Category:{{LanguageNames|{{{1}}}}}Speakers (2)|intermediate]],}}
{{#ifeq:{{{level}}}|3||'''3''' = [[:Category:{{LanguageNames|{{{1}}}}}Speakers (3)|Advanced]]}},
{{#ifeq:{{{level}}}|3||'''3''' = [[:Category:{{LanguageNames|{{{1}}}}}Speakers (3)|advanced]],}}
{{#ifeq:{{{level}}}|4||'''4''' = [[:Category:{{LanguageNames|{{{1}}}}}Speakers (4)|Near-native]]}},
{{#ifeq:{{{level}}}|4||'''4''' = [[:Category:{{LanguageNames|{{{1}}}}}Speakers (4)|near native]],}}
{{#ifeq:{{{level}}}|5||'''5''' = [[:Category:{{LanguageNames|{{{1}}}}}Speakers (5)|Professional]]}},
{{#ifeq:{{{level}}}|5||'''5''' = [[:Category:{{LanguageNames|{{{1}}}}}Speakers (5)|professional]],}}
{{#ifeq:{{{level}}}|N||'''N''' = [[:Category:{{LanguageNames|{{{1}}}}}Speakers (N)|Native]]|}}
{{#ifeq:{{{level}}}|N||'''N''' = [[:Category:{{LanguageNames|{{{1}}}}}Speakers (N)|native]].}}
[[Category:{{LanguageNames|{{{1}}}}}Speakers| ]]
[[Category:{{LanguageNames|{{{1}}}}}Speakers| ]]
[[Category:{{LanguageNames|{{{1}}}}}| ]]__NOTOC__ __NOEDITSECTION__</includeonly><noinclude>
[[Category:{{LanguageNames|{{{1}}}}}| ]]__NOTOC__ __NOEDITSECTION__</includeonly><noinclude>
This [[:Category:User language templates|user language template]] renders the appropriate page display in the specific language sub-categories of [[:category: Wiki People by Language]].  This template has three input requirements.
This {{tag|User language templates|user language template}} renders the appropriate page display in the specific {{tag|language}} sub-categories of [[:category: Wiki People by Language]].  This template has three (3) input requirements – immediately after <code>{{UserLanguageSubcategory| . . .</code>.
*'''1st''' — the language abbreviation, see [[template:Language]]
*'''1st''' — the two- (or three-) letter [[wp:ISO 639|ISO 639]] language code; see [[template:Language]];
*'''2nd''' — translation of "These users speak (language) at a (level) level"; if <tt>no</tt> is entered, only English is to be displayed
*'''2nd''' — native translation of "These users speak (language) at a (level) level"; if <code>no</code> is entered, only the English description will be displayed;
*'''level''' — 0, 1, 2, 3, 4, 5 or N (for native)
*'''level''' — 0, 1, 2, 3, 4, 5, or N (for 'native').
;Usage
;''Usage
<code><nowiki>{{UserLanguageSubcategory|</nowiki>''<nowiki>code</nowiki>''|''<nowiki>native language translation</nowiki>''<nowiki>|level=</nowiki>''<nowiki>?</nowiki>''<nowiki>}}</nowiki></code><br>
<code><nowiki>{{UserLanguageSubcategory|</nowiki>''<nowiki>ISO 639 code</nowiki>''|''<nowiki>native language translation</nowiki>''<nowiki>|level=</nowiki>''<nowiki>?</nowiki>''<nowiki>}}</nowiki></code><br>
*three-input one-language output example:  <code><nowiki>{{UserLanguageSubcategory|de|no|level=3}}</nowiki></code>
*three-input one-language output example:  <code><nowiki>{{UserLanguageSubcategory|de|no|level=3}}</nowiki></code>
::which displays at the top of the page:
::which displays at the top of the page:
Line 36: Line 36:
:::De här användarna har '''svenska''' som '''modersmål'''.
:::De här användarna har '''svenska''' som '''modersmål'''.
:::The [[:Category:Wiki People|people]] in this [[Special:Categories|sub-category]] listed below speak '''[[:Category:Swedish|Swedish]]''' at a '''Native''' level.
:::The [[:Category:Wiki People|people]] in this [[Special:Categories|sub-category]] listed below speak '''[[:Category:Swedish|Swedish]]''' at a '''Native''' level.
;See also
;''See also
*[[Template:UserLanguageCategory]] — for rendering the page display of the 'mother' language [[Special:Categories|categories]] of [[:category: Wiki People by Language]]
*[[Template:UserLanguageCategory]] — for rendering the page display of the 'mother' language [[Special:Categories|categories]] of [[:category: Wiki People by Language]]


[[Category:Language| ]]
[[Category:Wiki People by Language| ]]
[[Category:Wiki People by Language| ]]
[[Category:User language templates]]
[[Category:Category templates]]</noinclude>
[[Category:Category templates]]
[[Category:Language| ]]</noinclude>

Revision as of 18:18, 5 December 2019

This user language template renders the appropriate page display in the specific language sub-categories of category: Wiki People by Language. This template has three (3) input requirements – immediately after {{UserLanguageSubcategory| . . ..

  • 1st — the two- (or three-) letter ISO 639 language code; see template:Language;
  • 2nd — native translation of "These users speak (language) at a (level) level"; if no is entered, only the English description will be displayed;
  • level — 0, 1, 2, 3, 4, 5, or N (for 'native').
Usage

{{UserLanguageSubcategory|ISO 639 code|native language translation|level=?}}

  • three-input one-language output example: {{UserLanguageSubcategory|de|no|level=3}}
which displays at the top of the page:
The people in this sub-category listed below speak German at an Advanced level.
  • three-input two-language output example: {{UserLanguageSubcategory|sv|De här användarna har '''svenska''' som '''modersmål'''.|level=N}}
which displays at the top of the page:
De här användarna har svenska som modersmål.
The people in this sub-category listed below speak Swedish at a Native level.
See also