Module:Tile markers button
Jump to navigation
Jump to search
Documentation for this module may be created at Module:Tile markers button/doc
local p = {};
function p.main(frame)
local args = frame:getParent().args
local pageName = args[1]
return p._main(pageName)
end
function p._main(pageName)
local jsonContent = mw.loadJsonData(pageName)
local resultsDiv = mw.html.create( 'div' )
resultsDiv:css({display = 'none'})
resultsDiv:addClass('tilemarker-div')
resultsDiv:node(mw.text.jsonEncode(jsonContent))
return resultsDiv;
end
return p;