Template:UserLanguageSubcategory: Difference between revisions

From WikiIndex
Jump to navigation Jump to search
No edit summary
m (Text replacement - "Wiki People" to "Wiki people")
 
(43 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{| border="0" align="right"
<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>
|-
|-
| {{language|{{{1}}}|{{{level}}}|cat=no}}
|{{Language|{{{1}}}|{{{level}}}|cat=no}}
|}
|}
'''{{NAMESPACE}}:&nbsp;{{PAGENAME}}'''
{{#switch:{{{2}}}
{{#switch:{{{2}}}
| no =  
|no=  
| #default= {{{2}}}
|#default={{{2}}}.
----
----
}}
}}
{{#ifeq:{{{level}}}|0|These users '''don't understand''' '''[[:Category:{{LanguageNames|{{{1}}}}}|{{LanguageNames|{{{1}}}}}]]''' (or not very well, at least).|These users 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:{{Language names|{{{1}}}}}|{{Language names|{{{1}}}}}]]''' (or not very well, at least, but would like to).|'''speak [[:Category:{{Language names|{{{1}}}}} speakers|{{Language names|{{{1}}}}}]]''' at {{#switch:{{{level}}}|1=a|2=an|3=an|4=a|5=a|N=a}} '''{{Language/{{{level}}}}}''' level.
}}
}}
==Levels==
==Levels==
{{#ifeq:{{{level}}}|0|*[[:Category:{{LanguageNames|{{{1}}}}}Speakers (0)|Not speaking]]|}}{{#ifeq:{{{level}}}|1||
{{#ifeq:{{{level}}}|0||'''0'''&nbsp;=&nbsp;[[:Category:{{Language names|{{{1}}}}} speakers (0)|not speaking]],}}
*[[:Category:{{LanguageNames|{{{1}}}}}Speakers (1)|Basic]]}}{{#ifeq:{{{level}}}|2||
{{#ifeq:{{{level}}}|1||'''1'''&nbsp;=&nbsp;[[:Category:{{Language names|{{{1}}}}} speakers (1)|basic]],}}
*[[:Category:{{LanguageNames|{{{1}}}}}Speakers (2)|Intermediate]]}}{{#ifeq:{{{level}}}|3||
{{#ifeq:{{{level}}}|2||'''2'''&nbsp;=&nbsp;[[:Category:{{Language names|{{{1}}}}} speakers (2)|intermediate]],}}
*[[:Category:{{LanguageNames|{{{1}}}}}Speakers (3)|Advanced]]}}{{#ifeq:{{{level}}}|4||
{{#ifeq:{{{level}}}|3||'''3'''&nbsp;=&nbsp;[[:Category:{{Language names|{{{1}}}}} speakers (3)|advanced]],}}
*[[:Category:{{LanguageNames|{{{1}}}}}Speakers (4)|Near-native]]}}{{#ifeq:{{{level}}}|5||
{{#ifeq:{{{level}}}|4||'''4'''&nbsp;=&nbsp;[[:Category:{{Language names|{{{1}}}}} speakers (4)|near native]],}}
*[[:Category:{{LanguageNames|{{{1}}}}}Speakers (5)|Professional]]}}{{#ifeq:{{{level}}}|N||
{{#ifeq:{{{level}}}|5||'''5'''&nbsp;=&nbsp;[[:Category:{{Language names|{{{1}}}}} speakers (5)|professional]],}}
*[[:Category:{{LanguageNames|{{{1}}}}}Speakers (N)|Native]]|}}
{{#ifeq:{{{level}}}|N||'''N'''&nbsp;=&nbsp;[[:Category:{{Language names|{{{1}}}}} speakers (N)|native]].}}
[[Category:{{LanguageNames|{{{1}}}}}Speakers|{{{level}}}]]</includeonly><noinclude>Used for [[:Category:Wiki People by Language]]. The template has three outputs.
[[Category:{{Language names|{{{1}}}}} speakers| ]]
*'''1''' - The language abbreviation, see [[Template:Language]]
[[Category:{{Language names|{{{1}}}}}|*]]__NOTOC__ __NOEDITSECTION__</includeonly><noinclude>{{TOC right}}
*'''2''' - Translation of "These users speak (language) at a (level) level". <tt>no</tt> if English.
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; whilst the second default '<tt>no</tt>' is acceptable, but the native translation is ideally preferred.
*'''level''' - 0, 1, 2, 3, 4, 5 or N for native
 
==Also see==
===Input requirements===
*[[Template:LanguageCategory]]</noinclude>
*'''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:Language names]]);
*'''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, <u>only</u> the description in English will be displayed;
*'''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===
<code><nowiki>{{UserLanguageSubcategory|</nowiki>''<nowiki>ISO 639 code</nowiki>''|''<nowiki>native language translation</nowiki>''<nowiki>|level=</nowiki>'''''<nowiki>?</nowiki>'''''<nowiki>}}</nowiki></code>
====One-language output====
Three-input <u>one-language output</u> example:<br>
 
<code><nowiki>{{UserLanguageSubcategory|de|no|level=3}}</nowiki></code>
:which displays at the top of the category page:
:::The '''[[:Category:Wiki people|people]]''' in this [[Special:Categories|sub-category]] here on WikiIndex listed below '''speak [[:Category:German speakers|German]]''' at an '''advanced''' level.
====Two-language output====
Three-input <u>two-language output</u> example:<br>
 
<code><nowiki>{{UserLanguageSubcategory|sv|'''[[:Category:Wiki people|Personerna]]''' i denna [[Special:Categories|underkategori]] här på WikiIndex listade nedan '''talar {{tag|Swedish speakers|svenska}}''' på '''modersmålsnivå'''|level=N}}</nowiki></code>
:which displays at the top of the category page:
:::'''[[:Category:Wiki people|Personerna]]''' i denna [[Special:Categories|underkategori]] här på WikiIndex listade nedan '''talar [[:Category:Swedish speakers|svenska]]''' på '''modersmålsnivå'''.
:::------------------------------------------------------------------------------------------------------------------------------------
:::The '''[[:Category:Wiki people|people]]''' in this [[Special:Categories|sub-category]] here on WikiIndex listed below '''speak [[:Category:Swedish speakers|Swedish]]''' at a '''native''' level.
 
===See also===
*[[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]]
*[[Template: ISO 639-2]] — creates an interwiki link to the ISO 639-2 Identifier Documentation of the two-letter (alpha-2) language code on the ISO 639-2 Registration Authority website
*[[Template: ISO 639-3]] — creates an interwiki link to the ISO 639-3 Identifier Documentation of the three-letter (alpha-3) language code on the ISO 639-3 Registration Authority website
*[[Template: IETF-language-tag]] — a template to display the standardised language code for a specific language from the Internet Engineering Task Force
 
===External links===
*{{WMF-Meta|Template: List of language names ordered by code}} — at [[Wikimedia Meta-Wiki]]
 
[[Category:Language| ]]
[[Category:Wiki people by language| ]]
[[Category:Category templates]]</noinclude>

Latest revision as of 18:02, 29 May 2024

This user language template renders the appropriate page display in the sub-categories of a specific language which is spoken by the 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 categories are all part of category: Wiki people by language. This particular template has three (3) input requirements – immediately after {{UserLanguageSubcategory| . . .: the first and third are compulsory; whilst the second default 'no' is acceptable, but the native translation is ideally preferred.

Input requirements

  • 1st — the two- or three- letter ISO 639 language code, (plus any sub-language letters, eg: en-gb, pt-br, zh-hk, zh-tw, etc); see template:Language (and also template:Language names);
  • 2nd — native translation of 'The people in this sub-category here on WikiIndex listed below speak (language) at a (level) level'; if no is entered, only the description in English will be displayed;
  • 3rd — the level of proficiency of said language: 0, 1, 2, 3, 4, 5, or N (for 'native').

Usage

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

One-language output

Three-input one-language output example:

{{UserLanguageSubcategory|de|no|level=3}}

which displays at the top of the category page:
The people in this sub-category here on WikiIndex listed below speak German at an advanced level.

Two-language output

Three-input two-language output example:

{{UserLanguageSubcategory|sv|'''[[:Category:Wiki people|Personerna]]''' i denna [[Special:Categories|underkategori]] här på WikiIndex listade nedan '''talar {{tag|Swedish speakers|svenska}}''' på '''modersmålsnivå'''|level=N}}

which displays at the top of the category page:
Personerna i denna underkategori här på WikiIndex listade nedan talar svenskamodersmålsnivå.
------------------------------------------------------------------------------------------------------------------------------------
The people in this sub-category here on WikiIndex listed below speak Swedish at a native level.

See also

External links