Actions

Module

RandomPage: 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.

21 May 2025

  • curprev 23:2223:22, 21 May 2025 Operator talk contribs 674 bytes +674 Created page with "-- Module:RandomPage local p = {} -- Returns a random page from a given category wrapped in a card template function p.randomCard(frame) local cat = frame.args.category or "Lore" local t = frame.args.template or "DuneCard" -- Query categorymembers local pages = mw.site.stats.pagesInCategory(cat, "pages") if pages == 0 then return "" end local rnd = math.random(pages) local title = mw.site.getCategory(cat):members()[rnd].title -- Bui..."