Template:UserLanguageCategory: Difference between revisions

From WikiIndex
Jump to navigation Jump to search
(wikilinks)
Line 35: Line 35:
----
----
}}
}}
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}}}'''
*ISO 639 language code: '''{{{1}}}'''
{{#switch:{{{3}}}
{{#switch:{{{3}}}
|no=  
|no=  
|#default=*[[wikipedia:{{{3|{{LanguageNames|{{{1}}}}} language}}}|Wikipedia article]]
|#default=*[[wp:{{{3|{{LanguageNames|{{{1}}}}} language}}}|English Wikipedia article]]
}}
}}
*Native name: '''{{#language:{{{1}}}}}'''
*Native name: '''{{#language:{{{1}}}}}'''
Line 55: Line 55:
[[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 [[: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).
*'''1st''' — the language abbreviation, see [[Template:Language]]
*'''1st''' — the language abbreviation, see [[template:Language]]
*'''2nd''' — translation of "These users speak (language)"; <tt>no</tt> if English
*'''2nd''' — translation of "These users speak (language)"; <tt>no</tt> if only English is to 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>{{UserLanguageCategory|</nowiki>''<nowiki>code|native language translation</nowiki>''<nowiki>}}</nowiki></code><br>
<code><nowiki>{{UserLanguageCategory|</nowiki>''<nowiki>code|native language translation</nowiki>''<nowiki>}}</nowiki></code><br>
*two-input one-language output example:  <code><nowiki>{{UserLanguageCategory|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>{{UserLanguageCategory|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: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|subcategories]] of [[:category: Wiki People by Language]]


[[Category:User language templates]]
[[Category:User language templates]]

Revision as of 22:16, 21 June 2014

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 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