Template:UserLanguageSubcategory: Difference between revisions

m
upper case, hyphens
m (Minor tweaks)
m (upper case, hyphens)
Line 2: Line 2:
![[Template:Language|How it appears]]
![[Template:Language|How it appears]]
|-
|-
|<tt><nowiki>{{language|</nowiki>{{{1}}}<nowiki>|</nowiki>{{{level}}}<nowiki>}}</nowiki></tt>
|<tt><nowiki>{{Language|</nowiki>{{{1}}}<nowiki>|</nowiki>{{{level}}}<nowiki>}}</nowiki></tt>
|-
|-
|{{language|{{{1}}}|{{{level}}}|cat=no}}
|{{Language|{{{1}}}|{{{level}}}|cat=no}}
|}
|}
{{#switch:{{{2}}}
{{#switch:{{{2}}}
Line 11: Line 11:
----
----
}}
}}
{{#ifeq:{{{level}}}|0|The [[:Category:Wiki People|people]] in this [[Special:Categories|subcategory]] 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|subcategory]] 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==
Line 23: Line 23:
[[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 subcategories of [[:category: Wiki People by Language]].  This template has three input requirements.
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.
*'''1st''' — the language abbreviation, see [[template:Language]]
*'''1st''' — the language abbreviation, 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''' — translation of "These users speak (language) at a (level) level"; if <tt>no</tt> is entered, only English is to be displayed
Line 31: Line 31:
*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:
:::The [[:Category:Wiki People|people]] in this [[Special:Categories|subcategory]] listed below speak '''[[:Category:German|German]]''' at an '''Advanced''' level.
:::The [[:Category:Wiki People|people]] in this [[Special:Categories|sub-category]] listed below speak '''[[:Category:German|German]]''' at an '''Advanced''' level.
*three-input two-language output example:  <code><nowiki>{{UserLanguageSubcategory|sv|De här användarna har '''svenska''' som '''modersmål'''.|level=N}}</nowiki></code>
*three-input two-language output example:  <code><nowiki>{{UserLanguageSubcategory|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'''.
:::The [[:Category:Wiki People|people]] in this [[Special:Categories|subcategory]] 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]]