Template:UserLanguageSubcategory: Difference between revisions

From WikiIndex
Jump to navigation Jump to search
(fix examples for 3rd input)
(Undid revision 214012 by Hoof Hearted (talk) - whoops, my mistake)
Line 29: Line 29:
;''Usage
;''Usage
<code><nowiki>{{UserLanguageSubcategory|</nowiki>''<nowiki>ISO 639 code</nowiki>''|''<nowiki>native language translation</nowiki>''<nowiki>|level=</nowiki>''<nowiki>?</nowiki>''<nowiki>}}</nowiki></code><br>
<code><nowiki>{{UserLanguageSubcategory|</nowiki>''<nowiki>ISO 639 code</nowiki>''|''<nowiki>native language translation</nowiki>''<nowiki>|level=</nowiki>''<nowiki>?</nowiki>''<nowiki>}}</nowiki></code><br>
*three-input one-language output example:  <code><nowiki>{{UserLanguageSubcategory|de|no|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 '''[[:Category:Wiki People|people]]''' in this [[Special:Categories|sub-category]] listed below speak '''[[:Category:German|German]]''' at an '''advanced''' level.
:::The '''[[:Category:Wiki People|people]]''' in this [[Special:Categories|sub-category]] listed below speak '''[[:Category:German|German]]''' at an '''advanced''' level.
*three-input two-language output example:  <code><nowiki>{{UserLanguageSubcategory|sv|De här användarna har '''svenska''' som '''modersmål'''.|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 22:09, 19 June 2021

This user language template renders the appropriate page display in the specific language sub-categories of category: Wiki People by Language. This template has three (3) input requirements – immediately after {{UserLanguageSubcategory| . . ..

  • 1st — the two- (or three-) letter ISO 639 language code; see template:Language;
  • 2nd — native translation of "These users speak (language) at a (level) level"; if no is entered, only the English description will be displayed;
  • level — 0, 1, 2, 3, 4, 5, or N (for 'native').
Usage

{{UserLanguageSubcategory|ISO 639 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 sub-category 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 sub-category listed below speak Swedish at a native level.
See also