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.

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.

Configuration parameters
Babel haes sax confeeguration variables that can be modified in.


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


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


 * ; $var : (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:  (the leid code),   (the name o the leid in the wiki's content leid), an   (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.
 * ; $var : (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:  (the leid code),   (the name o the leid in the wiki's content leid), an   (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.


 * ; $var : (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:
 * ; $var : (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:


 * ; $var : (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".
 * ; $var : (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".


 * ; $var : (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.
 * ; $var : (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.


 * Array of namespaces to only add automatic categorization to. For example, if, then Babel will only add categories to pages in the user namespace. The default is null, which means categorize all namespaces.
 * Array of namespaces to only add automatic categorization to. For example, if, then Babel will only add categories to pages in the user namespace. The default is null, which means categorize all namespaces.

System messages
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. Set to the empty string to not link the language 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 Set to  to not display a header.


 * MediaWiki:babel-url " "
 * The pagename whaur information aneat the babel extension can be foond Set to  to display no link in the header.


 * MediaWiki:Babel-footer " "
 * The footer o the babel kist Set to  to not display a footer.


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