Template:UserLanguageCategory: Difference between revisions
Jump to navigation
Jump to search
Hoof Hearted (talk | contribs) m (Hoof Hearted moved page Template:LanguageCategory to Template:UserLanguageCategory: old name was ambiguous and confusing - new name is clearer) |
Hoof Hearted (talk | contribs) m (fix help text following rename) |
||
Line 60: | Line 60: | ||
*'''3rd''' — 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>{{ | <code><nowiki>{{UserLanguageCategory|</nowiki>''<nowiki>code|native language translation</nowiki>''<nowiki>}}</nowiki></code><br> | ||
*two-input one-language output example: <code><nowiki>{{ | *two-input one-language output example: <code><nowiki>{{UserLanguageCategory|es|no}}</nowiki></code> | ||
::which displays at the top of the page: | ::which displays at the top of the page: | ||
:::The people in this [[Special:Categories|category]] listed below speak '''[[:Category:Spanish|Spanish]]'''. | :::The people in this [[Special:Categories|category]] listed below speak '''[[:Category:Spanish|Spanish]]'''. | ||
*two-input two-language output example: <code><nowiki>{{ | *two-input two-language output example: <code><nowiki>{{UserLanguageCategory|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'''. |
Revision as of 20:05, 24 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
{{UserLanguageCategory|code|native language translation}}
- two-input one-language output example:
{{UserLanguageCategory|es|no}}
- two-input two-language output example:
{{UserLanguageCategory|sv|Dessa användare pratar '''svenska'''.}}
- See also
- Template:UserLanguageSubcategory — for rendering the page display of the specific language subcategories of Category:Wiki People by Language