Template:UserLanguageSubcategory: Difference between revisions

minor fixes, one language example
(make it clear these are 'sub' categories)
(minor fixes, one language example)
Line 14: Line 14:
}}
}}
==Levels==
==Levels==
{{#ifeq:{{{level}}}|0|'''0''' = [[:Category:{{LanguageNames|{{{1}}}}}Speakers (0)|Not speaking]]|}}{{#ifeq:{{{level}}}|1||,
{{#ifeq:{{{level}}}|0||'''0''' = [[:Category:{{LanguageNames|{{{1}}}}}Speakers (0)|Not speaking]]|}},
'''1''' = [[:Category:{{LanguageNames|{{{1}}}}}Speakers (1)|Basic]]}}{{#ifeq:{{{level}}}|2||,
{{#ifeq:{{{level}}}|1||'''1''' = [[:Category:{{LanguageNames|{{{1}}}}}Speakers (1)|Basic]]}},
'''2''' = [[:Category:{{LanguageNames|{{{1}}}}}Speakers (2)|Intermediate]]}}{{#ifeq:{{{level}}}|3||,
{{#ifeq:{{{level}}}|2||'''2''' = [[:Category:{{LanguageNames|{{{1}}}}}Speakers (2)|Intermediate]]}},
'''3''' = [[:Category:{{LanguageNames|{{{1}}}}}Speakers (3)|Advanced]]}}{{#ifeq:{{{level}}}|4||,
{{#ifeq:{{{level}}}|3||'''3''' = [[:Category:{{LanguageNames|{{{1}}}}}Speakers (3)|Advanced]]}},
'''4''' = [[:Category:{{LanguageNames|{{{1}}}}}Speakers (4)|Near-native]]}}{{#ifeq:{{{level}}}|5||,
{{#ifeq:{{{level}}}|4||'''4''' = [[:Category:{{LanguageNames|{{{1}}}}}Speakers (4)|Near-native]]}},
'''5''' = [[:Category:{{LanguageNames|{{{1}}}}}Speakers (5)|Professional]]}}{{#ifeq:{{{level}}}|N||,
{{#ifeq:{{{level}}}|5||'''5''' = [[:Category:{{LanguageNames|{{{1}}}}}Speakers (5)|Professional]]}},
'''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 subcategories of [[:Category:Wiki People by Language]].  This template has three outputs.
This [[:Category:User language templates|user language template]] renders the appropriate page display in the subcategories of [[:Category:Wiki People by Language]].  This template has three input requirements.
*'''1''' — the language abbreviation, see [[Template:Language]]
*'''1st''' — the language abbreviation, see [[Template:Language]]
*'''2''' — translation of "These users speak (language) at a (level) level"; <tt>no</tt> if English
*'''2nd''' — translation of "These users speak (language) at a (level) level"; <tt>no</tt> if English
*'''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>{{LanguageSubcategory|</nowiki>''<nowiki>code|native language translation</nowiki>''<nowiki>}}</nowiki></code><br>
<code><nowiki>{{LanguageSubcategory|</nowiki>''<nowiki>code|native language translation</nowiki>''<nowiki>|level=</nowiki>''<nowiki>?</nowiki>''<nowiki>}}</nowiki></code><br>
:three-output one-language example:  <code><nowiki>{{LanguageSubcategory|ro|no|level=3}}</nowiki></code>
*three-input one-language output example:  <code><nowiki>{{LanguageSubcategory|de|no|level=3}}</nowiki></code>
:three-output two-language example:  <code><nowiki>{{LanguageSubcategory|sv|De här användarna har '''svenska''' som '''modersmål'''.|level=N}}</nowiki></code>
::which displays at the top of the page:
:::The people in this [[Special:Categories|subcategory]] listed below speak '''[[:Category:German|German]]''' at an '''Advanced''' level.
*three-input two-language output example:  <code><nowiki>{{LanguageSubcategory|sv|De här användarna har '''svenska''' som '''modersmål'''.|level=N}}</nowiki></code>
::which displays at the top of the page:
::which displays at the top of the page:
:::De här användarna har '''svenska''' som '''modersmål'''.
:::De här användarna har '''svenska''' som '''modersmål'''.