模組:First steps
模組解[開]
你可能想去為呢個Scribunto module開一個解版。 編者可以響呢個模組嘅沙盤 (開 | 鏡)同埋試例 (開)版度試驗佢。 請加個類到個/doc嘅細版度。 呢個模組嘅細版。 |
-- test module created by user:Gangleri
-- status: 2015-12-25 draft; working as expected
local p = {}
mw.log()
local libraryUtil = require('libraryUtil')
-- from https://wikimania2015.wikimedia.org/wiki/Module:TableTools i.e. from [[wm2015:Module:TableTools]]
local TableTools = require('Module:TableTools')
-- from https://commons.wikimedia.org/wiki/Module:TableTools i.e. from [[c:Module:TableTools]]
function p.main01()
local result = ''
local dump = ''
local myobject = mw
result = result .. ';MW\n'
result = result .. '\n' .. 'type is: ' .. tostring(type(myobject)) .. '\n\n'
dump = mw.dumpObject(myobject)
result = result .. dump
return result
end
function p.main23()
local result = ''
local dump = ''
local myobject = _G
result = result .. ';_G\n'
result = result .. '\n' .. 'type is: ' .. tostring(type(myobject)) .. '\n\n'
dump = mw.dumpObject(myobject)
result = result .. dump
return result
end
return p