<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://nssportwiki.com/index.php?action=history&amp;feed=atom&amp;title=Module%3ASports_table%2FWDL</id>
	<title>Module:Sports table/WDL - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://nssportwiki.com/index.php?action=history&amp;feed=atom&amp;title=Module%3ASports_table%2FWDL"/>
	<link rel="alternate" type="text/html" href="https://nssportwiki.com/index.php?title=Module:Sports_table/WDL&amp;action=history"/>
	<updated>2026-05-16T05:29:05Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.1</generator>
	<entry>
		<id>https://nssportwiki.com/index.php?title=Module:Sports_table/WDL&amp;diff=71859&amp;oldid=prev</id>
		<title>Osarius: 1 revision imported: bulk import from rabastor wiki (Osarius) - part 1</title>
		<link rel="alternate" type="text/html" href="https://nssportwiki.com/index.php?title=Module:Sports_table/WDL&amp;diff=71859&amp;oldid=prev"/>
		<updated>2026-01-20T15:14:02Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported: bulk import from rabastor wiki (Osarius) - part 1&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 15:14, 20 January 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en-GB&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Osarius</name></author>
	</entry>
	<entry>
		<id>https://nssportwiki.com/index.php?title=Module:Sports_table/WDL&amp;diff=57977&amp;oldid=prev</id>
		<title>&gt;TheKitKatProject: 1 revision imported from :wikipedia:Module:Sports_table/WDL</title>
		<link rel="alternate" type="text/html" href="https://nssportwiki.com/index.php?title=Module:Sports_table/WDL&amp;diff=57977&amp;oldid=prev"/>
		<updated>2022-01-05T22:21:08Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported from &lt;a href=&quot;https://en.wikipedia.org/wiki/Module:Sports_table/WDL&quot; class=&quot;extiw&quot; title=&quot;wikipedia:Module:Sports table/WDL&quot;&gt;wikipedia:Module:Sports_table/WDL&lt;/a&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:21, 5 January 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en-GB&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>&gt;TheKitKatProject</name></author>
	</entry>
	<entry>
		<id>https://nssportwiki.com/index.php?title=Module:Sports_table/WDL&amp;diff=57976&amp;oldid=prev</id>
		<title>wikipedia&gt;Nthep: amend lines 301/2 to allow win_perc to cope with points deductions</title>
		<link rel="alternate" type="text/html" href="https://nssportwiki.com/index.php?title=Module:Sports_table/WDL&amp;diff=57976&amp;oldid=prev"/>
		<updated>2021-07-21T16:00:49Z</updated>

		<summary type="html">&lt;p&gt;amend lines 301/2 to allow win_perc to cope with points deductions&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-GB&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 16:00, 21 July 2021&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-l274&quot;&gt;Line 274:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 274:&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 hth_local = yesno(Args[&amp;#039;show_hth&amp;#039;] or &amp;#039;yes&amp;#039;) and Args[&amp;#039;hth_&amp;#039;..team_code_ii] or nil&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 hth_local = yesno(Args[&amp;#039;show_hth&amp;#039;] or &amp;#039;yes&amp;#039;) and Args[&amp;#039;hth_&amp;#039;..team_code_ii] or nil&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 ranking_style = string.lower(Args[&amp;#039;ranking_style&amp;#039;] or &amp;#039;pts&amp;#039;)&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 ranking_style = string.lower(Args[&amp;#039;ranking_style&amp;#039;] or &amp;#039;pts&amp;#039;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;	local pct_style = string.lower(Args[&#039;pct_style&#039;] or &#039;ratio&#039;)&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;br/&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;br/&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;	-- Then calculate some values&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;	-- Then calculate some values&lt;/div&gt;&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-l289&quot;&gt;Line 289:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 290:&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;	end&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;	end&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;	&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; 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;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;	--Some sports use draw as well&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 win_perc = &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;&lt;/ins&gt;&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 win_perc = &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;mm._precision_format((2*wins + draws) / (2*matches), 3)&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 ppg = &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;&lt;/ins&gt;&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 ppg = &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;mm._precision_format&lt;/del&gt;(&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;points / &lt;/del&gt;matches&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;	if tonumber&lt;/ins&gt;(matches) &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;== nil or &lt;/ins&gt;matches == 0 then  &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;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;	if &lt;/del&gt;matches == 0 then  &lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&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;		-- Escape for zero matches&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;		-- Escape for zero matches&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;		win_perc = &amp;#039;&amp;amp;mdash;&amp;#039;&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;		win_perc = &amp;#039;&amp;amp;mdash;&amp;#039;&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;		ppg = &amp;#039;&amp;amp;mdash;&amp;#039;&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;		ppg = &amp;#039;&amp;amp;mdash;&amp;#039;&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;	&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;elseif &lt;/del&gt;losses &amp;gt; 0 or draws &amp;gt; 0 then&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;	&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;else&lt;/ins&gt;&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;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;		&lt;/del&gt;-- Drop the leading zero (from the string)&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;		--Some sports use draw as well&lt;/ins&gt;&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;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;		&lt;/del&gt;win_perc = string.sub(win_perc,2,string.len(win_perc))&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;		win_perc = (pct_style == &#039;ratio&#039;) and&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;			mm._precision_format((2*wins + draws  + s_pts) / (2*matches), 3) or&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;			mm._precision_format(100*(2*wins + draws  + s_pts) / (2*matches), 2)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;			-- Allow win_perc to be altered due to point deductions/additions&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;		ppg = mm._precision_format(points / matches, 2)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;		if (&lt;/ins&gt;losses &amp;gt; 0 or draws &amp;gt; 0&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;) and pct_style == &#039;ratio&#039; &lt;/ins&gt;then&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;			&lt;/ins&gt;-- Drop the leading zero (from the string)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;			&lt;/ins&gt;win_perc = string.sub(win_perc,2,string.len(win_perc))&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;		end&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;	end&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;	end&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;	if ranking_style==&amp;#039;wperc&amp;#039; or ranking_style==&amp;#039;win percentage&amp;#039; or ranking_style==&amp;#039;wpct&amp;#039; then&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;	if ranking_style==&amp;#039;wperc&amp;#039; or ranking_style==&amp;#039;win percentage&amp;#039; or ranking_style==&amp;#039;wpct&amp;#039; then&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>wikipedia&gt;Nthep</name></author>
	</entry>
	<entry>
		<id>https://nssportwiki.com/index.php?title=Module:Sports_table/WDL&amp;diff=57975&amp;oldid=prev</id>
		<title>&gt;TheKitKatProject: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://nssportwiki.com/index.php?title=Module:Sports_table/WDL&amp;diff=57975&amp;oldid=prev"/>
		<updated>2020-09-21T19:09:17Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:09, 21 September 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en-GB&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>&gt;TheKitKatProject</name></author>
	</entry>
	<entry>
		<id>https://nssportwiki.com/index.php?title=Module:Sports_table/WDL&amp;diff=57974&amp;oldid=prev</id>
		<title>wiki&gt;Frietjes: new optional feature for New Caledonia national football team 1980–99 results</title>
		<link rel="alternate" type="text/html" href="https://nssportwiki.com/index.php?title=Module:Sports_table/WDL&amp;diff=57974&amp;oldid=prev"/>
		<updated>2020-09-07T15:07:48Z</updated>

		<summary type="html">&lt;p&gt;new optional feature for &lt;a href=&quot;/index.php?title=New_Caledonia_national_football_team_1980%E2%80%9399_results&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;New Caledonia national football team 1980–99 results (page does not exist)&quot;&gt;New Caledonia national football team 1980–99 results&lt;/a&gt;&lt;/p&gt;
&lt;a href=&quot;https://nssportwiki.com/index.php?title=Module:Sports_table/WDL&amp;amp;diff=57974&amp;amp;oldid=71858&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>wiki&gt;Frietjes</name></author>
	</entry>
	<entry>
		<id>https://nssportwiki.com/index.php?title=Module:Sports_table/WDL&amp;diff=71858&amp;oldid=prev</id>
		<title>Admin: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://nssportwiki.com/index.php?title=Module:Sports_table/WDL&amp;diff=71858&amp;oldid=prev"/>
		<updated>2015-07-02T09:27:39Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- Style for football tables&lt;br /&gt;
local pp = {}&lt;br /&gt;
&lt;br /&gt;
function pp.header(t,Args,p_sub,pos_label,group_col,VTE_text,full_table,results_header_txt)&lt;br /&gt;
	-- Load relevant modules&lt;br /&gt;
	local yesno = require(&amp;#039;Module:Yesno&amp;#039;)&lt;br /&gt;
	&lt;br /&gt;
	-- Create table header&lt;br /&gt;
	-- Pre stuff&lt;br /&gt;
	local team_width = Args[&amp;#039;teamwidth&amp;#039;] or &amp;#039;190&amp;#039;&lt;br /&gt;
	local sort_text = &amp;#039;&amp;#039;&lt;br /&gt;
	local sort_table_val = Args[&amp;#039;sortable_table&amp;#039;] 	or &amp;#039;no&amp;#039;&lt;br /&gt;
	if yesno(sort_table_val) then sort_text = &amp;#039;sortable&amp;#039; end&lt;br /&gt;
	table.insert(t,&amp;#039;{|class=&amp;quot;wikitable &amp;#039;..sort_text..&amp;#039;&amp;quot; style=&amp;quot;text-align:center;&amp;quot;\n&amp;#039;)            			-- Open table&lt;br /&gt;
	&lt;br /&gt;
	-- Custom header options&lt;br /&gt;
	local draw_head_text = Args[&amp;#039;draw_header&amp;#039;] or &amp;#039;&amp;lt;abbr title=&amp;quot;Drawn&amp;quot;&amp;gt;D&amp;lt;/abbr&amp;gt;&amp;#039;&lt;br /&gt;
	-- Use points instead of goals for/against&lt;br /&gt;
	local for_against_style = Args[&amp;#039;for_against_style&amp;#039;] 	or &amp;#039;goals&amp;#039;&lt;br /&gt;
	local fa_letter, fa_word_sing, fa_word_plur&lt;br /&gt;
	-- First convert to lower case if it is a string&lt;br /&gt;
	for_against_style = string.lower(for_against_style)&lt;br /&gt;
	if for_against_style==&amp;#039;g&amp;#039; or for_against_style==&amp;#039;goal&amp;#039; or for_against_style==&amp;#039;goals&amp;#039; then&lt;br /&gt;
		fa_letter = &amp;#039;G&amp;#039;&lt;br /&gt;
		fa_word_sing = &amp;#039;Goal&amp;#039;&lt;br /&gt;
		fa_word_plur = &amp;#039;Goals&amp;#039;&lt;br /&gt;
	elseif for_against_style==&amp;#039;p&amp;#039; or for_against_style==&amp;#039;point&amp;#039; or for_against_style==&amp;#039;points&amp;#039; then&lt;br /&gt;
		fa_letter = &amp;#039;P&amp;#039;&lt;br /&gt;
		fa_word_sing = &amp;#039;Point&amp;#039;&lt;br /&gt;
		fa_word_plur = &amp;#039;Points&amp;#039;&lt;br /&gt;
	else&lt;br /&gt;
		fa_letter = &amp;#039;G&amp;#039;&lt;br /&gt;
		fa_word_sing = &amp;#039;Goal&amp;#039;&lt;br /&gt;
		fa_word_plur = &amp;#039;Goals&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
	-- Whether to use goal ratio (goal average) instead&lt;br /&gt;
	local use_ratio_val = Args[&amp;#039;use_goal_ratio&amp;#039;] 	or &amp;#039;no&amp;#039;&lt;br /&gt;
	local do_ratio = false&lt;br /&gt;
	-- True if exist, false otherwise&lt;br /&gt;
	if yesno(use_ratio_val) then do_ratio = true end&lt;br /&gt;
	&lt;br /&gt;
	-- Initialize&lt;br /&gt;
	local tt = {}&lt;br /&gt;
	tt.count = 0 		-- Up by one after every call&lt;br /&gt;
	tt.tab_text = t		-- Actual text&lt;br /&gt;
	-- Actual headers&lt;br /&gt;
	tt = p_sub.colhead(tt,28,pos_label)										-- Position col&lt;br /&gt;
	-- Add group header&lt;br /&gt;
	if full_table and group_col then&lt;br /&gt;
		tt = p_sub.colhead(tt,28,&amp;#039;&amp;lt;abbr title=&amp;quot;Group&amp;quot;&amp;gt;Grp&amp;lt;/abbr&amp;gt;&amp;#039;)			-- Group col&lt;br /&gt;
	end&lt;br /&gt;
	tt = p_sub.colhead(tt,team_width,&amp;#039;Team&amp;#039;..VTE_text)						-- Team col&lt;br /&gt;
	tt = p_sub.colhead(tt,28,&amp;#039;&amp;lt;abbr title=&amp;quot;Played&amp;quot;&amp;gt;Pld&amp;lt;/abbr&amp;gt;&amp;#039;)				-- Matches played col&lt;br /&gt;
	if full_table then&lt;br /&gt;
		tt = p_sub.colhead(tt,28,&amp;#039;&amp;lt;abbr title=&amp;quot;Won&amp;quot;&amp;gt;W&amp;lt;/abbr&amp;gt;&amp;#039;)				-- Win col&lt;br /&gt;
		tt = p_sub.colhead(tt,28,draw_head_text)							-- Draw col&lt;br /&gt;
		tt = p_sub.colhead(tt,28,&amp;#039;&amp;lt;abbr title=&amp;quot;Lost&amp;quot;&amp;gt;L&amp;lt;/abbr&amp;gt;&amp;#039;)				-- Loss col&lt;br /&gt;
		tt = p_sub.colhead(tt,28,&amp;#039;&amp;lt;abbr title=&amp;quot;&amp;#039;..fa_word_plur..&amp;#039; for&amp;quot;&amp;gt;&amp;#039;..fa_letter..&amp;#039;F&amp;lt;/abbr&amp;gt;&amp;#039;)		-- For col&lt;br /&gt;
		tt = p_sub.colhead(tt,28,&amp;#039;&amp;lt;abbr title=&amp;quot;&amp;#039;..fa_word_plur..&amp;#039; against&amp;quot;&amp;gt;&amp;#039;..fa_letter..&amp;#039;A&amp;lt;/abbr&amp;gt;&amp;#039;)	-- Against col&lt;br /&gt;
		if not do_ratio then&lt;br /&gt;
			tt = p_sub.colhead(tt,28,&amp;#039;&amp;lt;abbr title=&amp;quot;&amp;#039;..fa_word_sing..&amp;#039; difference&amp;quot;&amp;gt;&amp;#039;..fa_letter..&amp;#039;D&amp;lt;/abbr&amp;gt;&amp;#039;)	-- Difference col&lt;br /&gt;
		else&lt;br /&gt;
			tt = p_sub.colhead(tt,28,&amp;#039;&amp;lt;abbr title=&amp;quot;&amp;#039;..fa_word_sing..&amp;#039; ratio&amp;quot;&amp;gt;&amp;#039;..fa_letter..&amp;#039;R&amp;lt;/abbr&amp;gt;&amp;#039;)	-- Ratio col&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	tt = p_sub.colhead(tt,28,&amp;#039;&amp;lt;abbr title=&amp;quot;Points&amp;quot;&amp;gt;Pts&amp;lt;/abbr&amp;gt;&amp;#039;)				-- Points col&lt;br /&gt;
	if full_table then&lt;br /&gt;
		tt.count = tt.count+1&lt;br /&gt;
		table.insert(tt.tab_text,results_header_txt)&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return tt&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function pp.row(frame,t,Args,p_sub,notes_exist,hth_id_list,full_table,rand_val,team_list,team_code_ii,ii_start,ii_end,ii_fw,bg_col,N_teams,ii,ii_show)&lt;br /&gt;
	-- Build the inner parts of individual rows&lt;br /&gt;
	&lt;br /&gt;
	-- Sub-module usage&lt;br /&gt;
	local mm = require(&amp;#039;Module:Math&amp;#039;)&lt;br /&gt;
	local yesno = require(&amp;#039;Module:Yesno&amp;#039;)&lt;br /&gt;
	&lt;br /&gt;
	-- Get custom/default options for in table&lt;br /&gt;
	local win_points = tonumber(Args[&amp;#039;winpoints&amp;#039;])				or 3&lt;br /&gt;
	local draw_points = tonumber(Args[&amp;#039;drawpoints&amp;#039;])			or 1&lt;br /&gt;
	local loss_points = tonumber(Args[&amp;#039;losspoints&amp;#039;])			or 0&lt;br /&gt;
	&lt;br /&gt;
	-- Get some input&lt;br /&gt;
	local wins = tonumber(Args[&amp;#039;win_&amp;#039;..team_code_ii])			or 0&lt;br /&gt;
	local draws = tonumber(Args[&amp;#039;draw_&amp;#039;..team_code_ii]) 		or 0&lt;br /&gt;
	local losses = tonumber(Args[&amp;#039;loss_&amp;#039;..team_code_ii])		or 0&lt;br /&gt;
	local gfor = tonumber(Args[&amp;#039;gf_&amp;#039;..team_code_ii]) or	tonumber(Args[&amp;#039;pf_&amp;#039;..team_code_ii]) or 0&lt;br /&gt;
	local gaig = tonumber(Args[&amp;#039;ga_&amp;#039;..team_code_ii]) or	tonumber(Args[&amp;#039;pa_&amp;#039;..team_code_ii]) or 0&lt;br /&gt;
	local s_pts = tonumber(Args[&amp;#039;adjust_points_&amp;#039;..team_code_ii]) or tonumber(Args[&amp;#039;startpoints_&amp;#039;..team_code_ii]) or 0&lt;br /&gt;
	local hth_local = Args[&amp;#039;hth_&amp;#039;..team_code_ii]				or nil&lt;br /&gt;
	-- Then calculate some values&lt;br /&gt;
	local matches = wins + draws + losses&lt;br /&gt;
	local points = win_points*wins + draw_points*draws + loss_points*losses + s_pts&lt;br /&gt;
	&lt;br /&gt;
	-- Comparison of for against&lt;br /&gt;
	local gcomp&lt;br /&gt;
	-- Whether to use goal ratio (goal average) instead&lt;br /&gt;
	local use_ratio_val = Args[&amp;#039;use_goal_ratio&amp;#039;] 	or &amp;#039;no&amp;#039;&lt;br /&gt;
	local skip_sign&lt;br /&gt;
	if yesno(use_ratio_val) then&lt;br /&gt;
		-- Now it is the goal ratio/goal average&lt;br /&gt;
		if gaig == 0 then&lt;br /&gt;
			gcomp = &amp;#039;&amp;amp;mdash;&amp;#039;&lt;br /&gt;
		else&lt;br /&gt;
			gcomp = mm._precision_format(gfor / gaig, 3)&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		-- It&amp;#039;s goal difference&lt;br /&gt;
		gcomp = gfor - gaig&lt;br /&gt;
		-- Formatting with signs&lt;br /&gt;
		if gcomp&amp;gt;0 then&lt;br /&gt;
			gcomp=&amp;#039;+&amp;#039;..gcomp&lt;br /&gt;
		elseif gcomp &amp;lt; 0 then&lt;br /&gt;
			gcomp=&amp;#039;&amp;amp;minus;&amp;#039;..-gcomp&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	-- Some local vars	&lt;br /&gt;
	local hth_string&lt;br /&gt;
	local tt_return = p_sub.hth(frame,Args,full_table,hth_id_list,hth_local,notes_exist,team_list,team_code_ii,ii_start,ii_end,rand_val)&lt;br /&gt;
	hth_string = tt_return.str&lt;br /&gt;
	hth_id_list = tt_return.list&lt;br /&gt;
	notes_exist = tt_return.notes_exist&lt;br /&gt;
	&lt;br /&gt;
	-- Row building&lt;br /&gt;
	table.insert(t,&amp;#039;| style=&amp;quot;&amp;#039;..ii_fw..bg_col..&amp;#039;&amp;quot; |&amp;#039;..matches..&amp;#039;\n&amp;#039;) 		-- Played&lt;br /&gt;
	if full_table then&lt;br /&gt;
		table.insert(t,&amp;#039;| style=&amp;quot;&amp;#039;..ii_fw..bg_col..&amp;#039;&amp;quot; |&amp;#039;..wins..&amp;#039;\n&amp;#039;) 		-- Won&lt;br /&gt;
		table.insert(t,&amp;#039;| style=&amp;quot;&amp;#039;..ii_fw..bg_col..&amp;#039;&amp;quot; |&amp;#039;..draws..&amp;#039;\n&amp;#039;) 		-- Drawn&lt;br /&gt;
		table.insert(t,&amp;#039;| style=&amp;quot;&amp;#039;..ii_fw..bg_col..&amp;#039;&amp;quot; |&amp;#039;..losses..&amp;#039;\n&amp;#039;) 	-- Lost&lt;br /&gt;
		table.insert(t,&amp;#039;| style=&amp;quot;&amp;#039;..ii_fw..bg_col..&amp;#039;&amp;quot; |&amp;#039;..gfor..&amp;#039;\n&amp;#039;) 		-- GF&lt;br /&gt;
		table.insert(t,&amp;#039;| style=&amp;quot;&amp;#039;..ii_fw..bg_col..&amp;#039;&amp;quot; |&amp;#039;..gaig..&amp;#039;\n&amp;#039;)		-- GA&lt;br /&gt;
		table.insert(t,&amp;#039;| style=&amp;quot;&amp;#039;..ii_fw..bg_col..&amp;#039;&amp;quot; |&amp;#039;..gcomp..&amp;#039;\n&amp;#039;)      -- Goal comparison&lt;br /&gt;
	end&lt;br /&gt;
	-- Add &amp;amp;minus; for negative point totals&lt;br /&gt;
	table.insert(t,&amp;#039;| style=&amp;quot;font-weight: bold;&amp;#039;..bg_col..&amp;#039;&amp;quot; | &amp;#039;)&lt;br /&gt;
	if points&amp;lt;0 then&lt;br /&gt;
		table.insert(t,&amp;#039;&amp;amp;minus;&amp;#039;..-points..hth_string)&lt;br /&gt;
	else&lt;br /&gt;
		table.insert(t,points..hth_string)&lt;br /&gt;
	end&lt;br /&gt;
	table.insert(t,&amp;#039;\n&amp;#039;)&lt;br /&gt;
	&lt;br /&gt;
	return {t=t, notes_exist=notes_exist, hth_id_list=hth_id_list}&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function pp.status(Args)&lt;br /&gt;
	-- Declare status options&lt;br /&gt;
	-- ------------------------------------------------------------&lt;br /&gt;
	-- NOTE: If you add to status_code, also add to status_called and status_letters!!&lt;br /&gt;
	-- Or functionality will be compromised&lt;br /&gt;
	-- ------------------------------------------------------------&lt;br /&gt;
	local status_code, status_called = {}&lt;br /&gt;
	status_code = {	A=&amp;#039;Advances to a further round&amp;#039;, C=&amp;#039;Champion&amp;#039;, D=&amp;#039;Disqualified&amp;#039;, &lt;br /&gt;
		E=&amp;#039;Eliminated&amp;#039;, H=&amp;#039;Host&amp;#039;, O=&amp;#039;Play-off winner&amp;#039;, P=&amp;#039;Promoted&amp;#039;, Q=&amp;#039;Qualified to the phase indicated&amp;#039;,&lt;br /&gt;
		R=&amp;#039;Relegated&amp;#039;, T=&amp;#039;Qualified, but not yet to the particular phase indicated&amp;#039;,&lt;br /&gt;
		X=&amp;#039;?&amp;#039;, Y=&amp;#039;?&amp;#039;, Z=&amp;#039;?&amp;#039;}&lt;br /&gt;
	status_called = {	A=false, C=false, D=false, E=false, H=false, O=false, P=false,&lt;br /&gt;
		Q=false, R=false, T=false, X=false, Y=false, Z=false}&lt;br /&gt;
	local status_letters = &amp;#039;ACDEHOPQRTXYZ&amp;#039;&lt;br /&gt;
	&lt;br /&gt;
	-- Status position (before or after read and default)&lt;br /&gt;
	local stat_pos_val = Args[&amp;#039;status_pos&amp;#039;] or &amp;#039;&amp;#039;&lt;br /&gt;
	local status_position = &amp;#039;after&amp;#039; 	-- Default location&lt;br /&gt;
	stat_pos_val = string.lower(stat_pos_val)&lt;br /&gt;
	if stat_pos_val==&amp;#039;before&amp;#039; then&lt;br /&gt;
		status_position = &amp;#039;before&amp;#039;&lt;br /&gt;
	elseif stat_pos_val==&amp;#039;after&amp;#039; then&lt;br /&gt;
		status_position = &amp;#039;after&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	-- Read in custom status options&lt;br /&gt;
	if Args[&amp;#039;status_text_X&amp;#039;] then status_code.X = Args[&amp;#039;status_text_X&amp;#039;] end&lt;br /&gt;
	if Args[&amp;#039;status_text_Y&amp;#039;] then status_code.Y = Args[&amp;#039;status_text_Y&amp;#039;] end&lt;br /&gt;
	if Args[&amp;#039;status_text_Z&amp;#039;] then status_code.Z = Args[&amp;#039;status_text_Z&amp;#039;] end&lt;br /&gt;
	&lt;br /&gt;
	return {code=status_code, called=status_called, letters=status_letters, position=status_position}&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return pp&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>