<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://dunedb.com/index.php?action=history&amp;feed=atom&amp;title=Module%3ARandomPage</id>
	<title>Module:RandomPage - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://dunedb.com/index.php?action=history&amp;feed=atom&amp;title=Module%3ARandomPage"/>
	<link rel="alternate" type="text/html" href="https://dunedb.com/index.php?title=Module:RandomPage&amp;action=history"/>
	<updated>2026-05-23T21:40:39Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://dunedb.com/index.php?title=Module:RandomPage&amp;diff=552&amp;oldid=prev</id>
		<title>Operator: Created page with &quot;-- 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 &quot;Lore&quot;     local t   = frame.args.template or &quot;DuneCard&quot;      -- Query categorymembers     local pages = mw.site.stats.pagesInCategory(cat, &quot;pages&quot;)     if pages == 0 then return &quot;&quot; end     local rnd   = math.random(pages)     local title = mw.site.getCategory(cat):members()[rnd].title      -- Bui...&quot;</title>
		<link rel="alternate" type="text/html" href="https://dunedb.com/index.php?title=Module:RandomPage&amp;diff=552&amp;oldid=prev"/>
		<updated>2025-05-22T03:22:45Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;-- 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 &amp;quot;Lore&amp;quot;     local t   = frame.args.template or &amp;quot;DuneCard&amp;quot;      -- Query categorymembers     local pages = mw.site.stats.pagesInCategory(cat, &amp;quot;pages&amp;quot;)     if pages == 0 then return &amp;quot;&amp;quot; end     local rnd   = math.random(pages)     local title = mw.site.getCategory(cat):members()[rnd].title      -- Bui...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- Module:RandomPage&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
-- Returns a random page from a given category wrapped in a card template&lt;br /&gt;
function p.randomCard(frame)&lt;br /&gt;
    local cat = frame.args.category or &amp;quot;Lore&amp;quot;&lt;br /&gt;
    local t   = frame.args.template or &amp;quot;DuneCard&amp;quot;&lt;br /&gt;
&lt;br /&gt;
    -- Query categorymembers&lt;br /&gt;
    local pages = mw.site.stats.pagesInCategory(cat, &amp;quot;pages&amp;quot;)&lt;br /&gt;
    if pages == 0 then return &amp;quot;&amp;quot; end&lt;br /&gt;
    local rnd   = math.random(pages)&lt;br /&gt;
    local title = mw.site.getCategory(cat):members()[rnd].title&lt;br /&gt;
&lt;br /&gt;
    -- Build card&lt;br /&gt;
    return string.format(&lt;br /&gt;
        &amp;quot;{{%s|title=%s|text=%s|link=[[ %s ]] }}&amp;quot;,&lt;br /&gt;
        t,&lt;br /&gt;
        title.text,&lt;br /&gt;
        &amp;quot;Dive deeper into the lore.&amp;quot;,&lt;br /&gt;
        title.prefixedText&lt;br /&gt;
    )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Operator</name></author>
	</entry>
</feed>