Difference between revisions 39875 and 39876 on test2wiki

-- This is a test of scribbling. Using Italian templates from en.wiktionary.
-- Owner SemperBlotto
local p = {}

mw.log()

function p.itadv(frame)
    local pframe = frame:getParent()
    local config = frame.args
    local args = pframe.args
    local head = args["head"]
    local pagename
    if head > nil then pagename = head
        else  = head or ("'''" .. config.pagename =.. "'''{{PAGENAME}}'''"
    end")
    local sort = args["sort"]
    local cat
    if sort >~= nil then cat = "[[category:Italian adverbs|" .. sort .. "]]"
        else cat = "[[category:Italian adverbs]]"
    end
    return pagename .. cat
end

return p