Module:Sandbox/Alexiscoutinho: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 16:
local lang = mw.getContentLanguage()
local frame = mw.getCurrentFrame()
 
return [[{| class="wikitable"
require('Module:Lua class')
|+ Caption text
local C1 = class('Base', {
|-
a = function () return 'a' end,
! Header text !! Header text !! Header text
b = function () return 'base' end
|-
})
| Example || Example || Example
local C2 = class(C1, {
|-
b = function () return 'not base' end
| Example || Example || Example
})
|-
local obj1, obj2 = C1(), C2()
| Example || Example || Example
 
|}]]
--[[local conc = ''
for k in pairs(t) do
conc = conc .. k
end]]
 
return type(C1) .. ' ' .. type(obj1) .. ' ' .. type(obj2)
end