Module:Imahero/test/doc

From Heroes 3 wiki
Jump to navigation Jump to search

This is the documentation page for Module:Imahero/test

See usage on user:imahero/test.

Embed Code Example[edit | hide | hide all]

Example of embedding code on a page (this code does nothing and is just for show):

local p = {} --p stands for package

function p.test( frame )
    return frame
end

langObject = mw.getLanguage( 'simple' )

function p.language( frame )
    return langObject:getCode()
end

function p.arrow( frame )
    return langObject:getArrow( frame.args.direction )
end

return p