<?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%3ANonCombatPet</id>
	<title>Module:NonCombatPet - 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%3ANonCombatPet"/>
	<link rel="alternate" type="text/html" href="https://wiki.august.games/index.php?title=Module:NonCombatPet&amp;action=history"/>
	<updated>2026-04-26T02:54:46Z</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:NonCombatPet&amp;diff=356&amp;oldid=prev</id>
		<title>Bark: Created page with &quot;-- Module:NonCombatPet local p = {} -- Main function to generate the pet effects table function p.main(frame)     local args = frame.args     -- Start building the table HTML     local html = [[ &lt;table class=&quot;wikitable sortable align-left-2 jquery-tablesorter&quot; style=&quot;text-align:center;&quot;&gt;   &lt;tr&gt;     &lt;th colspan=&quot;2&quot; class=&quot;headerSort&quot; tabindex=&quot;0&quot; role=&quot;columnheader button&quot; title=&quot;Sort ascending&quot;&gt;Pet&lt;/th&gt;     &lt;th class=&quot;headerSort&quot; tabindex=&quot;0&quot; role=&quot;columnheader button&quot; t...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.august.games/index.php?title=Module:NonCombatPet&amp;diff=356&amp;oldid=prev"/>
		<updated>2025-02-27T03:05:58Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;-- Module:NonCombatPet local p = {} -- Main function to generate the pet effects table function p.main(frame)     local args = frame.args     -- Start building the table HTML     local html = [[ &amp;lt;table class=&amp;quot;wikitable sortable align-left-2 jquery-tablesorter&amp;quot; style=&amp;quot;text-align:center;&amp;quot;&amp;gt;   &amp;lt;tr&amp;gt;     &amp;lt;th colspan=&amp;quot;2&amp;quot; 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;Pet&amp;lt;/th&amp;gt;     &amp;lt;th class=&amp;quot;headerSort&amp;quot; tabindex=&amp;quot;0&amp;quot; role=&amp;quot;columnheader button&amp;quot; t...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- Module:NonCombatPet&lt;br /&gt;
local p = {}&lt;br /&gt;
-- Main function to generate the pet effects table&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
    local args = frame.args&lt;br /&gt;
    -- Start building the table HTML&lt;br /&gt;
    local html = [[&lt;br /&gt;
&amp;lt;table class=&amp;quot;wikitable sortable align-left-2 jquery-tablesorter&amp;quot; style=&amp;quot;text-align:center;&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;th colspan=&amp;quot;2&amp;quot; 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;Pet&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;Source&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;Effect&amp;lt;/th&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
]]&lt;br /&gt;
    -- Generate rows dynamically&lt;br /&gt;
    local index = 1&lt;br /&gt;
    while args[&amp;#039;pet&amp;#039; .. index] do&lt;br /&gt;
        -- Get parameters for this pet&lt;br /&gt;
        local pet = args[&amp;#039;pet&amp;#039; .. index] or &amp;#039;&amp;#039;&lt;br /&gt;
        local image = args[&amp;#039;image&amp;#039; .. index] or &amp;#039;&amp;#039;&lt;br /&gt;
        local source = args[&amp;#039;source&amp;#039; .. index] or &amp;#039;&amp;#039;&lt;br /&gt;
        local effect = args[&amp;#039;effect&amp;#039; .. index] or &amp;#039;&amp;#039;&lt;br /&gt;
        &lt;br /&gt;
        -- Skip empty entries&lt;br /&gt;
        if pet ~= &amp;#039;&amp;#039; then&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;
            &lt;br /&gt;
            -- Image cell&lt;br /&gt;
            html = html .. &amp;#039;    &amp;lt;td class=&amp;quot;plinkt-image&amp;quot;&amp;gt;&amp;#039;&lt;br /&gt;
            if image ~= &amp;#039;&amp;#039; then&lt;br /&gt;
                html = html .. &amp;#039;[[File:&amp;#039; .. image .. &amp;#039;|center|32px]]&amp;#039;&lt;br /&gt;
            end&lt;br /&gt;
            html = html .. &amp;#039;&amp;lt;/td&amp;gt;\n&amp;#039;&lt;br /&gt;
            &lt;br /&gt;
            -- Pet name cell&lt;br /&gt;
            html = html .. &amp;#039;    &amp;lt;td&amp;gt;&amp;#039; .. pet .. &amp;#039;&amp;lt;/td&amp;gt;\n&amp;#039;&lt;br /&gt;
            &lt;br /&gt;
            -- Source cell&lt;br /&gt;
            html = html .. &amp;#039;    &amp;lt;td&amp;gt;&amp;#039; .. source .. &amp;#039;&amp;lt;/td&amp;gt;\n&amp;#039;&lt;br /&gt;
            &lt;br /&gt;
            -- Effect cell&lt;br /&gt;
            html = html .. &amp;#039;    &amp;lt;td&amp;gt;&amp;#039; .. effect .. &amp;#039;&amp;lt;/td&amp;gt;\n&amp;#039;&lt;br /&gt;
            &lt;br /&gt;
            html = html .. &amp;#039;  &amp;lt;/tr&amp;gt;\n&amp;#039;&lt;br /&gt;
        end&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;
    return html&lt;br /&gt;
end&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;
return p&lt;/div&gt;</summary>
		<author><name>Bark</name></author>
	</entry>
</feed>