Module:Tcw: Difference between revisions

From PT National Labs
Jump to navigation Jump to search
testing the tcw module and template
 
mNo edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
local p = {}  
local p = {}  


function p.hello( frame, link )
function p.hello( frame )
    return "Hello, world!" .. link
  local test = mw.html.create("a")
  test:attr("href", "https://wiki.torn.com/wiki/".. frame.args[1])
  test:text("" .. frame.args[1])
  return test:done()
end
end


return p
return p

Latest revision as of 16:05, 1 July 2025

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

local p = {} 

function p.hello( frame )
  local test = mw.html.create("a")
  test:attr("href", "https://wiki.torn.com/wiki/".. frame.args[1])
  test:text("" .. frame.args[1])
  return test:done()
end

return p