Hopp til innhold

Modul:Convert

Fra Wikipedia, den frie encyklopedi
Sideversjon per 26. aug. 2012 kl. 20:14 av en>Uncle G (Started module.)
(diff) ← Eldre sideversjon | Nåværende sideversjon (diff) | Nyere sideversjon → (diff)
Moduldokumentasjon
--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