Difference between revisions of "Template:UserLanguageCategory"

WikiIndex - wikis, wiki people, wiki software, and wiki ideas
Jump to: navigation, search
(add new information for 'Native wiki main page' - just a start, so might not work correctly yet!)
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{|border="0" style=float:right; text-align:center
+
<includeonly>{|border=0 style=float:right; text-align:center
 
![[Template:Language|How it appears]]
 
![[Template:Language|How it appears]]
 
|-
 
|-
|<tt><nowiki>{{language|</nowiki>{{{1}}}<nowiki>|0}}</nowiki></tt>
+
|<tt><nowiki>{{Language|</nowiki>{{{1}}}<nowiki>|0}}</nowiki></tt>
 
|-
 
|-
|{{language|{{{1}}}|0|cat=no}}
+
|{{Language|{{{1}}}|0|cat=no}}
 
|-
 
|-
|<tt><nowiki>{{language|</nowiki>{{{1}}}<nowiki>|1}}</nowiki></tt>
+
|<tt><nowiki>{{Language|</nowiki>{{{1}}}<nowiki>|1}}</nowiki></tt>
 
|-
 
|-
|{{language|{{{1}}}|1|cat=no}}
+
|{{Language|{{{1}}}|1|cat=no}}
 
|-
 
|-
|<tt><nowiki>{{language|</nowiki>{{{1}}}<nowiki>|2}}</nowiki></tt>
+
|<tt><nowiki>{{Language|</nowiki>{{{1}}}<nowiki>|2}}</nowiki></tt>
 
|-
 
|-
|{{language|{{{1}}}|2|cat=no}}
+
|{{Language|{{{1}}}|2|cat=no}}
 
|-
 
|-
|<tt><nowiki>{{language|</nowiki>{{{1}}}<nowiki>|3}}</nowiki></tt>
+
|<tt><nowiki>{{Language|</nowiki>{{{1}}}<nowiki>|3}}</nowiki></tt>
 
|-
 
|-
|{{language|{{{1}}}|3|cat=no}}
+
|{{Language|{{{1}}}|3|cat=no}}
 
|-
 
|-
|<tt><nowiki>{{language|</nowiki>{{{1}}}<nowiki>|4}}</nowiki></tt>
+
|<tt><nowiki>{{Language|</nowiki>{{{1}}}<nowiki>|4}}</nowiki></tt>
 
|-
 
|-
|{{language|{{{1}}}|4|cat=no}}
+
|{{Language|{{{1}}}|4|cat=no}}
 
|-
 
|-
|<tt><nowiki>{{language|</nowiki>{{{1}}}<nowiki>|5}}</nowiki></tt>
+
|<tt><nowiki>{{Language|</nowiki>{{{1}}}<nowiki>|5}}</nowiki></tt>
 
|-
 
|-
|{{language|{{{1}}}|5|cat=no}}
+
|{{Language|{{{1}}}|5|cat=no}}
 
|-
 
|-
|<tt><nowiki>{{language|</nowiki>{{{1}}}<nowiki>|N}}</nowiki></tt>
+
|<tt><nowiki>{{Language|</nowiki>{{{1}}}<nowiki>|N}}</nowiki></tt>
 
|-
 
|-
|{{language|{{{1}}}|N|cat=no}}
+
|{{Language|{{{1}}}|N|cat=no}}
 
|}
 
|}
 
{{#switch:{{{2}}}
 
{{#switch:{{{2}}}
|no=  
+
|no=
|#default= {{{2}}}
+
|#default={{{2}}}
 
----
 
----
 
}}
 
}}
The people in this [[Special:Categories|category]] listed below speak '''{{tag|{{LanguageNames|{{{1}}}}}}}'''.
+
The '''[[:Category:Wiki People|people]]''' in this [[Special:Categories|category]] listed below '''speak {{tag|{{LanguageNames|{{{1}}}}}}}'''.
 
