Extension:Babel

The Babel extension adds a link>Special:MyLanguage/parser function|parser function to replace the old Babel system that completely relied on templates. If an unrecognized language parameter is specified, it will see if there is an existing template with the name and include that.

On Wikimedia projects, the noun Babel (in reference to the Tower of Babel) refers to the texts on user pages aiding multilingual communication by making it easier to contact someone who speaks a certain language. The idea originated on the Wikimedia Commons and has also been implemented on many other wikis.

Usage
Syntax for the   link>Special:MyLanguage/parser function|parser function is as follows:

Add one of the following codes for each language you speak or understand, separated by  , where   is the MediaWiki language code, ISO 639-1 code, or ISO 639-3 code for the language. The general usage of each code level is as follows:


 *  : If you don't understand the language at all.
 *  : Basic ability - enough to understand written material or simple questions in this language.
 *  : Intermediate ability - enough for editing or discussions.
 *  : Advanced level - though you can write in this language with no problem, some small errors might occur.
 * <tvar|xx-4> </>: "Near-native" level - although it's not your first language from birth, your ability is something like that of a native speaker.
 * <tvar|xx-5> </>: Professional proficiency.
 * <tvar|xx> </> or <tvar|xx-N> </>: Native speakers who use a language every day and have a thorough grasp of it, including colloquialisms and idioms.

To include any other template, simply add the name of the template, e.g. add  if you want to include. A prefix or suffix may be added to template names (e.g.  at the beginning) depending on the local configuration, this can be used to restrict the selection and reduce the length of parameters; for example   could include   if configured in such a way.

To remove the header and footer, use  as the first parameter, e.g. <tvar|plain> </>. This makes it easier to use babel with other userboxes.

<span class="mw-headline" id="System_messages">System messages [ edit ]
Several customizations can also be made using MediaWiki namespace messages.


 * MediaWiki:babel-template " "
 * The format of template names when one is being included.


 * MediaWiki:babel-portal " "
 * The format of the target of the link from the language code.


 * MediaWiki:Babel-autocreate-user " "
 * Username to be used for autocreation of Babel related categories


 * MediaWiki:babel-autocreate-text-levels " "


 * MediaWiki:babel-autocreate-text-main " "
 * Text to insert into auto-created categories for non-level categories. You have to change this if you want them to be auto-categorized in a parent category for all languages.


 * MediaWiki:babel " "
 * The header of the babel box


 * MediaWiki:babel-url " "
 * The pagename where information on the babel extension can be found


 * MediaWiki:Babel-footer " "
 * The footer of the babel box


 * MediaWiki:babel-footer-url " "
 * The page to link to in the footer of the babel box