|
|
| שורה 35: |
שורה 35: |
| end | | end |
| return frame:expandTemplate({title = frame.args["קוד"], args = newargs}) | | return frame:expandTemplate({title = frame.args["קוד"], args = newargs}) |
| end
| |
|
| |
| function short(frame)
| |
| local pframe = frame:getParent()
| |
| type = mw.ustring.sub(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 and not (p == 1 and pp == "") then
| |
| equalerror("פרמטר לא ידוע: " .. p .. " = '" .. pp .. "'")
| |
| end
| |
| end
| |
| end | | end |
|
| |
|
| שורה 74: |
שורה 57: |
| newargs["קבוצה"] = frame.args[1] or "hebrew" | | newargs["קבוצה"] = frame.args[1] or "hebrew" |
| return frame:expandTemplate{title = "הערה", args = newargs} | | return frame:expandTemplate{title = "הערה", args = newargs} |
| end
| |
|
| |
| function biurim(frame)
| |
| pframe = frame:getParent()
| |
| local newargs = {}
| |
| for a, aa in pairs(pframe.args) do
| |
| if a == "קבוצה" then
| |
| error('פרמטר "קבוצה" כפול[[category:' ..
| |
| tostring(mw.message.new("Cite-tracking-category-cite-error")) .. ']]', 0)
| |
| end
| |
| newargs[a] = aa
| |
| end
| |
| newargs["קבוצה"] = frame.args[1] or "hebrew"
| |
| return frame:expandTemplate{title = "הערות שוליים", args = newargs}
| |
| end | | end |
|
| |
|
| שורה 113: |
שורה 82: |
| equal = equal, | | equal = equal, |
| decode = decode, | | decode = decode, |
| short = short,
| |
| biur = biur, | | biur = biur, |
| biurim = biurim,
| |
| } | | } |