Template:UserLanguageCategory: Difference between revisions

From WikiIndex
Jump to navigation Jump to search
(tweak to transcluded category display order)
(grammar improvements)
Line 1: Line 1:
<includeonly>{|border=0 style=float:right; text-align:center
<includeonly>{|border=0 style=float:right
![[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>
Line 35: Line 35:
----
----
}}
}}
The '''[[:Category:Wiki People|people]]''' in this [[Special:Categories|category]] listed below '''speak {{tag|{{LanguageNames|{{{1}}}}}}}'''.
'''{{FULLPAGENAME}}'''
 
The '''[[:Category:Wiki People|people]]''' in this [[Special:Categories|category]] here on WikiIndex listed below '''speak {{tag|{{LanguageNames|{{{1}}}}}}}'''.
==Info==
==Info==
*{{Wp|ISO 639}} language code: <big>'''{{{1}}}'''</big>
*{{Wp|ISO 639}} language code: <big>'''{{{1}}}'''</big>
{{#switch:{{{3}}}
{{#switch:{{{3}}}
|no=
|no=
|#default=*{{Wp|{{{3|{{LanguageNames|{{{1}}}}} language}}}|English Wikipedia language article}}
|#default=*{{Wp|{{{3|{{LanguageNames|{{{1}}}}} language}}}|{{{3}}} language article}} on the [[English Wikipedia]]
}}
}}
*Native language name: '''{{#Language:{{{1}}}}}'''
*Native language name: '''{{#Language:{{{1}}}}}'''
Line 56: Line 58:
[[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 '''{{tag|User language templates|user language template}}''' renders the appropriate page display in the primary or 'mother' [[category]] of a specific {{tag|language}} which is '''spoken''' by the [[:Category:Wiki People|people]] who use (or have previously used) this [[WikiIndex]] wiki site; and creates a standardised display, with uniform formatting, and appropriately targeted links (internal [[wikilink]]s, and external links by way of [[interwiki]]).  These specific [[Special:Categories|categories]] are all part of [[:category: Wiki People by Language]].  This [[Special:Templates|template]] has either '''one''' ''or'' '''two''' input requirements – immediately after <code>{{UserLanguageCategory| . . .</code>, the first is compulsory, the second being optional (but preferred when possible).
This '''{{tag|User language templates|user language template}}''' renders the appropriate page display in the primary or 'mother' [[category]] of a specific {{tag|language}} which is '''spoken''' by the [[:Category:Wiki People|people]] who [[edit]] (or have previously edited) this [[WikiIndex]] wiki site.  It creates a standardised display, with uniform formatting, and appropriately targeted links (internal [[wikilink]]s, and external links by way of [[interwiki]]).  These specific [[Special:Categories|categories]] are all part of [[:category: Wiki People by Language]].  This [[Special:Templates|template]] has either '''one''' ''or'' '''two''' input requirements – immediately after <code>{{UserLanguageCategory| . . .</code>, the first is compulsory, the second being optional (but preferred when possible).
*'''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 [[template:LanguageNames]];
*'''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 [[template:LanguageNames]];
*'''2nd''' — native translation of 'The people in this category listed below (language)'; if <code>no</code> is entered, only the English description will be displayed.
*'''2nd''' — native translation of 'The people in this category here on WikiIndex listed below speak (language)'; if <code>no</code> is entered, only the description in English will be displayed.
;''Usage
;''Usage
<code><nowiki>{{UserLanguageCategory|</nowiki>''<nowiki>ISO 639 code</nowiki>''|''<nowiki>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>{{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 '''[[:Category:Wiki People|people]]''' in this [[Special:Categories|category]] listed below '''speak [[:Category:Spanish|Spanish]]'''.
:::The '''[[:Category:Wiki People|people]]''' in this [[Special:Categories|category]] here on WikiIndex 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 '''[[: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]] here on WikiIndex listed below '''speak [[:Category:Swedish|Swedish]]'''.
;''See also
;''See also
*[[Template:UserLanguageSubcategory]] — for rendering the page display of the specific language [[Special:Categories|'''sub'''-categories]] 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]]


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


[[Category:Language| ]]
[[Category:Language| ]]
[[Category:Wiki People by Language| ]]
[[Category:Wiki People by Language| ]]
[[Category:Category templates]]</noinclude>
[[Category:Category templates]]</noinclude>

Revision as of 15:10, 9 April 2022

This user language template renders the appropriate page display in the primary or 'mother' category of a specific language which is spoken by the people who edit (or have previously edited) this WikiIndex wiki site. It creates a standardised display, with uniform formatting, and appropriately targeted links (internal wikilinks, and external links by way of interwiki). These specific categories are all part of category: Wiki People by Language. This template has either one or two input requirements – immediately after {{UserLanguageCategory| . . ., the first is compulsory, the second being optional (but preferred when possible).

  • 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 template:LanguageNames;
  • 2nd — native translation of 'The people in this category here on WikiIndex listed below speak (language)'; if no is entered, only the description in English will be displayed.
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 here on WikiIndex 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 here on WikiIndex listed below speak Swedish.
See also
External links