Module:Prueba
Appearance
-- test module created by user:Gangleri
-- status: 2015-12-27 draft;
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 mytargetPageTitle = mw.title.new( 'pruv', 1 )
local mycurrentPageTitle = mw.title.getCurrentTitle()
local mytargetId = tostring(mytargetPageTitle.id)
local mycurrentId = tostring(mycurrenPageTitle.id)
local result = ''
local dump = ''
result = result .. ';targetPageTitle' .. '\n\n'
result = result .. 'type of mw.title.new( \'pruv\', 1 ) is ' .. tostring(type(mytargetPageTitle)) .. '\n\n'
dump = dump .. mw.dumpObject(mytargetPageTitle)
result = result .. dump .. '\n\n'
result = result .. 'type of mw.title.new( \'pruv\', 1 ).id is ' .. tostring(type(mytargetPageTitle.id)) .. '\n\n'
result = result .. 'value is ' .. mytargetId
dump = ''
result = result .. ';currentPageTitle' .. '\n\n'
result = result .. 'type of mw.title.getCurrentTitle() is ' .. tostring(type(mycurrentPageTitle)) .. '\n\n'
dump = dump .. mw.dumpObject(mycurrentPageTitle)
result = result .. dump .. '\n\n'
result = result .. 'type of mw.title.getCurrentTitle().id is ' .. tostring(type(mymycurrentPageTitle.id)) .. '\n\n'
result = result .. 'value is ' .. mycurrentId
return result
end
return p