Jump to content

Module:Convert

Permanently protected module
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Uncle G (talk | contribs) at 18:14, 26 August 2012 (Started module.). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

--require "mw.text"
--require "mw.page"

local p = {}

-- This is the top-level function called by {{convert}}.
function p.main(frame, config, args)
    local pframe = frame:getParent()
    local args = pframe.args -- the arguments passed TO the {{convert}} template, in the wikitext that instantiates the template
    local config = frame.args -- the arguments passed BY the {{convert}} template, in the wikitext of the template itself
    error ("Module:Convert is not implemented")
    return ""    
end

return p