מייבאים כמותיים, בדוקי עריכות אוטומטית, אינטערפעיס אדמיניסטראַטאָרן, מנטרים, מייבאים, מעדכנים, אספקלריה רעדאקטארן
3,951
רעדאגירונגען
("דארט") |
(ב:תנא קמא, קיבלת) |
||
| שורה 1: | שורה 1: | ||
local Ref = {} | local Ref = {} | ||
local function hasHebrew(text) | |||
return mw.ustring.find(text, "[א-ת]") | |||
end | |||
function parseRef(frame) | function parseRef(frame) | ||
| שורה 25: | שורה 30: | ||
text = frame:preprocess(args[1]) | text = frame:preprocess(args[1]) | ||
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 | ||
רעדאגירונגען