==Info==
 
==Info==
*ISO 639 language code: '''{{{1}}}'''
+
*[[wp:ISO 639|ISO 639]] language code: <big>'''{{{1}}}'''</big>
 
{{#switch:{{{3}}}
 
{{#switch:{{{3}}}
|no=  
+
|no=
|#default=*[[wikipedia:{{{3|{{LanguageNames|{{{1}}}}} language}}}|Wikipedia article]]
+
|#default=*[[wp:{{{3|{{LanguageNames|{{{1}}}}} language}}}|English Wikipedia language article]]
 
}}
 
}}
*Native name: '''{{#language:{{{1}}}}}'''
+
*Native language name: '''{{#Language:{{{1}}}}}'''
 +
*Native wiki main page: {{#WikiMainPage-Languages:{{{1}}}}}
 
==Levels==
 
==Levels==
'''0'''&nbsp;=&nbsp;[[:{{FULLPAGENAME}} (0)|Not speaking]],
+
'''0'''&nbsp;=&nbsp;[[:{{FULLPAGENAME}} (0)|not speaking]],
'''1'''&nbsp;=&nbsp;[[:{{FULLPAGENAME}} (1)|Basic]],
+
'''1'''&nbsp;=&nbsp;[[:{{FULLPAGENAME}} (1)|basic]],
'''2'''&nbsp;=&nbsp;[[:{{FULLPAGENAME}} (2)|Intermediate]],
+
'''2'''&nbsp;=&nbsp;[[:{{FULLPAGENAME}} (2)|intermediate]],
'''3'''&nbsp;=&nbsp;[[:{{FULLPAGENAME}} (3)|Advanced]],
+
'''3'''&nbsp;=&nbsp;[[:{{FULLPAGENAME}} (3)|advanced]],
'''4'''&nbsp;=&nbsp;[[:{{FULLPAGENAME}} (4)|Near-native]],
+
'''4'''&nbsp;=&nbsp;[[:{{FULLPAGENAME}} (4)|near native]],
'''5'''&nbsp;=&nbsp;[[:{{FULLPAGENAME}} (5)|Professional]],
+
'''5'''&nbsp;=&nbsp;[[:{{FULLPAGENAME}} (5)|professional]],
'''N'''&nbsp;=&nbsp;[[:{{FULLPAGENAME}} (N)|Native]]
+
'''N'''&nbsp;=&nbsp;[[:{{FULLPAGENAME}} (N)|native]].
 
==Translation needed==
 
==Translation needed==
 
Please help translate the {{LanguageNames|{{{1}}}}} text of [[:Category:Translation from {{LanguageNames|{{{1}}}}}|these articles]].
 
Please help translate the {{LanguageNames|{{{1}}}}} text of [[:Category:Translation from {{LanguageNames|{{{1}}}}}|these articles]].
 
[[Category:{{LanguageNames|{{{1}}}}}| ]]
 
[[Category:{{LanguageNames|{{{1}}}}}| ]]
 
[[Category:Wiki People by Language|{{{1}}}]]__NOTOC__ __NOEDITSECTION__</includeonly><noinclude>
 
[[Category:Wiki People by Language|{{{1}}}]]__NOTOC__ __NOEDITSECTION__</includeonly><noinclude>
This [[:Category:User language templates|user language template]] renders the appropriate page display in the 'mother' language categories of [[:Category:Wiki People by Language]].  This template has either two or three input requirements (the third being optional).
+
This {{tag|User language templates|user language template}} renders the appropriate page display in the 'mother' {{tag|language}} categories of [[:category: Wiki People by Language]].  This template has either two or three input requirements – immediately after <code>{{UserLanguageCategory| . . .</code>, the third being optional.
*'''1st''' — the language abbreviation, see [[Template:Language]]
+
*'''1st''' — the two- (or three-) letter [[wp:ISO 639|ISO 639]] language code; see [[template:Language]];
*'''2nd''' — translation of "These users speak (language)"; <tt>no</tt> if English
+
*'''2nd''' — native translation of "These users speak (language)"; if <code>no</code> is entered, only the English description will be displayed;
*'''3rd''' — if there is a [[:Category:Wikipedia|Wikipedia]] article on the language, write the article's name if it doesn't end with "language".
+
*'''3rd''' — if there is an [[English Wikipedia]] article on the language, write the article's name if it doesn't end with 'language'.
;Usage
+
;''Usage
<code><nowiki>{{LanguageCategory|</nowiki>''<nowiki>code|native language translation</nowiki>''<nowiki>}}</nowiki></code><br>
+
<code><nowiki>{{UserLanguageCategory|</nowiki>''<nowiki>ISO 639 code</nowiki>''|''<nowiki>native language translation</nowiki>''<nowiki>}}</nowiki></code><br>
*two-input one-language output example:  <code><nowiki>{{LanguageCategory|es|no}}</nowiki></code>
+
*two-input one-language output example:  <code><nowiki>{{UserLanguageCategory|es|no}}</nowiki></code>
 
::which displays at the top of the page:
 
::which displays at the top of the page:
:::The people in this [[Special:Categories|category]] listed below speak '''[[:Category:Spanish|Spanish]]'''.
+
:::The '''[[:Category:Wiki People|people]]''' in this [[Special:Categories|category]] listed below '''speak [[:Category:Spanish|Spanish]]'''.
*two-input two-language output example:  <code><nowiki>{{LanguageCategory|sv|Dessa användare pratar '''svenska'''.}}</nowiki></code>
+
*two-input two-language output example:  <code><nowiki>{{UserLanguageCategory|sv|Dessa användare pratar '''svenska'''.}}</nowiki></code>
 
::which displays at the top of the page:
 
::which displays at the top of the page:
 
:::Dessa användare pratar '''svenska'''.
 
:::Dessa användare pratar '''svenska'''.
:::The people in this [[Special:Categories|category]] listed below speak '''[[:Category:Swedish|Swedish]]'''.
+
:::The '''[[:Category:Wiki People|people]]''' in this [[Special:Categories|category]] listed below '''speak [[:Category:Swedish|Swedish]]'''.
;See also
+
;''See also
*[[Template:LanguageSubcategory]] — for rendering the page display of the specific language [[Special:Categories|subcategories]] of [[:Category:Wiki People by Language]]
+
*[[Template:UserLanguageSubcategory]] — for rendering the page display of the specific language [[Special:Categories|sub-categories]] of [[:category: Wiki People by Language]]
  
[[Category:User language templates|Category]]
+
[[Category:Language| ]]
 
[[Category:Wiki People by Language| ]]
 
[[Category:Wiki People by Language| ]]
[[Category:Language| ]]</noinclude>
+
[[Category:Category templates]]</noinclude>

Latest revision as of 18:46, 18 June 2021

This user language template renders the appropriate page display in the 'mother' language categories of category: Wiki People by Language. This template has either two or three input requirements – immediately after {{UserLanguageCategory| . . ., the third being optional.

  • 1st — the two- (or three-) letter ISO 639 language code; see template:Language;
  • 2nd — native translation of "These users speak (language)"; if no is entered, only the English description will be displayed;
  • 3rd — if there is an English Wikipedia article on the language, write the article's name if it doesn't end with 'language'.
Usage

{{UserLanguageCategory|ISO 639 code|native language translation}}

  • two-input one-language output example: {{UserLanguageCategory|es|no}}
which displays at the top of the page:
The people in this category listed below speak Spanish.
  • two-input two-language output example: {{UserLanguageCategory|sv|Dessa användare pratar '''svenska'''.}}
which displays at the top of the page:
Dessa användare pratar svenska.
The people in this category listed below speak Swedish.
See also