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

אין תקציר עריכה
אין תקציר עריכה
שורה 2: שורה 2:
local ans = ""
local ans = ""
local pframe = frame:getParent()
local pframe = frame:getParent()
local template = pframe:getTitle()
local empty = false
local empty = false
local start = true
local start = true
local numbered = 0
local numbered = 0
local mustnum = tonumber(frame.args[1])
local mustnum = tonumber(frame.args[1])
local suggestions = mw.loadData(template .. "/ניהול פרמטרים");
for k1, v1 in pairs( suggestions ) do
ans = out(ans, v1)
end
for k, v in pairs( pframe.args ) do
for k, v in pairs( pframe.args ) do
if type( k ) == 'string' then
if type( k ) == 'string' then
שורה 23: שורה 28:
return ans
return ans
end
end
return "<div class=error> '''שגיאת פרמטרים ב[[" .. pframe:getTitle() .. "]]:<br/>"
return "<div class=error> '''שגיאת פרמטרים ב[[" .. template .. "]]:<br/>"
.. ans .. "''' </div>[[קטגוריה:שגיאות פרמטריות]]"  
.. ans .. "''' </div>[[קטגוריה:שגיאות פרמטריות]]"  
end
end