<?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%3AGenericSortable</id>
	<title>Module:GenericSortable - 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%3AGenericSortable"/>
	<link rel="alternate" type="text/html" href="https://wiki.august.games/index.php?title=Module:GenericSortable&amp;action=history"/>
	<updated>2026-04-28T11:36:31Z</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:GenericSortable&amp;diff=899&amp;oldid=prev</id>
		<title>Bark at 03:36, 27 February 2025</title>
		<link rel="alternate" type="text/html" href="https://wiki.august.games/index.php?title=Module:GenericSortable&amp;diff=899&amp;oldid=prev"/>
		<updated>2025-02-27T03:36:12Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 03:36, 27 February 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l11&quot;&gt;Line 11:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 11:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     -- Get column count and headings&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     -- Get column count and headings&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     local colCount = tonumber(args[&#039;columns&#039;] or &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;2&lt;/del&gt;)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     local colCount = tonumber(args[&#039;columns&#039;] or &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;3&lt;/ins&gt;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     local headings = {}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     local headings = {}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     for i = 1, colCount do&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     for i = 1, colCount do&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Bark</name></author>
	</entry>
	<entry>
		<id>https://wiki.august.games/index.php?title=Module:GenericSortable&amp;diff=30&amp;oldid=prev</id>
		<title>Bark: Created page with &quot;-- Module:GenericTable local p = {}  -- Main function to generate a customizable table function p.main(frame)     local args = frame.args          -- Get table settings     local tableClass = args[&#039;tableClass&#039;] or &quot;wikitable sortable&quot;     local tableStyle = args[&#039;tableStyle&#039;] or &quot;text-align:center;&quot;          -- Get column count and headings     local colCount = tonumber(args[&#039;columns&#039;] or 2)     local headings = {}     for i = 1, colCount do         headings[i] = args[&#039;h...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.august.games/index.php?title=Module:GenericSortable&amp;diff=30&amp;oldid=prev"/>
		<updated>2025-02-27T02:38:13Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;-- Module:GenericTable local p = {}  -- Main function to generate a customizable table function p.main(frame)     local args = frame.args          -- Get table settings     local tableClass = args[&amp;#039;tableClass&amp;#039;] or &amp;quot;wikitable sortable&amp;quot;     local tableStyle = args[&amp;#039;tableStyle&amp;#039;] or &amp;quot;text-align:center;&amp;quot;          -- Get column count and headings     local colCount = tonumber(args[&amp;#039;columns&amp;#039;] or 2)     local headings = {}     for i = 1, colCount do         headings[i] = args[&amp;#039;h...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- Module:GenericTable&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
-- Main function to generate a customizable table&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
    local args = frame.args&lt;br /&gt;
    &lt;br /&gt;
    -- Get table settings&lt;br /&gt;
    local tableClass = args[&amp;#039;tableClass&amp;#039;] or &amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
    local tableStyle = args[&amp;#039;tableStyle&amp;#039;] or &amp;quot;text-align:center;&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
    -- Get column count and headings&lt;br /&gt;
    local colCount = tonumber(args[&amp;#039;columns&amp;#039;] or 2)&lt;br /&gt;
    local headings = {}&lt;br /&gt;
    for i = 1, colCount do&lt;br /&gt;
        headings[i] = args[&amp;#039;heading&amp;#039; .. i] or &amp;#039;Heading &amp;#039; .. i&lt;br /&gt;
    end&lt;br /&gt;
    &lt;br /&gt;
    -- Start building the table HTML&lt;br /&gt;
    local html = &amp;#039;&amp;lt;table class=&amp;quot;&amp;#039; .. tableClass .. &amp;#039;&amp;quot; style=&amp;quot;&amp;#039; .. tableStyle .. &amp;#039;&amp;quot;&amp;gt;\n&amp;#039;&lt;br /&gt;
    &lt;br /&gt;
    -- Add the header row&lt;br /&gt;
    html = html .. &amp;#039;  &amp;lt;tr&amp;gt;\n&amp;#039;&lt;br /&gt;
    for i = 1, colCount do&lt;br /&gt;
        local colspan = args[&amp;#039;heading&amp;#039; .. i .. &amp;#039;colspan&amp;#039;] or 1&lt;br /&gt;
        html = html .. &amp;#039;    &amp;lt;th&amp;#039;&lt;br /&gt;
        if tonumber(colspan) &amp;gt; 1 then&lt;br /&gt;
            html = html .. &amp;#039; colspan=&amp;quot;&amp;#039; .. colspan .. &amp;#039;&amp;quot;&amp;#039;&lt;br /&gt;
        end&lt;br /&gt;
        html = html .. &amp;#039; 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;&amp;#039; &lt;br /&gt;
            .. headings[i] .. &amp;#039;&amp;lt;/th&amp;gt;\n&amp;#039;&lt;br /&gt;
    end&lt;br /&gt;
    html = html .. &amp;#039;  &amp;lt;/tr&amp;gt;\n&amp;#039;&lt;br /&gt;
    &lt;br /&gt;
    -- Generate rows dynamically&lt;br /&gt;
    local rowIndex = 1&lt;br /&gt;
    while args[&amp;#039;row&amp;#039; .. rowIndex .. &amp;#039;cell1&amp;#039;] or args[&amp;#039;row&amp;#039; .. rowIndex] do&lt;br /&gt;
        html = html .. &amp;#039;  &amp;lt;tr&amp;gt;\n&amp;#039;&lt;br /&gt;
        &lt;br /&gt;
        -- Add cells to this row&lt;br /&gt;
        for i = 1, colCount do&lt;br /&gt;
            local cellContent = args[&amp;#039;row&amp;#039; .. rowIndex .. &amp;#039;cell&amp;#039; .. i] or &amp;#039;&amp;#039;&lt;br /&gt;
            local cellClass = args[&amp;#039;row&amp;#039; .. rowIndex .. &amp;#039;cell&amp;#039; .. i .. &amp;#039;class&amp;#039;] or &amp;#039;&amp;#039;&lt;br /&gt;
            local cellStyle = args[&amp;#039;row&amp;#039; .. rowIndex .. &amp;#039;cell&amp;#039; .. i .. &amp;#039;style&amp;#039;] or &amp;#039;&amp;#039;&lt;br /&gt;
            &lt;br /&gt;
            html = html .. &amp;#039;    &amp;lt;td&amp;#039;&lt;br /&gt;
            if cellClass ~= &amp;#039;&amp;#039; then&lt;br /&gt;
                html = html .. &amp;#039; class=&amp;quot;&amp;#039; .. cellClass .. &amp;#039;&amp;quot;&amp;#039;&lt;br /&gt;
            end&lt;br /&gt;
            if cellStyle ~= &amp;#039;&amp;#039; then&lt;br /&gt;
                html = html .. &amp;#039; style=&amp;quot;&amp;#039; .. cellStyle .. &amp;#039;&amp;quot;&amp;#039;&lt;br /&gt;
            end&lt;br /&gt;
            html = html .. &amp;#039;&amp;gt;&amp;#039; .. cellContent .. &amp;#039;&amp;lt;/td&amp;gt;\n&amp;#039;&lt;br /&gt;
        end&lt;br /&gt;
        &lt;br /&gt;
        html = html .. &amp;#039;  &amp;lt;/tr&amp;gt;\n&amp;#039;&lt;br /&gt;
        rowIndex = rowIndex + 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;
    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>