Module:Tcw: Difference between revisions

From PT National Labs
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
Line 5: Line 5:
   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