<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.august.games/index.php?action=history&amp;feed=atom&amp;title=Module%3AItemDrops</id>
	<title>Module:ItemDrops - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.august.games/index.php?action=history&amp;feed=atom&amp;title=Module%3AItemDrops"/>
	<link rel="alternate" type="text/html" href="https://wiki.august.games/index.php?title=Module:ItemDrops&amp;action=history"/>
	<updated>2026-05-05T18:10:29Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://wiki.august.games/index.php?title=Module:ItemDrops&amp;diff=25&amp;oldid=prev</id>
		<title>Bark: Created page with &quot;-- Module:ItemDrops local p = {}  local rarityStyles = {     Always = { &#039;table-bg-blue&#039;, 1 },     Common = { &#039;table-bg-green&#039;, 16 },     Uncommon = { &#039;table-bg-yellow&#039;, 64 },     Rare = { &#039;table-bg-orange&#039;, 256 },     [&#039;Very rare&#039;] = { &#039;table-bg-red&#039;, 1024 }, }  -- Main function to generate the item item table function p.main(frame)     local args = frame.args      -- Start building the table HTML     local html = [[ &lt;table class=&quot;wikitable sortable filterable item-drops...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.august.games/index.php?title=Module:ItemDrops&amp;diff=25&amp;oldid=prev"/>
		<updated>2025-02-27T02:36:31Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;-- Module:ItemDrops local p = {}  local rarityStyles = {     Always = { &amp;#039;table-bg-blue&amp;#039;, 1 },     Common = { &amp;#039;table-bg-green&amp;#039;, 16 },     Uncommon = { &amp;#039;table-bg-yellow&amp;#039;, 64 },     Rare = { &amp;#039;table-bg-orange&amp;#039;, 256 },     [&amp;#039;Very rare&amp;#039;] = { &amp;#039;table-bg-red&amp;#039;, 1024 }, }  -- Main function to generate the item item table function p.main(frame)     local args = frame.args      -- Start building the table HTML     local html = [[ &amp;lt;table class=&amp;quot;wikitable sortable filterable item-drops...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- Module:ItemDrops&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
local rarityStyles = {&lt;br /&gt;
    Always = { &amp;#039;table-bg-blue&amp;#039;, 1 },&lt;br /&gt;
    Common = { &amp;#039;table-bg-green&amp;#039;, 16 },&lt;br /&gt;
    Uncommon = { &amp;#039;table-bg-yellow&amp;#039;, 64 },&lt;br /&gt;
    Rare = { &amp;#039;table-bg-orange&amp;#039;, 256 },&lt;br /&gt;
    [&amp;#039;Very rare&amp;#039;] = { &amp;#039;table-bg-red&amp;#039;, 1024 },&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
-- Main function to generate the item item table&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
    local args = frame.args&lt;br /&gt;
&lt;br /&gt;
    -- Start building the table HTML&lt;br /&gt;
    local html = [[&lt;br /&gt;
&amp;lt;table class=&amp;quot;wikitable sortable filterable item-drops align-center-2 align-center-3 align-center-4 autosort=3,a jquery-tablesorter rsw-dropsline-hidealch&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;th class=&amp;quot;drop-disp-btn btn-first headerSort&amp;quot; tabindex=&amp;quot;0&amp;quot; role=&amp;quot;columnheader button&amp;quot; title=&amp;quot;Sort ascending&amp;quot;&amp;gt;Item&amp;lt;/th&amp;gt;&lt;br /&gt;
    &amp;lt;th class=&amp;quot;headerSort&amp;quot; tabindex=&amp;quot;0&amp;quot; role=&amp;quot;columnheader button&amp;quot; title=&amp;quot;Sort ascending&amp;quot;&amp;gt;Quantity&amp;lt;/th&amp;gt;&lt;br /&gt;
    &amp;lt;th class=&amp;quot;drops-rarity-header headerSort headerSortUp&amp;quot; tabindex=&amp;quot;0&amp;quot; role=&amp;quot;columnheader button&amp;quot; title=&amp;quot;Sort ascending&amp;quot;&amp;gt;Rarity&amp;lt;/th&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
    -- Generate rows dynamically&lt;br /&gt;
    local index = 1&lt;br /&gt;
    while args[&amp;#039;item&amp;#039; .. index] do&lt;br /&gt;
        local item = args[&amp;#039;item&amp;#039; .. index]&lt;br /&gt;
        local rarity = args[&amp;#039;rarity&amp;#039; .. index] or &amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
        -- Check for item-specific quantity first, then fall back to global quantity&lt;br /&gt;
        local quantity = args[&amp;#039;item&amp;#039; .. index .. &amp;#039;Quant&amp;#039;] or args[&amp;#039;itemQuant&amp;#039;] or &amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
        local rarityClass = &amp;#039;&amp;#039;&lt;br /&gt;
        if rarityStyles[rarity] then&lt;br /&gt;
            rarityClass = rarityStyles[rarity][1]&lt;br /&gt;
            raritySort = rarityStyles[rarity][2]&lt;br /&gt;
        end&lt;br /&gt;
&lt;br /&gt;
        -- Build the row HTML&lt;br /&gt;
        html = html .. &amp;#039;  &amp;lt;tr&amp;gt;\n&amp;#039;&lt;br /&gt;
        html = html .. &amp;#039;    &amp;lt;td&amp;gt;[[&amp;#039; .. item .. &amp;#039;]]&amp;lt;/td&amp;gt;\n&amp;#039;&lt;br /&gt;
&lt;br /&gt;
        -- Quantity cell&lt;br /&gt;
        html = html .. &amp;#039;    &amp;lt;td data-sort-value=&amp;quot;&amp;#039; .. quantity .. &amp;#039;&amp;quot;&amp;gt;&amp;#039; .. quantity .. &amp;#039;&amp;lt;/td&amp;gt;\n&amp;#039;&lt;br /&gt;
&lt;br /&gt;
        -- Rarity cell&lt;br /&gt;
        html = html .. &amp;#039;    &amp;lt;td data-sort-value=&amp;quot;&amp;#039; .. raritySort ..  &amp;#039;&amp;quot; class=&amp;quot;&amp;#039; .. rarityClass.. &amp;#039;&amp;quot;&amp;gt;&amp;#039; .. rarity ..  &amp;#039;&amp;lt;/td&amp;gt;\n&amp;#039;&lt;br /&gt;
        html = html .. &amp;#039;  &amp;lt;/tr&amp;gt;\n&amp;#039;&lt;br /&gt;
&lt;br /&gt;
        -- Move to next index&lt;br /&gt;
        index = index + 1&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    -- Close the table&lt;br /&gt;
    html = html .. &amp;#039;&amp;lt;/table&amp;gt;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
    return html&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Function to render HTML from template-style parameters&lt;br /&gt;
function p.render(frame)&lt;br /&gt;
    -- Get all arguments from parent template&lt;br /&gt;
    local parentArgs = frame:getParent().args&lt;br /&gt;
    return p.main({args = parentArgs})&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Bark</name></author>
	</entry>
</feed>