Template:UserLanguageCategory: Difference between revisions
Jump to navigation
Jump to search
Hoof Hearted (talk | contribs) (another example) |
Hoof Hearted (talk | contribs) (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 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'''.}}
- See also
- Template:LanguageSubcategory — for rendering the page display of the subcategories of Category:Wiki People by Language