<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://kingwarzcharts.com/index.php?action=history&amp;feed=atom&amp;title=Module%3ASongCertifications</id>
	<title>Module:SongCertifications - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://kingwarzcharts.com/index.php?action=history&amp;feed=atom&amp;title=Module%3ASongCertifications"/>
	<link rel="alternate" type="text/html" href="https://kingwarzcharts.com/index.php?title=Module:SongCertifications&amp;action=history"/>
	<updated>2026-07-21T16:36:21Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://kingwarzcharts.com/index.php?title=Module:SongCertifications&amp;diff=3225&amp;oldid=prev</id>
		<title>Kingwarz: Created page with &quot;local p = {}  function p.getCertification(frame)     local certInput = mw.text.trim(frame.args[&#039;certification&#039;] or &#039;&#039;)     local output = &#039;&#039;     local categories = {}      -- Check for &quot;Gold&quot; (case-insensitive)     if certInput:lower() == &#039;gold&#039; then         output = &#039;Gold ●&#039;         table.insert(categories, &#039;Category:Gold Songs&#039;)     -- Check if input is a number     elseif certInput:match(&#039;^%d+$&#039;) then         local num = tonumber(certInput)         if num &gt;=...&quot;</title>
		<link rel="alternate" type="text/html" href="https://kingwarzcharts.com/index.php?title=Module:SongCertifications&amp;diff=3225&amp;oldid=prev"/>
		<updated>2025-06-11T00:15:46Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;local p = {}  function p.getCertification(frame)     local certInput = mw.text.trim(frame.args[&amp;#039;certification&amp;#039;] or &amp;#039;&amp;#039;)     local output = &amp;#039;&amp;#039;     local categories = {}      -- Check for &amp;quot;Gold&amp;quot; (case-insensitive)     if certInput:lower() == &amp;#039;gold&amp;#039; then         output = &amp;#039;&lt;a href=&quot;/wiki/Gold&quot; title=&quot;Gold&quot;&gt;Gold&lt;/a&gt; ●&amp;#039;         table.insert(categories, &amp;#039;&lt;a href=&quot;/wiki/Category:Gold_Songs&quot; title=&quot;Category:Gold Songs&quot;&gt;Category:Gold Songs&lt;/a&gt;&amp;#039;)     -- Check if input is a number     elseif certInput:match(&amp;#039;^%d+$&amp;#039;) then         local num = tonumber(certInput)         if num &amp;gt;=...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local p = {}&lt;br /&gt;
&lt;br /&gt;
function p.getCertification(frame)&lt;br /&gt;
    local certInput = mw.text.trim(frame.args[&amp;#039;certification&amp;#039;] or &amp;#039;&amp;#039;)&lt;br /&gt;
    local output = &amp;#039;&amp;#039;&lt;br /&gt;
    local categories = {}&lt;br /&gt;
&lt;br /&gt;
    -- Check for &amp;quot;Gold&amp;quot; (case-insensitive)&lt;br /&gt;
    if certInput:lower() == &amp;#039;gold&amp;#039; then&lt;br /&gt;
        output = &amp;#039;[[Gold]] ●&amp;#039;&lt;br /&gt;
        table.insert(categories, &amp;#039;[[Category:Gold Songs]]&amp;#039;)&lt;br /&gt;
    -- Check if input is a number&lt;br /&gt;
    elseif certInput:match(&amp;#039;^%d+$&amp;#039;) then&lt;br /&gt;
        local num = tonumber(certInput)&lt;br /&gt;
        if num &amp;gt;= 1 and num &amp;lt;= 9 then&lt;br /&gt;
            output = num .. &amp;#039;x [[Platinum]] ▲&amp;#039;&lt;br /&gt;
            table.insert(categories, &amp;#039;[[Category:Platinum Songs]]&amp;#039;)&lt;br /&gt;
        elseif num &amp;gt;= 10 then&lt;br /&gt;
            output = num .. &amp;#039;x [[Diamond]] ⬥&amp;#039;&lt;br /&gt;
            table.insert(categories, &amp;#039;[[Category:Diamond Songs]]&amp;#039;)&lt;br /&gt;
        else&lt;br /&gt;
            -- Invalid number (e.g., 0 or negative)&lt;br /&gt;
            output = certInput&lt;br /&gt;
            table.insert(categories, &amp;#039;[[Category:Songs with Invalid Certifications]]&amp;#039;)&lt;br /&gt;
        end&lt;br /&gt;
    else&lt;br /&gt;
        -- Invalid input (not &amp;quot;Gold&amp;quot; or a number)&lt;br /&gt;
        output = certInput&lt;br /&gt;
        table.insert(categories, &amp;#039;[[Category:Songs with Invalid Certifications]]&amp;#039;)&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    return output .. table.concat(categories, &amp;#039;&amp;#039;)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Kingwarz</name></author>
	</entry>
</feed>