Template:UserLanguageSubcategory: Difference between revisions

Sub-headings
(*Template: ISO 639-3 — for creating an interwiki link to the ISO 639 Identifier Documentation of the three-letter (alpha-3) language code on the ISO 639-3 Registration Authority website)
(Sub-headings)
Line 24: Line 24:
{{#ifeq:{{{level}}}|N||'''N''' = [[:Category:{{Language names|{{{1}}}}}Speakers (N)|native]].}}
{{#ifeq:{{{level}}}|N||'''N''' = [[:Category:{{Language names|{{{1}}}}}Speakers (N)|native]].}}
[[Category:{{Language names|{{{1}}}}}Speakers| ]]
[[Category:{{Language names|{{{1}}}}}Speakers| ]]
[[Category:{{Language names|{{{1}}}}}|*]]__NOTOC__ __NOEDITSECTION__</includeonly><noinclude>
[[Category:{{Language names|{{{1}}}}}|*]]__NOTOC__ __NOEDITSECTION__</includeonly><noinclude>{{TOC right}}
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.
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.
===Input requirements===
*'''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]]);
*'''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;
*'''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').
*'''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><br>
===Usage===
*three-input <u>one-language output</u> example: <code><nowiki>{{UserLanguageSubcategory|de|no|level=3}}</nowiki></code>
<code><nowiki>{{UserLanguageSubcategory|</nowiki>''<nowiki>ISO 639 code</nowiki>''|''<nowiki>native language translation</nowiki>''<nowiki>|level=</nowiki>'''''<nowiki>?</nowiki>'''''<nowiki>}}</nowiki></code>
::which displays at the top of the category page:
====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:GermanSpeakers|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 <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}}''' på '''modersmålsnivå'''|level=N}}</nowiki></code>
====Two-language output====
::which displays at the top of the category page:
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|SwedishSpeakers|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:SwedishSpeakers|svenska]]''' på '''modersmålsnivå'''.
:::'''[[:Category:Wiki People|Personerna]]''' i denna [[Special:Categories|underkategori]] här på WikiIndex listade nedan '''talar [[:Category:SwedishSpeakers|svenska]]''' på '''modersmålsnivå'''.
:::------------------------------------------------------------------------------------------------------
:::------------------------------------------------------------------------------------------------------------------------------------
:::The '''[[:Category:Wiki People|people]]''' in this [[Special:Categories|sub-category]] here on WikiIndex listed below '''speak [[:Category:SwedishSpeakers|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]] for an individual user language 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]]
*[[Template: ISO 639-3]] — for creating an interwiki link to the ISO 639 Identifier Documentation of the three-letter (alpha-3) language code on the ISO 639-3 Registration Authority website
*[[Template: ISO 639-3]] — for creating an interwiki link to the ISO 639 Identifier Documentation of the three-letter (alpha-3) language code on the ISO 639-3 Registration Authority website


;''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]]