Template:UserLanguageSubcategory: Difference between revisions
Jump to navigation
Jump to search
Hoof Hearted (talk | contribs) (make it clear these are 'sub' categories) |
Hoof Hearted (talk | contribs) (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 | 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. | ||
*''' | *'''1st''' — the language abbreviation, see [[Template:Language]] | ||
*''' | *'''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-input one-language output example: <code><nowiki>{{LanguageSubcategory|de|no|level=3}}</nowiki></code> | |||
:three- | ::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'''. |
Revision as of 21:11, 22 September 2012
This user language template renders the appropriate page display in the subcategories of Category:Wiki People by Language. This template has three input requirements.
- 1st — the language abbreviation, see Template:Language
- 2nd — translation of "These users speak (language) at a (level) level"; no if English
- level — 0, 1, 2, 3, 4, 5 or N (for native)
- Usage
{{LanguageSubcategory|code|native language translation|level=?}}
- three-input one-language output example:
{{LanguageSubcategory|de|no|level=3}}
- which displays at the top of the page:
- The people in this subcategory listed below speak German at an Advanced level.
- which displays at the top of the page:
- three-input two-language output example:
{{LanguageSubcategory|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 subcategory listed below speak Swedish at a Native level.
- which displays at the top of the page:
- See also
- Template:LanguageCategory — for rendering the page display of the 'mother' categories of Category:Wiki People by Language