יחידה:הערה: הבדלים בין גרסאות בדף

אין תקציר עריכה
מ גרסה אחת של הדף wikipedia:he:יחידה:הערה יובאה
 
(3 גרסאות ביניים של 3 משתמשים אינן מוצגות)
שורה 7: שורה 7:
local refDic = {}
local refDic = {}
local args = argModule.getArgs(frame)
local args = argModule.getArgs(frame)
local refName = args['שם']
local refName = args['שם'] or args['name']
local refGroup = args['קבוצה']
local refGroup = args['קבוצה'] or args['group']
local isLtr = args['שמאל'] -- remove after bot
local isRtl = args['ימין'] -- remove after bot
local direction = args['כיוון']
local direction = args['כיוון']
-- remove after bo
if isLtr and isRtl then
warnings = '<span class="error">פרמטרים מגדירים כיווניות סותרים</span>[[קטגוריה:דפים עם שגיאות בהערה]]'
end
if direction and direction ~= 'ימין' and direction ~= 'שמאל' then
if direction and direction ~= 'ימין' and direction ~= 'שמאל' then
שורה 32: שורה 26:
if refName and #refName then refDic['name'] = refName end
if refName and #refName then refDic['name'] = refName end
if refGroup and #refGroup then refDic['group'] = refGroup end
if refGroup and #refGroup then refDic['group'] = refGroup end
if isLtr and isLtr=='כן' then refDic['dir'] = 'ltr' end  -- remove after bot
if isRtl and isRtl=='כן' then refDic['dir'] = 'rtl' end -- remove after bot
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