Module:GetFirstImage: 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.

30 July 2024

  • curprev 14:0914:09, 30 July 2024Heku talk contribsm 1,173 bytes −62 No edit summary
  • curprev 14:0214:02, 30 July 2024Heku talk contribsm 1,235 bytes +631 No edit summary
  • curprev 13:3113:31, 30 July 2024Heku talk contribs 604 bytes +604 Created page with "local p = {} function p.getFirstImage(frame) local pageName = frame.args[1] if not pageName then return '' end local page = mw.title.new(pageName) if not page then return '' end local content = page:getContent() if not content then return '' end -- Look for the first [[File: or [[Image: in the content local fileName = content:match("%[%[[Ff]ile:([^%]|]+)") or content:match("%[%[[Ii]mage:([^%]|]+)") if fileName then..."