AnthroWiki ist auf einen neuen Server umgezogen!
Unsere alten Seiten bleiben vorerst hier online, werden aber nicht mehr gepflegt! Das neue AnthroWiki finden Sie wie gewohnt unter anthrowiki.at.



gemeinsam neue Wege der Erkenntnis gehen
Eine freie Initiative von Menschen bei anthro.wiki, anthro.world und biodyn.wiki
mit online Lesekreisen, Übungsgruppen, Vorträgen ...
PayPal btn small.gif Wie Sie die Entwicklung von AnthroWiki durch Ihre Spende unterstützen können, erfahren Sie hier.

Modul:Multilingual/config

Aus AnthroWiki
Wechseln zu: Navigation, Suche

Die Dokumentation für dieses Modul kann unter Modul:Multilingual/config/Doku erstellt werden

local Serial = "2018-12-31"
local Site   = "dewiki"
local Scream = "Wikipedia:Vorlagenfehler/Parameter:Sprachcode"
--[=[
require() table Multilingual/config
]=]



-- Export
local p = { }

p.serial = Serial

p.site = Site

p.scream = Scream

p.scanMinusculization = "sch "

p.seekMinusculization = " la th "

p.stopMinusculization = " ace af ak anp arn avk ay bbc bcc bcl bh bho bi bm bpy brh cdo ceb ch chm chr ckb cps de-ch diq dtp dv dz ee eo fa ff fit fj frc gan glk gn gu gv ha hak hi hif hil ia ie ig ii ik ike ilo io iu jbo khw kiu km kn kri krj ks kv lad lg ln loz lus mai mhr mi min ml mr mrj nah nan new niu nov nso nv ny om or pa pag pam pap pi pnb ps qu qug rgn rif rmy rom sa sat sd sei sg shi sn so ss st sw ta tcy te tet ti tl tn tru ts ur ve vo vro war wo wuu xh yo za zu "

p.tmplLang = { namePat = "%sS" }
--[=[
enwiki
    p.tmplLang = { namePat = "lang-%s" }
]=]

p.getLink = function ( access, frame )
    -- Retrieve link to language article
    -- Precondition:
    --     access  -- string with language code
    --     frame   -- frame object
    local r
    local title = mw.title.makeTitle( 10, access .. "S" )
    if title.exists then
        r = frame:expandTemplate{ title = title }
    else
        r = false
    end
    return r
end -- p.getLink

return p