Template:UserLanguageSubcategory: Difference between revisions

Jump to navigation Jump to search
Update
(tweak to transcluded category display order)
(Update)
Line 1: Line 1:
<includeonly>{|border=0 style=float:right; text-align:center
<includeonly>{|border=0 style=float:right
![[Template:Language|How it appears]]
|+'''[[Template:Language|How the babel appears]]
|-
|-
|<tt><nowiki>{{Language|</nowiki>{{{1}}}<nowiki>|</nowiki>{{{level}}}<nowiki>}}</nowiki></tt>
|<tt><nowiki>{{Language|</nowiki>{{{1}}}<nowiki>|</nowiki>{{{level}}}<nowiki>}}</nowiki></tt>
Line 6: Line 6:
|{{Language|{{{1}}}|{{{level}}}|cat=no}}
|{{Language|{{{1}}}|{{{level}}}|cat=no}}
|}
|}
'''{{FULLPAGENAME}}'''
{{#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 '''do not understand''' '''[[:Category:{{LanguageNames|{{{1}}}}}|{{LanguageNames|{{{1}}}}}]]''' (or not very well, at least, but would like to).|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.
The '''[[:Category:Wiki People|people]]''' in this [[Special:Categories|sub-category]] here on WikiIndex listed below {{#ifeq:{{{level}}}|0|'''do not understand [[:Category:{{LanguageNames|{{{1}}}}}|{{LanguageNames|{{{1}}}}}]]''' (or not very well, at least, but would like to).|'''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 25:
[[Category:{{LanguageNames|{{{1}}}}}Speakers| ]]
[[Category:{{LanguageNames|{{{1}}}}}Speakers| ]]
[[Category:{{LanguageNames|{{{1}}}}}|*]]__NOTOC__ __NOEDITSECTION__</includeonly><noinclude>
[[Category:{{LanguageNames|{{{1}}}}}|*]]__NOTOC__ __NOEDITSECTION__</includeonly><noinclude>
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>.
This '''{{tag|User language templates|user language template}}''' renders the appropriate page display in the [[Category|sub-categories]] of a specific {{tag|language}} which is '''spoken''' by the [[:Category:Wiki People|people]] who [[edit]] (or have previously edited) this [[WikiIndex]] wiki site.  In a similar manner as [[template: UserLanguageCategory]], it creates a standardised display, with uniform formatting.  These specific [[Special:Categories|categories]] are all part of [[:category: Wiki People by Language]].  This particular [[Special:Templates|template]] has '''three''' (3) input requirements – immediately after <code>{{UserLanguageSubcategory| . . .</code>: the first ''and'' third are compulsory; the second default <tt>no</tt> is acceptable, but the native translation is ideally preferred.
*'''1st''' — the two- (or three-) letter {{Wp|ISO 639}} language code; see [[template:Language]];
*'''1st''' — the {{Wp|List of ISO 639-1 codes|two}}- or {{Wp|List of ISO 639-3 codes|three}}- letter {{Wp|ISO 639}} language code, (plus any sub-language letters, eg: <tt>en-gb</tt>, <tt>pt-br</tt>, <tt>zh-hk</tt>, <tt>zh-tw</tt>, etc); see [[template:Language]] (and also [[template:LanguageNames]]);
*'''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;
*'''2nd''' — native translation of 'The people in this sub-category here on WikiIndex listed below speak (language) at a (level) level'; if <code>no</code> is entered, only the description in English will be displayed;
*'''level''' — 0, 1, 2, 3, 4, 5, or N (for 'native').
*'''3rd''' — the level of proficiency of said language: <tt>0</tt>, <tt>1</tt>, <tt>2</tt>, <tt>3</tt>, <tt>4</tt>, <tt>5</tt>, or <tt>N</tt> (for 'native').
;''Usage
;''Usage
<code><nowiki>{{UserLanguageSubcategory|</nowiki>''<nowiki>ISO 639 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 <u>one-language output</u> 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|sub-category]] listed below speak '''[[:Category:German|German]]''' at an '''advanced''' level.
:::The '''[[:Category:Wiki People|people]]''' in this [[Special:Categories|sub-category]] here on WikiIndex listed below '''speak [[:Category:GermanSpeakers|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 <u>two-language output</u> example:  <code><nowiki>{{UserLanguageSubcategory|sv|'''[[:Category:Wiki People|Personerna]]''' i denna [[Special:Categories|underkategori]] här på WikiIndex listade nedan talar '''{{tag|SwedishSpeakers|svenska}}''' '''modersmålsnivå'''|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'''.
:::'''[[:Category:Wiki People|Personerna]]''' i denna [[Special:Categories|underkategori]] här på WikiIndex listade nedan talar '''[[:Category:SwedishSpeakers|svenska]]''' '''modersmålsnivå'''.
:::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]] here on WikiIndex listed below '''speak [[:Category:SwedishSpeakers|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]] for an individual user language of [[:category: Wiki People by Language]]


;''External links
;''External links
*{{WMF-Meta|Template:List of language names ordered by code}} — at [[Wikimedia Meta-Wiki]]
*{{WMF-Meta|Template: List of language names ordered by code}} — at [[Wikimedia Meta-Wiki]]


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

Navigation menu