Please add your wiki, and join our community. Note: WikiIndex is not a wiki hosting service.
(please log-in to bypass the anti-spam Captcha and remove this heading notice)
Template:UserLanguageCategory: Difference between revisions
Jump to navigation
Jump to search
Hoof Hearted (talk | contribs) (another minor fix) |
Hoof Hearted (talk | contribs) (more minor tweaks) |
||
Line 1: | Line 1: | ||
<includeonly>{|border=0 style=float:right | <includeonly>{|border=0 style=float:right | ||
|+'''[[Template:Language|How | |+'''[[Template:Language|How the babels appear]] | ||
|- | |- | ||
|<tt><nowiki>{{Language|</nowiki>{{{1}}}<nowiki>|0}}</nowiki></tt> | |<tt><nowiki>{{Language|</nowiki>{{{1}}}<nowiki>|0}}</nowiki></tt> | ||
Line 32: | Line 32: | ||
'''{{FULLPAGENAME}}''' | '''{{FULLPAGENAME}}''' | ||
{{#switch:{{{2}}} | {{#switch:{{{2}}}. | ||
|no= | |no= | ||
|#default={{{2}}} | |#default={{{2}}}. | ||
---- | ---- | ||
}} | }} | ||
Line 42: | Line 42: | ||
{{#switch:{{{3}}} | {{#switch:{{{3}}} | ||
|no= | |no= | ||
|#default=*{{Wp|{{{3|{{LanguageNames|{{{1}}}}} language}}}|{{{3|{{LanguageNames|{{{1}}}}} language}}} | |#default=*{{Wp|{{{3|{{LanguageNames|{{{1}}}}} language}}}|{{{3|{{LanguageNames|{{{1}}}}} language}}}}} article on the [[English Wikipedia]] | ||
}} | }} | ||
*Native language name: '''{{#Language:{{{1}}}}}''' | *Native language name: '''{{#Language:{{{1}}}}}''' | ||
Line 63: | Line 63: | ||
;''Usage | ;''Usage | ||
<code><nowiki>{{UserLanguageCategory|</nowiki>''<nowiki>ISO 639 code</nowiki>''|''<nowiki>native language translation</nowiki>''<nowiki>}}</nowiki></code><br> | <code><nowiki>{{UserLanguageCategory|</nowiki>''<nowiki>ISO 639 code</nowiki>''|''<nowiki>native language translation</nowiki>''<nowiki>}}</nowiki></code><br> | ||
*two-input one-language output example: <code><nowiki>{{UserLanguageCategory|es|no}}</nowiki></code> | *two-input <u>one-language output</u> 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 '''[[:Category:Wiki People|people]]''' in this [[Special:Categories|category]] here on WikiIndex listed below '''speak [[:Category:Spanish|Spanish]]'''. | :::The '''[[:Category:Wiki People|people]]''' in this [[Special:Categories|category]] here on WikiIndex listed below '''speak [[:Category:Spanish|Spanish]]'''. | ||
*two-input two-language output example: <code><nowiki>{{UserLanguageCategory|sv| | *two-input <u>two-language output</u> example: <code><nowiki>{{UserLanguageCategory|sv|'''[[:Category:Wiki People|Personerna]]''' i denna [[Special:Categories|kategori]] här på WikiIndex listade nedan '''talar {{tag|Swedish|svenska}}'''}}</nowiki></code> | ||
::which displays at the top of the page: | ::which displays at the top of the page: | ||
::: | :::'''[[:Category:Wiki People|Personerna]]''' i denna [[Special:Categories|kategori]] här på WikiIndex listade nedan '''talar {{tag|Swedish|svenska}}'''. | ||
:::------------------------------------------------------------------------------------------------------ | :::------------------------------------------------------------------------------------------------------ | ||
:::The '''[[:Category:Wiki People|people]]''' in this [[Special:Categories|category]] here on WikiIndex listed below '''speak [[:Category:Swedish|Swedish]]'''. | :::The '''[[:Category:Wiki People|people]]''' in this [[Special:Categories|category]] here on WikiIndex listed below '''speak [[:Category:Swedish|Swedish]]'''. |
Revision as of 15:46, 9 April 2022
This user language template renders the appropriate page display in the primary or 'mother' category of a specific language which is spoken by the people who edit (or have previously edited) this WikiIndex wiki site. It creates a standardised display, with uniform formatting, and appropriately targeted links (internal wikilinks, and external links by way of interwiki). These specific categories are all part of category: Wiki People by Language. This template has either one or two input requirements – immediately after {{UserLanguageCategory| . . .
, the first is compulsory, the second being optional (but preferred when possible).
- 1st — the two- or three- letter ISO 639 language code, (plus any sub-language letters, eg: en-gb, pt-br, zh-hk, zh-tw, etc); see template:Language and template:LanguageNames;
- 2nd — native translation of 'The people in this category here on WikiIndex listed below speak (language)'; if
no
is entered, only the description in English will be displayed.
- Usage
{{UserLanguageCategory|ISO 639 code|native language translation}}
- two-input one-language output example:
{{UserLanguageCategory|es|no}}
- two-input two-language output example:
{{UserLanguageCategory|sv|'''[[:Category:Wiki People|Personerna]]''' i denna [[Special:Categories|kategori]] här på WikiIndex listade nedan '''talar {{tag|Swedish|svenska}}'''}}
- See also
- Template: UserLanguageSubcategory — for rendering the page display of the specific language sub-categories of category: Wiki People by Language
- External links