LinguaLibre
Difference between revisions of "Babel/text"
< LinguaLibre:Babel
(→Usage) |
(Undo revision 5392664 by 68.2.111.231 (talk)) |
||
Line 5: | Line 5: | ||
==Usage== | ==Usage== | ||
{{#babel:ru-N|en-5|fr-1}} | {{#babel:ru-N|en-5|fr-1}} | ||
− | You can add user information to [[Special:MyPage|your user page]] by inserting code like this: <pre>{{#babel:ru-N|en-5|fr-1}}</pre> | + | You can add user information to [[Special:MyPage|your user page]] by inserting code like this: <pre>{{#babel:ru-N|en-5|fr-1}}</pre> |
+ | |||
This outputs the boxes you see at right. You can add as many languages as you want, in the form ''language code''-''proficiency level''. | This outputs the boxes you see at right. You can add as many languages as you want, in the form ''language code''-''proficiency level''. | ||
− | ; Language | + | ; Language code |
− | : The extension recognizes standard ISO 639 (1–3) language codes. You can find your language by searching the [[w:List of ISO 639-1 codes|list of ISO | + | : The extension recognizes standard ISO 639 (1–3) language codes. You can find your language by searching the [[w:List of ISO 639-1 codes|list of ISO 639-1 codes]] or [[tools:~pathoschild/iso639db|a database of ISO 639 1–3 codes]]. |
; Proficiency | ; Proficiency | ||
: The proficiency describes how well you can communicate in the language. It's indicated by a single character from the '''Proficiency''' column in the table below: | : The proficiency describes how well you can communicate in the language. It's indicated by a single character from the '''Proficiency''' column in the table below: | ||
− | :{| class="wikitable" | + | :{| class="wikitable" |
− | |- | + | |- |
! Proficiency | ! Proficiency | ||
! Meaning | ! Meaning | ||
− | |- | + | |- |
| 0 | | 0 | ||
| You don't understand the language at all. | | You don't understand the language at all. | ||
Line 32: | Line 33: | ||
| 4 | | 4 | ||
| You can speak like a native speaker (though it's not your birth language). | | You can speak like a native speaker (though it's not your birth language). | ||
− | |- | + | |- |
+ | | 5 | ||
| You have professional proficiency; you understand the nuances of the language well enough to translate advanced documents. | | You have professional proficiency; you understand the nuances of the language well enough to translate advanced documents. | ||
|- | |- | ||
| N | | N | ||
| You are a native speaker of the language and have a thorough grasp of it, including colloquialisms and idioms. | | You are a native speaker of the language and have a thorough grasp of it, including colloquialisms and idioms. | ||
− | |} | + | |} |
===Custom layout (Metawiki only)=== | ===Custom layout (Metawiki only)=== | ||
The boxes are neatly stacked along the right side of the page by default, but you can suppress the floating and header by wrapping it in the <tt>babel-plain</tt> class. For example: | The boxes are neatly stacked along the right side of the page by default, but you can suppress the floating and header by wrapping it in the <tt>babel-plain</tt> class. For example: | ||
− | <pre> | + | <pre> |
− | {{babel-plain|en-N|fr-3|az-0}} | + | {{babel-plain|en-N|fr-3|az-0}} |
-or- | -or- | ||
<div class="babel-plain">{{#babel:en-N|fr-3|az-0}}</div> | <div class="babel-plain">{{#babel:en-N|fr-3|az-0}}</div> | ||
</pre> | </pre> | ||
− | {{babel-plain|en-N|fr-3|az-0}} | + | {{babel-plain|en-N|fr-3|az-0}} |
+ | |||
This only works on Metawiki, due to its [[MediaWiki:Common.css|custom CSS]]. | This only works on Metawiki, due to its [[MediaWiki:Common.css|custom CSS]]. | ||
Revision as of 23:45, 13 April 2013
User language boxes list the languages a Wikimedia editor is comfortable communicating in, and their proficiency. This improves communication across the diverse community, both directly and by helping find interpreters and translators.
Usage
Babel user information | ||
---|---|---|
| ||
Users by language |
You can add user information to your user page by inserting code like this:
{{#babel:ru-N|en-5|fr-1}}
This outputs the boxes you see at right. You can add as many languages as you want, in the form language code-proficiency level.
- Language code
- The extension recognizes standard ISO 639 (1–3) language codes. You can find your language by searching the list of ISO 639-1 codes or a database of ISO 639 1–3 codes.
- Proficiency
- The proficiency describes how well you can communicate in the language. It's indicated by a single character from the Proficiency column in the table below:
Proficiency Meaning 0 You don't understand the language at all. 1 You can understand written material or simple questions. 2 You can edit simple texts or participate in basic discussions. 3 You can write in this language with some minor errors 4 You can speak like a native speaker (though it's not your birth language). 5 You have professional proficiency; you understand the nuances of the language well enough to translate advanced documents. N You are a native speaker of the language and have a thorough grasp of it, including colloquialisms and idioms.
Custom layout (Metawiki only)
The boxes are neatly stacked along the right side of the page by default, but you can suppress the floating and header by wrapping it in the babel-plain class. For example:
{{babel-plain|en-N|fr-3|az-0}} -or- <div class="babel-plain">{{#babel:en-N|fr-3|az-0}}</div>
This only works on Metawiki, due to its custom CSS.
See also
- mw:Extension:Babel (the underlying software extension)
- Language combination indicators for translators
- Historical
- Meta's alternative system (2008–2011)
- Vote to enable extension (2008–2011)