Difference between revisions of "Template:UserLanguageCategory"

WikiIndex - wikis, wiki people, wiki software, and wiki ideas
Jump to: navigation, search
(minor tweaks)
m (upper case)
Line 2: Line 2:
 
![[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}}}
Line 69: Line 69:
 
:::The [[:Category:Wiki People|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:UserLanguageSubcategory]] — 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:User language templates]]

Revision as of 20:12, 29 September 2018

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, the third being optional.

  • 1st — the language abbreviation, see template:Language
  • 2nd — translation of "These users speak (language)"; no if only English text is to 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|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