Template:UserLanguageSubcategory: Difference between revisions

From WikiIndex
Jump to navigation Jump to search
m (Hoof Hearted moved page Template:LanguageSubcategory to Template:UserLanguageSubcategory: old page name was ambiguous - new name is much clearer)
m (fix help text following rename)
Line 28: Line 28:
*'''level''' — 0, 1, 2, 3, 4, 5 or N (for native)
*'''level''' — 0, 1, 2, 3, 4, 5 or N (for native)
;Usage
;Usage
<code><nowiki>{{LanguageSubcategory|</nowiki>''<nowiki>code|native language translation</nowiki>''<nowiki>|level=</nowiki>''<nowiki>?</nowiki>''<nowiki>}}</nowiki></code><br>
<code><nowiki>{{UserLanguageSubcategory|</nowiki>''<nowiki>code|native language translation</nowiki>''<nowiki>|level=</nowiki>''<nowiki>?</nowiki>''<nowiki>}}</nowiki></code><br>
*three-input one-language output example:  <code><nowiki>{{LanguageSubcategory|de|no|level=3}}</nowiki></code>
*three-input one-language output example:  <code><nowiki>{{UserLanguageSubcategory|de|no|level=3}}</nowiki></code>
::which displays at the top of the page:
::which displays at the top of the page:
:::The people in this [[Special:Categories|subcategory]] listed below speak '''[[:Category:German|German]]''' at an '''Advanced''' level.
:::The people in this [[Special:Categories|subcategory]] listed below speak '''[[:Category:German|German]]''' at an '''Advanced''' level.
*three-input two-language output example:  <code><nowiki>{{LanguageSubcategory|sv|De här användarna har '''svenska''' som '''modersmål'''.|level=N}}</nowiki></code>
*three-input two-language output example:  <code><nowiki>{{UserLanguageSubcategory|sv|De här användarna har '''svenska''' som '''modersmål'''.|level=N}}</nowiki></code>
::which displays at the top of the page:
::which displays at the top of the page:
:::De här användarna har '''svenska''' som '''modersmål'''.
:::De här användarna har '''svenska''' som '''modersmål'''.

Revision as of 18:20, 24 September 2012

This user language template renders the appropriate page display in the specific language subcategories of Category:Wiki People by Language. This template has three input requirements.

  • 1st — the language abbreviation, see Template:Language
  • 2nd — translation of "These users speak (language) at a (level) level"; no if English
  • level — 0, 1, 2, 3, 4, 5 or N (for native)
Usage

{{UserLanguageSubcategory|code|native language translation|level=?}}

  • three-input one-language output example: {{UserLanguageSubcategory|de|no|level=3}}
which displays at the top of the page:
The people in this subcategory listed below speak German at an Advanced level.
  • three-input two-language output example: {{UserLanguageSubcategory|sv|De här användarna har '''svenska''' som '''modersmål'''.|level=N}}
which displays at the top of the page:
De här användarna har svenska som modersmål.
The people in this subcategory listed below speak Swedish at a Native level.
See also