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.

To remove the header and footer, use  as the first parameter, e.g.. This makes it easier to use babel with other userboxes.

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 customisations can be makit an aw, uisin MediaWiki namespace messages.


 * MediaWiki:babel-template " "
 * The format o the template names whan yin is bein incluided.


 * MediaWiki:babel-portal " "
 * The format o the tairget o the airtin fae the leid code.


 * MediaWiki:Babel-autocreate-user " "
 * Uisername tae be uised fer autaecreaution o the Babel relatit categeries


 * MediaWiki:babel-autocreate-text-levels " "
 * Tex tae insert intae autae-creautit categeries fer different leid levels. Ye hae tae change this gif ye want thaim tae be autae-categerised in the main categerei o the respecteeve leid.


 * MediaWiki:babel-autocreate-text-main " "
 * Tex tae insert intae autae-creautit categeries fer non-level categeries. Ye hae tae change this gif ye want thaim tae be autae-categerised in ae paurent categery fer aw leids.


 * MediaWiki:babel " "
 * The heider o the babel kist


 * MediaWiki:babel-url " "
 * The pagename whaur information aneat the babel extension can be foond


 * MediaWiki:Babel-footer " "
 * The footer o the babel kist


 * MediaWiki:babel-footer-url " "
 * The page tae airt tae in the footer o the babel kist

See an aw

 * meta:Babel extension — a tauk aneat whather it shoud be implementit oan Wikimedia wikis