בדוקי עריכות אוטומטית, אינטערפעיס רעדאקטארן, אינטערפעיס אדמיניסטראַטאָרן, סיסאפן, מייבאים, מעדכנים, מייבא, אספקלריה רעדאקטארן
46,365
רעדאגירונגען
("דארט") |
(עבר הזמן) צייכן: אַנולירונג |
||
| (15 מיטלסטע ווערסיעס פון 2 באַניצער נישט געוויזן.) | |||
| שורה 1: | שורה 1: | ||
local Ref = {} | local Ref = {} | ||
local function hasHebrew(text) | |||
return mw.ustring.find(text, "[א-ת]") | |||
end | |||
function parseRef(frame) | function parseRef(frame) | ||
| שורה 24: | שורה 29: | ||
if text then | if text then | ||
text = frame:preprocess(args[1]) | text = frame:preprocess(args[1]) | ||
if not text == nil then text = trim(trim) end | |||
if text:match("%.%.$") then | |||
text =text:sub(1, -2) | |||
end | |||
if not text:match("[!\"'()%,%-.:;?`]$") then | |||
text = text .. "." | |||
end | |||
end | |||
if refName and #refName then refDic['name'] = refName end | if refName and #refName then refDic['name'] = refName end | ||
if ibid and #ibid then refDic['extends'] = ibid end | if ibid and #ibid then refDic['extends'] = ibid end | ||
if refGroup and #refGroup then refDic['group'] = refGroup end | if refGroup and #refGroup then refDic['group'] = refGroup end | ||
if direction and direction=='שמאל' then refDic['dir'] = 'ltr' end | if direction and direction=='שמאל' then refDic['dir'] = 'ltr' end | ||
if direction and direction=='ימין' then refDic['dir'] = 'rtl' end | if direction and direction=='ימין' then refDic['dir'] = 'rtl' end | ||
if text and not hasHebrew(text) then | |||
refDic['dir'] = 'ltr' | |||
end | |||
if text and #text>0 then | if text and #text>0 then | ||
רעדאגירונגען