Jump to content

Module:Test: Revision history

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.

13 March 2025

  • curprev 02:2002:20, 13 March 2025 Thehighwayman talk contribs m 454 bytes 0 Protected "Module:Test" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))
  • curprev 02:1902:19, 13 March 2025 Thehighwayman talk contribs 454 bytes +454 Created page with "local p = {} function p.test( frame ) -- Get contents of page local pageContent = tostring(mw.title.getCurrentTitle():getContent()) -- Split contents of page in lines local pageLines = mw.text.split(pageContent,'\n',true) local render = '' for i=1,#pageLines do -- Get every line starting with '==', that is, a header if mw.text.split(pageLines[i], '%s')[1] == '==' then render = render .. pageLines[i] end end return render end return p"