אונטערשייד צווישן ווערסיעס פון "יחידה:Lexicon"

5 בייטן צוגעלייגט ,  פֿאַר 2 יאָר
קיין רעדאגירונג באמערקונג
אין תקציר עריכה
אין תקציר עריכה
צייכן: מאנועל צוריקשטעל
 
(10 צווישנדיגע ווערסיעס פונעם זעלבן באַניצער נישט געוויזן)
שורה 6: שורה 6:
if type(text) == 'string' then
if type(text) == 'string' then
text = text:match('(%S.-)%s*$')
text = text:match('(%S.-)%s*$')
local delink = require('Module:Delink')._delink
text = delink({text, wikilinks = "target"})
end
end
return text
return text
שורה 18: שורה 16:
local data = mw.loadData('יחידה:Lexicon/Data')
local data = mw.loadData('יחידה:Lexicon/Data')
local word = stripToNil(args[1])
local word = stripToNil(args[1])
return data.words[word]
local ret = data[word]
if not ret then
if args[2] then
ret = args[2]
else
ret = args[1]
    end
end
return ret
end
end


return p
return p