Template:UserLanguageCategory: Difference between revisions

From WikiIndex
Jump to navigation Jump to search
(fix inappropriate category inclusion in displayed example)
(Grammar tweaks)
Line 57: Line 57:
Please help [[:Category:Translation|translate]] the {{LanguageNames|{{{1}}}}} text of [[:Category:Translation from {{LanguageNames|{{{1}}}}}|these articles]].
Please help [[:Category:Translation|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 '''{{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 particular [[Special:Templates|template]] has '''two''' (2) input requirements – immediately after <code>{{UserLanguageCategory| . . .</code>: both are compulsory; 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 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 here on WikiIndex, and external links by way of [[interwiki]] to the [[English Wikipedia]]).  These specific [[Special:Categories|categories]] are all part of [[:category: Wiki people by language]].  This particular [[Special:Templates|template]] has '''two''' (2) input requirements – immediately after <code>{{UserLanguageCategory| . . .</code>: both are compulsory; the second default <tt>no</tt> is acceptable, but the native translation is ideally preferred.
*'''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 here on WikiIndex listed below speak (language)'; if <code>no</code> is entered, only the description in English 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, <u>only</u> 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 <u>one-language output</u> example:  <code><nowiki>{{UserLanguageCategory|es|no}}</nowiki></code>
*two-input, <u>one-language output</u> example:  <code><nowiki>{{UserLanguageCategory|es|no}}</nowiki></code>
::which displays at the top of the page:
::which displays at the top of the category page:
:::The '''[[:Category:Wiki People|people]]''' in this [[Special:Categories|category]] here on WikiIndex 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 <u>two-language output</u> example:  <code><nowiki>{{UserLanguageCategory|sv|'''[[:Category:Wiki People|Personerna]]''' i denna [[Special:Categories|kategori]] här på WikiIndex listade nedan '''talar {{tag|Swedish|svenska}}'''}}</nowiki></code>
*two-input, <u>two-language output</u> example:  <code><nowiki>{{UserLanguageCategory|sv|'''[[:Category:Wiki People|Personerna]]''' i denna [[Special:Categories|kategori]] här på WikiIndex listade nedan '''talar {{tag|Swedish|svenska}}'''}}</nowiki></code>
::which displays at the top of the page:
::which displays at the top of the category page:
:::'''[[:Category:Wiki People|Personerna]]''' i denna [[Special:Categories|kategori]] här på WikiIndex listade nedan '''talar [[:Category:Swedish|svenska]]'''.
:::'''[[:Category:Wiki People|Personerna]]''' i denna [[Special:Categories|kategori]] här på WikiIndex listade nedan '''talar [[:Category:Swedish|svenska]]'''.
:::------------------------------------------------------------------------------------------------------
:::------------------------------------------------------------------------------------------------------
:::The '''[[:Category:Wiki People|people]]''' in this [[Special:Categories|category]] here on WikiIndex 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 [[Special:Categories|'''sub'''-categories]] of specific user language of [[:category: Wiki People by Language]]
*[[Template: UserLanguageSubcategory]] — for rendering the page display of the [[Special:Categories|'''sub'''-categories]] of specific user language of [[:category: Wiki people by language]]


;''External links
;''External links
Line 78: Line 78:


[[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 14:41, 22 August 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 here on WikiIndex, and external links by way of interwiki to the English Wikipedia). These specific categories are all part of category: Wiki people by language. This particular template has two (2) input requirements – immediately after {{UserLanguageCategory| . . .: both are compulsory; the second default no is acceptable, but the native translation is ideally preferred.

  • 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 category page:
The people in this category here on WikiIndex listed below speak Spanish.
  • two-input, two-language output example: {{UserLanguageCategory|sv|'''[[:Category:Wiki People|Personerna]]''' i denna [[Special:Categories|kategori]] här på WikiIndex listade nedan '''talar {{tag|Swedish|svenska}}'''}}
which displays at the top of the category page:
Personerna i denna kategori här på WikiIndex listade nedan talar svenska.
------------------------------------------------------------------------------------------------------
The people in this category here on WikiIndex listed below speak Swedish.
See also
External links