Template:Language: Difference between revisions

width tweak to cope with Template:Personal infobox
(fix x/s whitespace)
(width tweak to cope with Template:Personal infobox)
Line 1: Line 1:
<includeonly><div style="float:left; border:solid #{{LanguageColours1|{{{2}}}}} 1px;margin:1px">
<includeonly><div style="float:left; border:solid #{{LanguageColours1|{{{2}}}}} 1px;margin:1px">
{|cellspacing="0" style="width:238px; background:#{{LanguageColours2|{{{2}}}}};"
{|cellspacing=0 style="width:225px; background:#{{LanguageColours2|{{{2}}}}}"
|style="width:45px; height:45px; background:#{{LanguageColours3|{{{2}}}}}; text-align:center; font-size:14pt"|'''[[:Category:{{LanguageNames|{{{1}}}}}Speakers|{{{1}}}]]-{{{2}}}'''  
|style="width:45px; height:45px; background:#{{LanguageColours3|{{{2}}}}}; text-align:center; font-size:14pt"|'''[[:Category:{{LanguageNames|{{{1}}}}}Speakers|{{{1}}}]]-{{{2}}}'''
|style="font-size:10pt; padding:4pt; line-height:1.25em"|This person is {{#switch:{{{2}}}|2=an|3=an|#default=a}} [[:Category:{{LanguageNames|{{{1}}}}}Speakers ({{{2}}})|{{lc:{{Language/{{{2}}}}}}} {{LanguageNames|{{{1}}}}} speaker]].
|style="font-size:10pt; padding:4pt; line-height:1.25em"|This person is {{#switch:{{{2}}}|2=an|3=an|#default=a}} [[:Category:{{LanguageNames|{{{1}}}}}Speakers ({{{2}}})|{{lc:{{Language/{{{2}}}}}}} {{LanguageNames|{{{1}}}}} speaker]].
|}</div>{{#switch:{{{cat}}}
|}</div>{{#switch:{{{cat}}}
|no=  
|no=
|#default=[[Category:{{LanguageNames|{{{1}}}}}Speakers|{{PAGENAME}}]][[Category:{{LanguageNames|{{{1}}}}}Speakers ({{{2}}})|{{PAGENAME}}]]
|#default=[[Category:{{LanguageNames|{{{1}}}}}Speakers|{{PAGENAME}}]][[Category:{{LanguageNames|{{{1}}}}}Speakers ({{{2}}})|{{PAGENAME}}]]
}}</includeonly><noinclude>
}}</includeonly><noinclude>
Line 28: Line 28:
;<big>Usage</big>
;<big>Usage</big>
<code><nowiki>{{language|code|level}}</nowiki></code><br>
<code><nowiki>{{language|code|level}}</nowiki></code><br>
Where . . .  
Where . . .
* ''<tt>[[#Find code|code]]</tt>'' = the two-or-three code acronym for the language, and
* ''<tt>[[#Find code|code]]</tt>'' = the two-or-three code acronym for the language, and
* ''<tt>level</tt>'' = a number/letter indicating how well the language is spoken:
* ''<tt>level</tt>'' = a number/letter indicating how well the language is spoken:
Line 42: Line 42:
See [[wp:List of ISO 639-1 codes#Partial ISO 639 table|Wikipedia: List of ISO 639-1 codes]], and in the table of languages, look at the column saying '''"639-1"'''.  If your language isn't there, see [[Wikipedia: List of ISO 639-2 codes]], and look at the '''Alpha-3''' column.  If it still isn't there, look at [[wp:List of ISO 639-3 codes|the ISO 639-3 codes list]] and click a letter.  If it isn't there yet, write the language's name in English.  You may also ask someone.
See [[wp:List of ISO 639-1 codes#Partial ISO 639 table|Wikipedia: List of ISO 639-1 codes]], and in the table of languages, look at the column saying '''"639-1"'''.  If your language isn't there, see [[Wikipedia: List of ISO 639-2 codes]], and look at the '''Alpha-3''' column.  If it still isn't there, look at [[wp:List of ISO 639-3 codes|the ISO 639-3 codes list]] and click a letter.  If it isn't there yet, write the language's name in English.  You may also ask someone.


;<big>Categorization</big>
;<big>Categorisation</big>
All main language [[Special:Categories|categories]] can be found at [[:Category:Wiki People by Language]], and all sub-categories can be found at Category:<tt>Language</tt>Speakers_(<tt>#</tt>), where <tt>Language</tt> is the name of a language, and <tt>#</tt> is a number between 0&ndash;5 or an N.
All main language [[Special:Categories|categories]] can be found at [[:category:Wiki People by Language]], and all sub-categories can be found at Category:<tt>Language</tt>Speakers (<tt>#</tt>), where <tt>Language</tt> is the name of a language, and <tt>#</tt> is a number between 0&ndash;5 or an N.


[[Category:User language templates| ]]
[[Category:User language templates| ]]
[[Category:Category templates]]
[[Category:Category templates]]
[[Category:Wiki People by Language| ]]</noinclude>
[[Category:Wiki People by Language| ]]</noinclude>