Template:Language: Difference between revisions

Jump to navigation Jump to search
m
Text replacement - "Wiki People" to "Wiki people"
(lcfirst)
m (Text replacement - "Wiki People" to "Wiki people")
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div style="float:right; border:solid #{{LanguageColours1|{{{2}}}}} 1px; margin:.1em">
<includeonly><div style="float:right; border:solid #{{LanguageColours1|{{{2}}}}} 1px; margin:.1em">
{|cellspacing=0 style="width:230px; background:#{{LanguageColours2|{{{2}}}}}"
{|cellspacing=0 style="width:230px; background:#{{LanguageColours2|{{{2}}}}}"
|style="width:40px; height:45px; background:#{{LanguageColours3|{{{2}}}}}; text-align:center; font-size:13pt"|'''[[:Category:{{LanguageNames|{{{1}}}}}Speakers|{{{1}}}]]-{{{2}}}'''
|style="width:40px; height:45px; background:#{{LanguageColours3|{{{2}}}}}; text-align:center; font-size:13pt"|'''[[:Category:{{Language names|{{{1}}}}} speakers|{{{1}}}]]-{{{2}}}'''
|style="font-size:10pt; padding:1pt; <!--line-height:1.25em-->"|This person is {{#switch:{{{2}}}|2=an|3=an|#default=a}} [[:Category:{{LanguageNames|{{{1}}}}}Speakers ({{{2}}})|{{lcfirst:{{Language/{{{2}}}}}}} {{LanguageNames|{{{1}}}}} speaker]].
|style="font-size:10pt; padding:1pt<!--; line-height:1.25em-->"|This person is {{#switch:{{{2}}}|2=an|3=an|#default=a}} [[:Category:{{Language names|{{{1}}}}} speakers ({{{2}}})|{{lcfirst:{{Language/{{{2}}}}}}} {{Language names|{{{1}}}}} speaker]].
|}</div>{{#switch:{{{cat}}}
|}</div>{{#switch:{{{cat}}}
|no=
|no=
|#default=[[Category:{{LanguageNames|{{{1}}}}}Speakers|{{PAGENAME}}]][[Category:{{LanguageNames|{{{1}}}}}Speakers ({{{2}}})|{{PAGENAME}}]]
|#default=[[Category:{{Language names|{{{1}}}}} speakers|{{PAGENAME}}]][[Category:{{Language names|{{{1}}}}} speakers ({{{2}}})|{{PAGENAME}}]]
}}</includeonly><noinclude>
}}</includeonly><noinclude>
{|style=float:right
{|style=float:right
![[Cambridge-Dictionary:babel|babel]] examples below
!{{Cambridge-Dictionary|babel}} examples below
|-
|-
|{{Language|fr|N|cat=no}}
|{{Language|fr|N|cat=no}}
Line 27: Line 27:
:''Note:'' [[red link]]s indicate we have no {{tag|Wiki people by language|person}} here on this WikiIndex wiki site who speaks that {{tag|language}} at that level.
:''Note:'' [[red link]]s indicate we have no {{tag|Wiki people by language|person}} here on this WikiIndex wiki site who speaks that {{tag|language}} at that level.


This {{tag|User language templates|user language template}} renders the appropriate specific '''{{tag|language}}''' '[[Cambridge-Dictionary:babel|babel]]' user-box (examples shown right); as used on personal individual '''[[user page]]s''' of those [[:Category:Wiki People|people]] who identify their {{tag|Wiki people by language|spoken language(s)}}, along with any 'parent' [[Special:Categories|category]] and its associated sub-categories of [[:category: Wiki people by language]].
This {{tag|User language templates|user language template}} renders the appropriate specific '''{{tag|language}}''' '{{Cambridge-Dictionary|babel}}' user-box (examples shown right); as used on personal individual '''[[user page]]s''' of those [[:Category:Wiki people|people]] who identify their {{tag|Wiki people by language|spoken language(s)}}, along with any 'parent' [[Special:Categories|category]] and its associated sub-categories of [[:category: Wiki people by language]].


This [[Special:Templates|template]] has <u>two</u> (2) compulsory input requirements; immediately after <code>{{Language| . . .</code>.
This [[Special:Templates|template]] has <u>two</u> (2) compulsory input requirements; immediately after <code>{{Language| . . .</code>.
Line 34: Line 34:


===Usage===
===Usage===
To use a [[Cambridge-Dictionary:babel|babel]] box on your own [[user page]], highlight the following code, copy (<kbd>Ctrl-c</kbd> on your Windows keyboard, or <kbd>⌘-c</kbd> on a Macintosh keyboard), paste (<kbd>Ctrl-v</kbd> or <kbd>⌘-v</kbd>) it in the [[edit box]] of your user page, then amend the two '''''bold-italics''''' to the required information, before saving (<kbd>Ctrl-s</kbd> or <kbd>⌘-s</kbd>) your [[edit]].
To use a {{Cambridge-Dictionary|babel}} box on your own [[user page]], highlight the following code, copy (<kbd>Ctrl-c</kbd> on your Windows keyboard, or <kbd>⌘-c</kbd> on a Macintosh keyboard), paste (<kbd>Ctrl-v</kbd> or <kbd>⌘-v</kbd>) it in the [[edit box]] of your user page, then amend the two '''''bold-italics''''' to the required information, before saving (<kbd>Ctrl-s</kbd> or <kbd>⌘-s</kbd>) your [[edit]].


<code><nowiki>{{Language|</nowiki>'''''<nowiki>ISO 639 code</nowiki>'''''|level='''''<nowiki>?</nowiki>'''''<nowiki>}}</nowiki></code><br>
<code><nowiki>{{Language|</nowiki>'''''<nowiki>ISO 639 code</nowiki>'''''|level='''''<nowiki>?</nowiki>'''''<nowiki>}}</nowiki></code><br>
Line 53: Line 53:
;''See also
;''See also
*{{WMF-Meta|Template: List of language names ordered by code}} — at [[Wikimedia Meta-Wiki]]
*{{WMF-Meta|Template: List of language names ordered by code}} — at [[Wikimedia Meta-Wiki]]
*[[Template: ISO 639-2]] — creates an interwiki link to the ISO 639-2 Identifier Documentation of the two-letter (alpha-2) language code on the ISO 639-2 Registration Authority website
*[[Template: ISO 639-3]] — creates an interwiki link to the ISO 639-3 Identifier Documentation of the three-letter (alpha-3) language code on the ISO 639-3 Registration Authority website
*[[Template: IETF-language-tag]] — a template to display the standardised language code for a specific language from the Internet Engineering Task Force


===Categorisation===
===Categorisation===
All main language [[Special:Categories|categories]] for [[:Category:Wiki People|wiki people]] can be found at [[:category: Wiki people by language]].  All sub-categories can be found at <code>Category:<mark>Language</mark>Speakers (<mark>#</mark>)</code>, where <tt><mark>Language</mark></tt> is the <u>anglicised</u> name of a user language, and <tt><mark>#</mark></tt> is a number between 0-to-5 or an N which defines their proficiency level.
All main language [[Special:Categories|categories]] for [[:Category:Wiki people|wiki people]] can be found at [[:category: Wiki people by language]].  All sub-categories can be found at <code>Category:<mark>Language</mark> speakers (<mark>#</mark>)</code>, where <tt><mark>Language</mark></tt> is the <u>anglicised</u> name of a user language, and <tt><mark>#</mark></tt> is a number between 0-to-5 or an N which defines their proficiency level.


===Sub-pages and related or linked templates===
===Sub-pages and related or linked templates===

Navigation menu