Template:UserLanguageCategory: Difference between revisions

From WikiIndex
Jump to navigation Jump to search
(display example)
(does {{nowrap}} work?, update help text)
Line 50: Line 50:
'''4''' = [[:{{FULLPAGENAME}} (4)|Near-native]],
'''4''' = [[:{{FULLPAGENAME}} (4)|Near-native]],
'''5''' = [[:{{FULLPAGENAME}} (5)|Professional]],
'''5''' = [[:{{FULLPAGENAME}} (5)|Professional]],
'''N''' = [[:{{FULLPAGENAME}} (N)|Native]]
{{nowrap|'''N''' = [[:{{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' categories of [[:Category:Wiki People by Language]].  This template has either two or three outputs.
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).
*'''1''' — the language abbreviation, see [[Template:Language]]
*'''1st''' — the language abbreviation, see [[Template:Language]]
*'''2''' — translation of "These users speak (language)"; <tt>no</tt> if English
*'''2nd''' — translation of "These users speak (language)"; <tt>no</tt> if English
*'''3''' — 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 a [[:Category:Wikipedia|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>{{LanguageCategory|</nowiki>''<nowiki>code|native language translation</nowiki>''<nowiki>}}</nowiki></code><br>
:two-output one-language example:  <code><nowiki>{{LanguageCategory|es|no}}</nowiki></code>
*two-input one-language output example:  <code><nowiki>{{LanguageCategory|es|no}}</nowiki></code>
:two-output two-language example:  <code><nowiki>{{LanguageCategory|sv|Dessa användare pratar '''svenska'''.}}</nowiki></code>
::which displays at the top of the page:
:::The 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>
::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 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 [[Special:Categories|subcategories]] of [[:Category:Wiki People by Language]]
*[[Template:LanguageSubcategory]] — for rendering the page display of the specific language [[Special:Categories|subcategories]] of [[:Category:Wiki People by Language]]


[[Category:User language templates|Category]]
[[Category:User language templates|Category]]
[[Category:Language| ]]</noinclude>
[[Category:Language| ]]</noinclude>

Revision as of 07:39, 23 September 2012

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 English
  • 3rd — if there is a Wikipedia article on the language, write the article's name if it doesn't end with "language".
Usage

{{LanguageCategory|code|native language translation}}

  • two-input one-language output example: {{LanguageCategory|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: {{LanguageCategory|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