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

שחזור לגרסה 18190459 מתאריך 17:08, 25 בפברואר 2016 מאת IKhitron
אין תקציר עריכה
שורה 154: שורה 154:
if not found
if not found
then equalerror("פרמטר לא ידוע: " .. p .. "=")
then equalerror("פרמטר לא ידוע: " .. p .. "=")
end
end
end
function shorthidden(frame)
local pframe = frame:getParent()
type = sub1(pframe:getTitle(), 7)
local found
for p, pp in pairs(pframe.args) do
found = false
for z, zz in ipairs(frame.args) do
if tostring(p) == tostring(zz)
then found = true
end
end
if not found
then equalerror('<div class="parameters">פרמטר לא ידוע: ' .. p .. "</div>")
end
end
end
end
שורה 193: שורה 210:
return frame:expandTemplate{title = "הערות שוליים", args = newargs}
return frame:expandTemplate{title = "הערות שוליים", args = newargs}
end
end
function test(frame)
 
return mw.language.fetchLanguageName( "no", "he" )
return {main = main, equal = equal, decode = decode, short = short, shorthidden = shorthidden, biur = biur, biurim = biurim}
end
return {main = main, equal = equal, decode = decode, short = short, biur = biur, biurim = biurim, test = test}