Template:UserLanguageCategory: Difference between revisions

From WikiIndex
Jump to navigation Jump to search
(another example)
(display example)
Line 61: Line 61:
;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 two-language example:  <code><nowiki>{{LanguageCategory|da|Disse brugere taler '''dansk'''.}}</nowiki></code>
:two-output one-language example:  <code><nowiki>{{LanguageCategory|es|no}}</nowiki></code>
:two-output one-language 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:
:::Dessa användare pratar '''svenska'''.
:::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 [[Special:Categories|subcategories]] of [[:Category:Wiki People by Language]]

Revision as of 12:04, 22 September 2012

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

  • 1 — the language abbreviation, see Template:Language
  • 2 — translation of "These users speak (language)"; no if English
  • 3 — 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-output one-language example: {{LanguageCategory|es|no}}
two-output two-language 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