Module:Box: Difference between revisions
Jump to navigation
Jump to search
Want an adless experience? Log in or Create an account.
mNo edit summary |
(looks like trying to overload a type with 'static' functions is going to be a pain, so separating out the type and the module) |
||
Line 61: | Line 61: | ||
:addClass( 'edit plainlinks' ) | :addClass( 'edit plainlinks' ) | ||
:wikitext( '[' .. tostring( mw.uri.fullUrl( self.args.edit, { action = 'edit' } ) ) .. ' [edit]]' ) | :wikitext( '[' .. tostring( mw.uri.fullUrl( self.args.edit, { action = 'edit' } ) ) .. ' [edit]]' ) | ||
end | end | ||
Line 99: | Line 96: | ||
end | end | ||
local p, mt = | local p, mt = {}, {} | ||
p.Box = Box | |||
function p._main( boxType, args ) | function p._main( boxType, args ) | ||
local box = Box.new( boxType, args ) | local box = Box.new( boxType, args ) | ||
return box:render() | return box:render() | ||
end | end | ||