Difference between revisions of "Module:MonsterBox"

From Curse of Aros
Jump to: navigation, search
(Created page with "local export = {} function export.show(frame) return 'Hello, my ' .. frame.args[1] .. ' is ' .. frame.args[2] end return export")
 
Line 1: Line 1:
 
local export = {}
 
local export = {}
 +
 +
local pagename = mw.title.getCurrentTitle().fullText
 +
 
function export.show(frame)
 
function export.show(frame)
     return 'Hello, my ' .. frame.args[1] .. ' is ' .. frame.args[2]
+
     return 'Hello, my ' .. frame.args[1] .. ' is ' .. frame.args[2] .. ' on ' .. pagename
 
end
 
end
 +
 
return export
 
return export

Revision as of 12:10, 11 February 2019

Documentation for this module may be created at Module:MonsterBox/doc

local export = {}

local pagename = mw.title.getCurrentTitle().fullText

function export.show(frame)
    return 'Hello, my ' .. frame.args[1] .. ' is ' .. frame.args[2] .. ' on ' .. pagename
end

return export