<?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=Template%3AWDL%2Fdoc</id>
	<title>Template:WDL/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://nssportwiki.com/index.php?action=history&amp;feed=atom&amp;title=Template%3AWDL%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://nssportwiki.com/index.php?title=Template:WDL/doc&amp;action=history"/>
	<updated>2026-05-18T15:09:24Z</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=Template:WDL/doc&amp;diff=66345&amp;oldid=prev</id>
		<title>Osarius: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://nssportwiki.com/index.php?title=Template:WDL/doc&amp;diff=66345&amp;oldid=prev"/>
		<updated>2024-09-22T09:07:54Z</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 09:07, 22 September 2024&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=Template:WDL/doc&amp;diff=66344&amp;oldid=prev</id>
		<title>wikipedia&gt;Tom.Reding: /* top */{{High-use}}</title>
		<link rel="alternate" type="text/html" href="https://nssportwiki.com/index.php?title=Template:WDL/doc&amp;diff=66344&amp;oldid=prev"/>
		<updated>2023-12-26T23:00:20Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;top: &lt;/span&gt;{{High-use}}&lt;/span&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-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 23:00, 26 December 2023&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-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&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;{{Documentation subpage}}&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;{{Documentation subpage}}&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;{{High-use}}&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;&amp;lt;!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE --&amp;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;&amp;lt;!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE --&amp;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;{{Lua|Module:WDL}}&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;{{Lua|Module:WDL}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>wikipedia&gt;Tom.Reding</name></author>
	</entry>
	<entry>
		<id>https://nssportwiki.com/index.php?title=Template:WDL/doc&amp;diff=49279&amp;oldid=prev</id>
		<title>&gt;TheKitKatProject: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://nssportwiki.com/index.php?title=Template:WDL/doc&amp;diff=49279&amp;oldid=prev"/>
		<updated>2020-09-21T04:40:57Z</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 04:40, 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=Template:WDL/doc&amp;diff=49278&amp;oldid=prev</id>
		<title>wiki&gt;GhostInTheMachine: more specific cat</title>
		<link rel="alternate" type="text/html" href="https://nssportwiki.com/index.php?title=Template:WDL/doc&amp;diff=49278&amp;oldid=prev"/>
		<updated>2020-06-10T18:19:49Z</updated>

		<summary type="html">&lt;p&gt;more specific cat&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
&amp;lt;!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE --&amp;gt;&lt;br /&gt;
{{Lua|Module:WDL}}&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
This template is for use within tables, and will automatically calculate a Win %&lt;br /&gt;
There is the option to align the numbers by adding &amp;lt;code&amp;gt;align=&amp;lt;/code&amp;gt; and then left/centre/right as required, and choose the number of decimal places by defining &amp;lt;code&amp;gt;decimals=&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For example, putting &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
{{WDL|30|10|12|8}} &lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; within a table will display this. It will display trailing zeroes (e.g. the second and third case)&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!colspan=&amp;quot;5&amp;quot;|Record&lt;br /&gt;
|-&lt;br /&gt;
!P!!W!!D!!L!!Win %&lt;br /&gt;
|-&lt;br /&gt;
{{WDL|30|10|12|8}}&lt;br /&gt;
|-&lt;br /&gt;
{{WDL|100|10|1|89}}&lt;br /&gt;
|-&lt;br /&gt;
{{WDL|100|100|0|0}}&lt;br /&gt;
|}&lt;br /&gt;
To align the numbers to the right, use {{para|align|right}} &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
{{WDL|30|10|12|8|align=right}} &lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; within a table will display this. It will display trailing zeroes (e.g. the second and third case)&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!colspan=&amp;quot;5&amp;quot;|Record&lt;br /&gt;
|-&lt;br /&gt;
!P!!W!!D!!L!!Win %&lt;br /&gt;
|-&lt;br /&gt;
{{WDL|30|10|12|8|align=right}}&lt;br /&gt;
|-&lt;br /&gt;
{{WDL|100|10|1|89|align=right}}&lt;br /&gt;
|-&lt;br /&gt;
{{WDL|100|100|0|0|align=right}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
There is also the option of adding in two goals columns before the percentage by using &amp;lt;code&amp;gt;for=&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;against=&amp;lt;/code&amp;gt;. For example, &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{WDL|100|10|1|89|for=112|against=88}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{WDL|100|10|1|89|for=112|against=88|diff=yes}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!colspan=&amp;quot;7&amp;quot;|Record&lt;br /&gt;
|-&lt;br /&gt;
!P!!W!!D!!L!!GF!!GA!!Win %&lt;br /&gt;
|-&lt;br /&gt;
{{WDL|100|10|1|89|for=112|against=88}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!colspan=&amp;quot;8&amp;quot;|Record&lt;br /&gt;
|-&lt;br /&gt;
!P!!W!!D!!L!!GF!!GA!!+/-!!Win %&lt;br /&gt;
|-&lt;br /&gt;
{{WDL|100|10|1|89|for=112|against=88|diff=yes}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
For a total column at the bottom use {{tl|WDLtot}} in the same way.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!colspan=&amp;quot;5&amp;quot;|Record&lt;br /&gt;
|-&lt;br /&gt;
!P!!W!!D!!L!!Win %&lt;br /&gt;
|-&lt;br /&gt;
{{WDL|30|10|12|8}}&lt;br /&gt;
|-&lt;br /&gt;
{{WDL|100|10|1|89}}&lt;br /&gt;
|-&lt;br /&gt;
{{WDL|100|100|0|0}}&lt;br /&gt;
|-&lt;br /&gt;
{{WDLtot|230|120|13|97}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
If the numbers of wins, losses and draws do not add up correctly, the page will appear in [[:Category:WDL error]].&lt;br /&gt;
&lt;br /&gt;
== Empty parameters ==&lt;br /&gt;
&lt;br /&gt;
If the first parameter is empty, the value for games played is computed from the sum of Wins Draws and Losses&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!colspan=&amp;quot;5&amp;quot;|Record&lt;br /&gt;
|-&lt;br /&gt;
!P!!W!!D!!L!!Win %&lt;br /&gt;
|-&lt;br /&gt;
{{WDL||10|12|8}}&lt;br /&gt;
|-&lt;br /&gt;
{{WDL||10|1|89}}&lt;br /&gt;
|-&lt;br /&gt;
{{WDLtot||20|13|97}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
If any win, draw, or loss parameter is empty, the value is assumed to be zero when computing the percentage&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!colspan=&amp;quot;5&amp;quot;|Record&lt;br /&gt;
|-&lt;br /&gt;
!P!!W!!D!!L!!Win %&lt;br /&gt;
|-&lt;br /&gt;
{{WDL||10||8}}&lt;br /&gt;
|-&lt;br /&gt;
{{WDL||10||89}}&lt;br /&gt;
|-&lt;br /&gt;
{{WDLtot||20||97}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!colspan=&amp;quot;5&amp;quot;|Record&lt;br /&gt;
|-&lt;br /&gt;
!P!!W!!D!!L!!Win %&lt;br /&gt;
|-&lt;br /&gt;
{{WDL||10||8}}&lt;br /&gt;
|-&lt;br /&gt;
{{WDL||10||89}}&lt;br /&gt;
|-&lt;br /&gt;
{{WDLtot||20||97}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!colspan=&amp;quot;5&amp;quot;|Record&lt;br /&gt;
|-&lt;br /&gt;
!P!!W!!D!!L!!Win %&lt;br /&gt;
|-&lt;br /&gt;
{{WDL|20||12|8}}&lt;br /&gt;
|-&lt;br /&gt;
{{WDL|90||1|89}}&lt;br /&gt;
|-&lt;br /&gt;
{{WDLtot|110||13|97}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* {{tl|win-loss record}}&lt;br /&gt;
* [[:Category:WDL error]] - errors with the template appear in this category&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
&amp;lt;!-- Categories go here and interwikis go in Wikidata. --&amp;gt;&lt;br /&gt;
[[Category:Templates with partial table wikitext]]&lt;br /&gt;
[[Category:Sports statistics templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>wiki&gt;GhostInTheMachine</name></author>
	</entry>
</feed>