Module:Imahero/test: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 9: | Line 9: | ||
langObject = mw.getLanguage( 'simple' ) | langObject = mw.getLanguage( 'simple' ) | ||
return langObject:getCode() | return langObject:getCode() | ||
end | |||
function p.arrow( frame, direction ) | |||
langObject = mw.getLanguage( 'simple' ) | |||
return langObject:getArrow(direction) | |||
end | end | ||
return p | return p |
Revision as of 01:54, 15 March 2021
See usage on user:imahero/test.
local p = {} --p stands for package
function p.test( frame )
return frame
end
function p.language( frame )
langObject = mw.getLanguage( 'simple' )
return langObject:getCode()
end
function p.arrow( frame, direction )
langObject = mw.getLanguage( 'simple' )
return langObject:getArrow(direction)
end
return p