Module:Tcw: Difference between revisions

From PT National Labs
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
function p.hello( frame )
function p.hello( frame )
   local test = mw.html.create("a")
   local test = mw.html.create("a")
   test.attr("href", "https://wiki.torn.com/wiki/".. frame.args[1])
   test:attr("href", "https://wiki.torn.com/wiki/".. frame.args[1])
   test.text("" .. frame.args[1])
   test:text("" .. frame.args[1])
   return test
   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