Extension:Babel/it

l' estensione Babel aggiunge una funzione parser che sostituisce il vecchio sistema dei Babel completamente basato sui template. Nel caso in cui venisse specificato una lingua non riconosciuta come parametro verrà mostrato il template con lo stesso nome qual ora esistesse.

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.

Installazione
Scegli la versione compatibile con la tua versione di MediaWiki.
 * 1)  o scarica uno snapshot.
 * 1) Crea una cartella   nella tua cartella.
 * 2) estrai i file nella cartella.
 * 3) Aggiungi   in fondo al LocalSettings.php.
 * 4) The CSS is located in the file  . You can change the style as desired by overriding them in the page  . Prior to version  you had to copy all the CSS to MediaWiki:Common.css.
 * 5) L'installazione può ora essere verificata attraverso Special:Version della tua wiki.

If the is found language names are taken from that (where translations are unavailable), otherwise built in MediaWiki language names and English defaults are used.

Uso
Syntax for the  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:


 * : se non comprendi per niente la lingua.
 * : Abilità di base - abbastanza per capire materiale scritto o domande semplici in questa lingua.
 * : abilità intermedia - sufficiente per la modifica o discussioni.
 * : Livello avanzato - anche se riesci a scrivere in questa lingua senza alcun problema, potrebbero verificarsi alcuni piccoli errori.
 * : Livello "simil-nativo" - anche se non è la tua lingua madre, la tua capacità è simile a quella di un madrelingua.
 * : Conoscenza professionale.
 * o : Madrelingua che utilizzano un linguaggio di ogni giorno e hanno una conoscenza approfondita di esso, comprese le espressioni colloquiali e i modi di dire.

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.

Configurazione
Babel has six configuration variables which can be modified in.


 * : (string) the path of the language code database file, the default should suffice.


 * : (string) the path of the language name database file, the default should suffice.


 * : (array of string or boolean, indexed by the strings "1", "2", … "5", "N") where each entry is the name of a category for the skill level indicated by its index, possible variable elements are: %code% (language code), %wikiname% (the name of the language in the wiki's content language), and %nativename% (the name of the language in its language). To disable adding a category for a particular level, set the corresponding value to false.


 * Per esempio


 * Userà categorie come "$ 1" e "$ 2". L'impostazione predefinita è solo "$ 3" e così via.


 * : (string) Name of the main (non-level) category for each language, to which all users of that language are added. Set to false to disable; defaults to format "Category:Fr". It accepts the same format as  above. Example:
 * $wgBabelMainCategory = 'User %code%';


 * : (string) Default ability level to use when none is specified, should be an index from, that is one of the strings "1", "2", … "5", "N". Default is "N".


 * : (boolean) Whether to use the user interface language for the header and footer message. If false (default), it will be in the page content language. This is because using the user interface language may fragment the parser cache.

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 : Text to insert into auto-created categories for different language levels. You have to change this if you want them to be auto-categorized in the main category of the respective language.
 * 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

Vedi anche

 * meta:Babel extension — discussione riguardante l'implementazione nell wiki di Wikimedia