Difference between revisions of "Template:UserLanguageCategory"

WikiIndex - wikis, wiki people, wiki software, and wiki ideas
Jump to: navigation, search
(useage help)
(another 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 example:  <code><nowiki>{{LanguageCategory|da|Disse brugere taler '''dansk'''.}}</nowiki></code>
+
: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>
 
;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 10:19, 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 two-language example: {{LanguageCategory|da|Disse brugere taler '''dansk'''.}}
two-output one-language example: {{LanguageCategory|es|no}}
See also