Modul:Multilingual/config: Unterschied zwischen den Versionen

Modul:Multilingual/config: Unterschied zwischen den Versionen

imported>PerfektesChaos
(2016-10-10)
 
imported>PerfektesChaos
(2021-08-01)
 
Zeile 1: Zeile 1:
local Serial = "2016-10-10"
local Serial = "2021-08-01"
local Site = "dewiki"
local Site   = "dewiki"
local Scream = "Wikipedia:Vorlagenfehler/Parameter:Sprachcode"
--[=[
--[=[
Multilingual/config
Multilingual/config
mw.loadData()
]=]
]=]
 
return {
 
scanMinusculization = "sch ",
 
seekMinusculization = " fa la th ",
-- Export
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 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 ",
local p = { }
tmplLang = { namePat = "%sS" },
 
--[=[
p.serial = Serial
enwiki
 
     p.tmplLang = { namePat = "lang-%s" }
p.site = Site
]=]
 
scream = Scream,
p.stopMinusculization = " af ak chm ckb de-ch dv eo fa fr-ch gn gv it-ch la lg km kn kv lg ml mr qu rom sa sn st sw ta te tet th tl tn ur wo "
site  = Site,
 
failsafe = Serial
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

Aktuelle Version vom 20. August 2021, 15:04 Uhr

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

local Serial = "2021-08-01"
local Site   = "dewiki"
local Scream = "Wikipedia:Vorlagenfehler/Parameter:Sprachcode"
--[=[
Multilingual/config
mw.loadData()
]=]
return {
scanMinusculization = "sch ",
seekMinusculization = " fa la th ",
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 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 ",
tmplLang = { namePat = "%sS" },
--[=[
enwiki
    p.tmplLang = { namePat = "lang-%s" }
]=]
scream = Scream,
site   = Site,
failsafe = Serial
}