Extension:Babel/sco

The Babel extension eiks ae parser function tae replace the auld Babel system that compleatlie relied apon templates. Gif aen onrecognised leid guidein is speceefied, it will see gif thaur's aen exeestin template wi the name an incluid thon.

Oan Wikimedia waurks, the noon Babel (reeferencin the Tower o Babel) refers tae the texs oan uiser pages aidin monieleidic communication bi makin it easier tae contact somebodie that speaks ae giein leid. The idea wis born in the Wikimedia Commons an haes been implemented oan monie ither wikis an aw.

Instawation

 * 1)  or dounlid ae snapshot. Chuiss the version that matches yer version o MediaWiki.
 * 2) Creaut ae directerie   in yer   directerie.
 * 3) Extract the files to this   directerie.
 * 4) Eik   tae the bottom o LocalSettings.php.
 * 5) The CSS is found in the file  . Ye can change the style whaniver ye want bi owerridin thaim in the page  . Afore version  ye haed tae capie aw the CSS tae.
 * 6) Instawation can nou be verified through Special:Version o yer wiki.

Gif the is foond than leid names ar taen fae that (whaur owersets ar no available), itherwise built in MediaWiki leid names an Ingils defauts ar uised.

Uissage
Syntax fer the  parser function is as follaes:

Eik yin o the follaein codes fer ilka leid that ye speak or unnerstaunnd, separatit bi, whaur   is the MediaWiki leid code, ISO 639-1 code, or ISO 639-3 code fer the leid. The general uissage o ilka code level is aes follaes:


 * : Gif ye dinna unnerstaunnd the leid at aw.
 * : Baseec abeelitie/first steps - enouch tae unnerstaaund wrutten material or simple speirins in this leid.
 * : Midlin abeelitie - enooch fer eeditin or tauks.
 * : Advaunced level/vera guid - awthooch ye can write in this leid wi nae proablem, some smaa mistaks micht happen.
 * : "Neur-nateeve" level - awthooch it's no yer first leid fae birth, yer abeelitie is closs tae bit no quite lik ae nateeve speaker.
 * : Profeessional profeeciencie.
 * or : Nateeve speakers that uise ae leid aw days an hae ae firm haunnle oan it, incluidin colloquialeesms an eedioms.

Tae incluid onie ither template, juist eik the name o the template, e.g. eik  gif ye want tae incluid. Ae prefix or suffix can be eikit tae template names (e.g.  at the beginning) dependin oan the local confeeguration, this can be uised tae restreect the selection an reduce the langth o boundins; fer exaumple   coud incluid   gif confeegured in lik that.

Confeeguration
Babel haes sax confeeguration variables that can be modified in.


 * : (string) the path o the leid code database file, the defaut shoud dae.


 * : (string) the path o the leid name database file, the defaut shoud dae.


 * : (array o string or boolean, indexet bi the strings "1", "2", … "5", "N") whaur ilka entrie is the name o ae categerie fer the skill level indicated bi its index, possible variable elements ar: %code% (the leid code), %wikiname% (the name o the leid in the wiki's content leid), an %nativename% (the name o the leid in the leid itsel). Tae disable the eikin o ae categerie fer ae pairteecular level, set the correspondin value tae fause.


 * Fer exaumple:


 * will uise categeries lik "Category:User en-0" an "Category:User fr-N". The defaut is juist "Category:Fr-N" an sae oan.


 * : (string) Name o the main (non-level) categerie fer ilka leid, that aw uisers o that leid ar eikit tae. Set tae fause tae disable; defauts tae format "Category:Fr". It accepts the same format aes  abuin. Exaumple:
 * $wgBabelMainCategory = 'User %code%';


 * : (string) Defaut abeelitie level tae uise whan yin is no speceefied, shoud be aen index fae, that is yin o the strings "1", "2", … "5", "N". Defaut is "N".


 * : (boolean) Whather tae uise the uiser interface leid fer the heider an footer message. Gif fause (the defaut), it will be in the page content leid. This is cause uisin the uiser interface leid micht 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