<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://ml.sayahna.org/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="http://ml.sayahna.org/index.php?action=history&amp;feed=atom&amp;title=Template%3AWDL%2Fdoc"/>
	<link rel="alternate" type="text/html" href="http://ml.sayahna.org/index.php?title=Template:WDL/doc&amp;action=history"/>
	<updated>2026-06-08T02:37:39Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.5</generator>
	<entry>
		<id>http://ml.sayahna.org/index.php?title=Template:WDL/doc&amp;diff=12530&amp;oldid=prev</id>
		<title>Cvr: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://ml.sayahna.org/index.php?title=Template:WDL/doc&amp;diff=12530&amp;oldid=prev"/>
		<updated>2014-08-22T07:26:42Z</updated>

		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 07:26, 22 August 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&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>Cvr</name></author>
		
	</entry>
	<entry>
		<id>http://ml.sayahna.org/index.php?title=Template:WDL/doc&amp;diff=12529&amp;oldid=prev</id>
		<title>Frietjes: /* Empty parameters */</title>
		<link rel="alternate" type="text/html" href="http://ml.sayahna.org/index.php?title=Template:WDL/doc&amp;diff=12529&amp;oldid=prev"/>
		<updated>2014-05-06T18:03:20Z</updated>

		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Empty parameters&lt;/span&gt;&lt;/span&gt;&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;
=== 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 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;
&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;
{{WDLtot|130|20|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;{{#ifeq:{{SUBPAGENAME}}|sandbox||&lt;br /&gt;
&amp;lt;!-- Categories go here and interwikis go in Wikidata. --&amp;gt;&lt;br /&gt;
[[Category:Table and column templates]]&lt;br /&gt;
[[Category:Sports templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Frietjes</name></author>
		
	</entry>
</feed>