Module:Test lua: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

20 August 2024

  • curprev 09:3809:38, 20 August 2024Admin talk contribs 405 bytes +2 No edit summary
  • curprev 09:3809:38, 20 August 2024Admin talk contribs 403 bytes +403 Created page with "local p = {} function p.fn(frame) local origArgs = (type(frame.getParent) == "function") and frame:getParent().args or frame local success, json = pcall(mw.text.jsonDecode, origArgs[0]) local ret = mw.visualdata.query( "Test class", "class::+" ) return mw.dumpObject(ret) -- return '<pre>' .. mw.dumpObject(json) .. '</pre>' end -- =p.fn({"add\ndfdd","b","c","text"}) return p"