https://en.wikipedia.org/w/index.php?action=history&feed=atom&title=Module%3ASports_table%2FFencing
Module:Sports table/Fencing - Revision history
2025-06-08T05:24:48Z
Revision history for this page on the wiki
MediaWiki 1.45.0-wmf.4
https://en.wikipedia.org/w/index.php?title=Module:Sports_table/Fencing&diff=939027516&oldid=prev
Frietjes at 22:05, 3 February 2020
2020-02-03T22:05:30Z
<p></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Previous revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 22:05, 3 February 2020</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Line 29:</td>
<td colspan="2" class="diff-lineno">Line 29:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="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;"><div> tt = p_sub.colhead(tt,28,group_head_text) -- Group col</div></td>
<td class="diff-marker"></td>
<td style="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;"><div> tt = p_sub.colhead(tt,28,group_head_text) -- Group col</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="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;"><div> end</div></td>
<td class="diff-marker"></td>
<td style="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;"><div> end</div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td style="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;"><div> tt = p_sub.colhead(tt,team_width,'<del style="font-weight: bold; text-decoration: none;">Fencer</del>'..VTE_text) -- Team col</div></td>
<td class="diff-marker" data-marker="+"></td>
<td style="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;"><div> tt = p_sub.colhead(tt,team_width,<ins style="font-weight: bold; text-decoration: none;">(Args[</ins>'<ins style="font-weight: bold; text-decoration: none;">team_header</ins>'<ins style="font-weight: bold; text-decoration: none;">] or 'Team')</ins>..VTE_text) -- Team col</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="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;"><div> if show_played then</div></td>
<td class="diff-marker"></td>
<td style="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;"><div> if show_played then</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="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;"><div> tt = p_sub.colhead(tt,28,'<abbr title="Matches">M</abbr>') -- Matches played col</div></td>
<td class="diff-marker"></td>
<td style="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;"><div> tt = p_sub.colhead(tt,28,'<abbr title="Matches">M</abbr>') -- Matches played col</div></td>
</tr>
</table>
Frietjes
https://en.wikipedia.org/w/index.php?title=Module:Sports_table/Fencing&diff=939007806&oldid=prev
Frietjes at 19:37, 3 February 2020
2020-02-03T19:37:40Z
<p></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Previous revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 19:37, 3 February 2020</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Line 9:</td>
<td colspan="2" class="diff-lineno">Line 9:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="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;"><div> local team_width = Args['teamwidth'] or '170'</div></td>
<td class="diff-marker"></td>
<td style="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;"><div> local team_width = Args['teamwidth'] or '170'</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="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;"><div> local sort_text = yesno(Args['sortable_table'] or 'no') and 'sortable' or ''</div></td>
<td class="diff-marker"></td>
<td style="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;"><div> local sort_text = yesno(Args['sortable_table'] or 'no') and 'sortable' or ''</div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td style="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;"><div> local <del style="font-weight: bold; text-decoration: none;">show_matches</del> = yesno(Args['<del style="font-weight: bold; text-decoration: none;">show_matches</del>'] or 'no') and true or false</div></td>
<td class="diff-marker" data-marker="+"></td>
<td style="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;"><div> local <ins style="font-weight: bold; text-decoration: none;">show_played</ins> = yesno(Args['<ins style="font-weight: bold; text-decoration: none;">show_played</ins>'] or 'no') and true or false</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="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;"><div> local show_touches = yesno(Args['show_touches'] or 'yes')</div></td>
<td class="diff-marker"></td>
<td style="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;"><div> local show_touches = yesno(Args['show_touches'] or 'yes')</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="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;"><div> local show_bouts = yesno(Args['show_bouts'] or 'no')</div></td>
<td class="diff-marker"></td>
<td style="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;"><div> local show_bouts = yesno(Args['show_bouts'] or 'no')</div></td>
</tr>
<tr>
<td colspan="2" class="diff-lineno">Line 30:</td>
<td colspan="2" class="diff-lineno">Line 30:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="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;"><div> end</div></td>
<td class="diff-marker"></td>
<td style="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;"><div> end</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="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;"><div> tt = p_sub.colhead(tt,team_width,'Fencer'..VTE_text) -- Team col</div></td>
<td class="diff-marker"></td>
<td style="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;"><div> tt = p_sub.colhead(tt,team_width,'Fencer'..VTE_text) -- Team col</div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td style="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;"><div> if <del style="font-weight: bold; text-decoration: none;">show_matches</del> then</div></td>
<td class="diff-marker" data-marker="+"></td>
<td style="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;"><div> if <ins style="font-weight: bold; text-decoration: none;">show_played</ins> then</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="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;"><div> tt = p_sub.colhead(tt,28,'<abbr title="Matches">M</abbr>') -- Matches played col</div></td>
<td class="diff-marker"></td>
<td style="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;"><div> tt = p_sub.colhead(tt,28,'<abbr title="Matches">M</abbr>') -- Matches played col</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="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;"><div> end</div></td>
<td class="diff-marker"></td>
<td style="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;"><div> end</div></td>
</tr>
<tr>
<td colspan="2" class="diff-lineno">Line 113:</td>
<td colspan="2" class="diff-lineno">Line 113:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="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;"><div> </div></td>
<td class="diff-marker"></td>
<td style="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;"><div> </div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="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;"><div> -- Show maches, touches, bouts, and points</div></td>
<td class="diff-marker"></td>
<td style="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;"><div> -- Show maches, touches, bouts, and points</div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td style="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;"><div> local <del style="font-weight: bold; text-decoration: none;">show_matches</del> = yesno(Args['<del style="font-weight: bold; text-decoration: none;">show_matches</del>'] or 'no') and true or false</div></td>
<td class="diff-marker" data-marker="+"></td>
<td style="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;"><div> local <ins style="font-weight: bold; text-decoration: none;">show_played</ins> = yesno(Args['<ins style="font-weight: bold; text-decoration: none;">show_played</ins>'] or 'no') and true or false</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="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;"><div> local show_touches = yesno(Args['show_touches'] or 'yes')</div></td>
<td class="diff-marker"></td>
<td style="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;"><div> local show_touches = yesno(Args['show_touches'] or 'yes')</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="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;"><div> local show_bouts = yesno(Args['show_bouts'] or 'no')</div></td>
<td class="diff-marker"></td>
<td style="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;"><div> local show_bouts = yesno(Args['show_bouts'] or 'no')</div></td>
</tr>
<tr>
<td colspan="2" class="diff-lineno">Line 120:</td>
<td colspan="2" class="diff-lineno">Line 120:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="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;"><div> -- Now that we are done calculating, show actual input values</div></td>
<td class="diff-marker"></td>
<td style="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;"><div> -- Now that we are done calculating, show actual input values</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="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;"><div> if tonumber(Args['win_'..team_code_ii] or 0) == nil then</div></td>
<td class="diff-marker"></td>
<td style="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;"><div> if tonumber(Args['win_'..team_code_ii] or 0) == nil then</div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td style="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;"><div> wins = '<del style="font-weight: bold; text-decoration: none;">&mdash;</del>'</div></td>
<td class="diff-marker" data-marker="+"></td>
<td style="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;"><div> wins = <ins style="font-weight: bold; text-decoration: none;">Args[</ins>'<ins style="font-weight: bold; text-decoration: none;">win_</ins>'<ins style="font-weight: bold; text-decoration: none;">..team_code_ii]</ins></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="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;"><div> end</div></td>
<td class="diff-marker"></td>
<td style="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;"><div> end</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="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;"><div> if tonumber(Args['loss_'..team_code_ii] or 0) == nil then</div></td>
<td class="diff-marker"></td>
<td style="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;"><div> if tonumber(Args['loss_'..team_code_ii] or 0) == nil then</div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td style="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;"><div> losses = '<del style="font-weight: bold; text-decoration: none;">&mdash;</del>'</div></td>
<td class="diff-marker" data-marker="+"></td>
<td style="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;"><div> losses = <ins style="font-weight: bold; text-decoration: none;">Args[</ins>'<ins style="font-weight: bold; text-decoration: none;">loss_</ins>'<ins style="font-weight: bold; text-decoration: none;">..team_code_ii]</ins></div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="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;"><div> end</div></td>
<td class="diff-marker"></td>
<td style="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;"><div> end</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="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;"><div> local function numorval(s)</div></td>
<td class="diff-marker"></td>
<td style="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;"><div> local function numorval(s)</div></td>
</tr>
<tr>
<td colspan="2" class="diff-lineno">Line 134:</td>
<td colspan="2" class="diff-lineno">Line 134:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="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;"><br /></td>
<td class="diff-marker"></td>
<td style="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;"><br /></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="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;"><div> -- Row building</div></td>
<td class="diff-marker"></td>
<td style="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;"><div> -- Row building</div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td style="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;"><div> if <del style="font-weight: bold; text-decoration: none;">show_matches</del> then</div></td>
<td class="diff-marker" data-marker="+"></td>
<td style="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;"><div> if <ins style="font-weight: bold; text-decoration: none;">show_played</ins> then</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="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;"><div> table.insert(t,'| style="'..ii_fw..bg_col..'" |'..matches..'\n') -- Played</div></td>
<td class="diff-marker"></td>
<td style="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;"><div> table.insert(t,'| style="'..ii_fw..bg_col..'" |'..matches..'\n') -- Played</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="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;"><div> end</div></td>
<td class="diff-marker"></td>
<td style="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;"><div> end</div></td>
</tr>
</table>
Frietjes
https://en.wikipedia.org/w/index.php?title=Module:Sports_table/Fencing&diff=938997780&oldid=prev
Frietjes at 18:22, 3 February 2020
2020-02-03T18:22:00Z
<p></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Previous revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 18:22, 3 February 2020</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Line 134:</td>
<td colspan="2" class="diff-lineno">Line 134:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="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;"><br /></td>
<td class="diff-marker"></td>
<td style="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;"><br /></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="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;"><div> -- Row building</div></td>
<td class="diff-marker"></td>
<td style="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;"><div> -- Row building</div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td style="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;"><div> if <del style="font-weight: bold; text-decoration: none;">show_played</del> then</div></td>
<td class="diff-marker" data-marker="+"></td>
<td style="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;"><div> if <ins style="font-weight: bold; text-decoration: none;">show_matches</ins> then</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="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;"><div> table.insert(t,'| style="'..ii_fw..bg_col..'" |'..matches..'\n') -- Played</div></td>
<td class="diff-marker"></td>
<td style="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;"><div> table.insert(t,'| style="'..ii_fw..bg_col..'" |'..matches..'\n') -- Played</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="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;"><div> end</div></td>
<td class="diff-marker"></td>
<td style="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;"><div> end</div></td>
</tr>
</table>
Frietjes
https://en.wikipedia.org/w/index.php?title=Module:Sports_table/Fencing&diff=938997722&oldid=prev
Frietjes at 18:21, 3 February 2020
2020-02-03T18:21:38Z
<p></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Previous revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 18:21, 3 February 2020</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Line 86:</td>
<td colspan="2" class="diff-lineno">Line 86:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="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;"><div> local matches = wins + losses</div></td>
<td class="diff-marker"></td>
<td style="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;"><div> local matches = wins + losses</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="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;"><div> local points = win_points*wins + loss_points*losses + s_pts</div></td>
<td class="diff-marker"></td>
<td style="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;"><div> local points = win_points*wins + loss_points*losses + s_pts</div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td style="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;"><div> local wins = bigwins + smallwins</div></td>
<td colspan="2" class="diff-empty diff-side-added"></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td style="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;"><div> local losses = biglosses + smallosses</div></td>
<td colspan="2" class="diff-empty diff-side-added"></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="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;"><div> </div></td>
<td class="diff-marker"></td>
<td style="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;"><div> </div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="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;"><div> -- Some local vars </div></td>
<td class="diff-marker"></td>
<td style="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;"><div> -- Some local vars </div></td>
</tr>
</table>
Frietjes
https://en.wikipedia.org/w/index.php?title=Module:Sports_table/Fencing&diff=938997268&oldid=prev
Frietjes: ←Created page with '-- Style for fencing tables local pp = {} function pp.header(t,Args,p_sub,pos_label,group_col,VTE_text,full_table,results_header_txt) -- Load relevant modules...'
2020-02-03T18:18:14Z
<p><a href="/wiki/Wikipedia:AES" class="mw-redirect" title="Wikipedia:AES">←</a>Created page with '-- Style for fencing tables local pp = {} function pp.header(t,Args,p_sub,pos_label,group_col,VTE_text,full_table,results_header_txt) -- Load relevant modules...'</p>
<p><b>New page</b></p><div>-- Style for fencing tables<br />
local pp = {}<br />
<br />
function pp.header(t,Args,p_sub,pos_label,group_col,VTE_text,full_table,results_header_txt)<br />
-- Load relevant modules<br />
local yesno = require('Module:Yesno')<br />
-- Create table header<br />
-- Pre stuff<br />
local team_width = Args['teamwidth'] or '170'<br />
local sort_text = yesno(Args['sortable_table'] or 'no') and 'sortable' or ''<br />
local show_matches = yesno(Args['show_matches'] or 'no') and true or false<br />
local show_touches = yesno(Args['show_touches'] or 'yes')<br />
local show_bouts = yesno(Args['show_bouts'] or 'no')<br />
local show_points = yesno(Args['show_points'] or 'no')<br />
<br />
-- Custom header<br />
local group_head_text = Args['group_header'] or '<abbr title="Group">Grp</abbr>'<br />
<br />
table.insert(t,'{|class="wikitable '..sort_text..'" style="text-align:center;"\n') -- Open table<br />
<br />
-- Initialize<br />
local tt = {}<br />
tt.count = 0 -- Up by one after every call<br />
tt.tab_text = t -- Actual text<br />
-- Actual headers<br />
tt = p_sub.colhead(tt,28,pos_label) -- Position col<br />
-- Add group header<br />
if full_table and group_col then<br />
tt = p_sub.colhead(tt,28,group_head_text) -- Group col<br />
end<br />
tt = p_sub.colhead(tt,team_width,'Fencer'..VTE_text) -- Team col<br />
if show_matches then<br />
tt = p_sub.colhead(tt,28,'<abbr title="Matches">M</abbr>') -- Matches played col<br />
end<br />
<br />
if full_table then<br />
tt = p_sub.colhead(tt,28,'<abbr title="Won">W</abbr>') -- Win col<br />
tt = p_sub.colhead(tt,28,'<abbr title="Lost">L</abbr>') -- Loss col<br />
end<br />
<br />
if show_points then<br />
tt = p_sub.colhead(tt,28,'<abbr title="Points">Pts</abbr>') -- Points col<br />
end<br />
<br />
if full_table then<br />
if show_touches then<br />
tt = p_sub.colhead(tt,32,'<abbr title="Touches for">TF</abbr>') -- Touches<br />
tt = p_sub.colhead(tt,32,'<abbr title="Touches against">TA</abbr>') -- Touched<br />
end<br />
if show_bouts then<br />
tt = p_sub.colhead(tt,28,'<abbr title="Bouts won">BW</abbr>') -- Bouts won col<br />
tt = p_sub.colhead(tt,28,'<abbr title="Bouts lost">BL</abbr>') -- Bouts lost col<br />
end<br />
end<br />
<br />
if full_table then<br />
tt.count = tt.count+1<br />
table.insert(tt.tab_text,results_header_txt)<br />
end<br />
<br />
return tt<br />
end<br />
<br />
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)<br />
-- Build the inner parts of individual rows<br />
<br />
-- Sub-module usage<br />
local mm = require('Module:Math')<br />
local yesno = require('Module:Yesno')<br />
<br />
-- Get custom/default options for in table<br />
local win_points = tonumber(Args['winpoints']) or 2<br />
local loss_points = tonumber(Args['losspoints']) or 0<br />
<br />
-- Get some input<br />
local wins = tonumber(Args['win_'..team_code_ii]) or 0<br />
local losses = tonumber(Args['loss_'..team_code_ii]) or 0<br />
local tf = tonumber(Args['tf_'..team_code_ii]) or 0<br />
local ta = tonumber(Args['ta_'..team_code_ii]) or 0<br />
local bw = tonumber(Args['bw_'..team_code_ii]) or 0<br />
local bl = tonumber(Args['bl_'..team_code_ii]) or 0<br />
local s_pts = tonumber(Args['adjust_points_'..team_code_ii]) or tonumber(Args['startpoints_'..team_code_ii]) or 0<br />
local hth_local = Args['hth_'..team_code_ii] or nil<br />
<br />
-- Then calculate some values<br />
local matches = wins + losses<br />
local points = win_points*wins + loss_points*losses + s_pts<br />
local wins = bigwins + smallwins<br />
local losses = biglosses + smallosses<br />
<br />
-- Some local vars <br />
local hth_string<br />
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)<br />
hth_string = tt_return.str<br />
hth_id_list = tt_return.list<br />
notes_exist = tt_return.notes_exist<br />
<br />
-- What to rank the teams by<br />
local ranking_style = Args['ranking_style'] or 'wins'<br />
local win_fw, win_string, pts_fw, pts_string<br />
ranking_style = string.lower(ranking_style)<br />
if ranking_style=='p' or ranking_style=='pts' or ranking_style=='points' then<br />
-- Based on points<br />
win_fw=ii_fw<br />
win_string = ''<br />
pts_fw = 'font-weight: bold;'<br />
pts_string = hth_string<br />
else<br />
-- Based on wins<br />
win_fw = 'font-weight: bold;'<br />
win_string = hth_string<br />
pts_fw=ii_fw<br />
pts_string = ''<br />
end<br />
<br />
-- Show maches, touches, bouts, and points<br />
local show_matches = yesno(Args['show_matches'] or 'no') and true or false<br />
local show_touches = yesno(Args['show_touches'] or 'yes')<br />
local show_bouts = yesno(Args['show_bouts'] or 'no')<br />
local show_points = yesno(Args['show_points'] or 'no')<br />
<br />
-- Now that we are done calculating, show actual input values<br />
if tonumber(Args['win_'..team_code_ii] or 0) == nil then<br />
wins = '&mdash;'<br />
end<br />
if tonumber(Args['loss_'..team_code_ii] or 0) == nil then<br />
losses = '&mdash;'<br />
end<br />
local function numorval(s)<br />
return s and ((s == '' and 0) or tonumber(s) or s) or 0<br />
end<br />
tf = numorval(Args['tf_'..team_code_ii])<br />
ta = numorval(Args['ta_'..team_code_ii])<br />
bw = numorval(Args['bw_'..team_code_ii])<br />
bl = numorval(Args['bl_'..team_code_ii])<br />
<br />
-- Row building<br />
if show_played then<br />
table.insert(t,'| style="'..ii_fw..bg_col..'" |'..matches..'\n') -- Played<br />
end<br />
if full_table then<br />
table.insert(t,'| style="'..win_fw..bg_col..'" |'..wins..win_string..'\n') -- Won<br />
table.insert(t,'| style="'..ii_fw..bg_col..'" |'..losses..'\n') -- Lost<br />
end<br />
<br />
if show_points then<br />
if points<0 then<br />
table.insert(t,'| style="'..pts_fw..bg_col..'" | &minus;'..-points..pts_string..'\n')<br />
else<br />
table.insert(t,'| style="'..pts_fw..bg_col..'" | '..points..pts_string..'\n')<br />
end<br />
end<br />
<br />
if full_table then<br />
if show_touches then<br />
table.insert(t,'| style="'..ii_fw..bg_col..'" |'..tf..'\n') -- Touches<br />
table.insert(t,'| style="'..ii_fw..bg_col..'" |'..ta..'\n') -- Touched<br />
end<br />
if show_bouts then<br />
table.insert(t,'| style="'..ii_fw..bg_col..'" |'..bw..'\n') -- Bouts won<br />
table.insert(t,'| style="'..ii_fw..bg_col..'" |'..bl..'\n') -- Bouts lost<br />
end<br />
end<br />
<br />
return {t=t, notes_exist=notes_exist, hth_id_list=hth_id_list}<br />
end<br />
<br />
function pp.status(Args)<br />
-- Declare status options<br />
-- ------------------------------------------------------------<br />
-- NOTE: If you add to status_code, also add to status_called and status_letters!!<br />
-- Or functionality will be compromised<br />
-- ------------------------------------------------------------<br />
local status_code, status_called = {}, {}<br />
status_code = { A='Advances to a further round', C='Champion', D='Disqualified', <br />
E='Eliminated', H='Host', O='Play-off winner', P='Promoted', Q='Qualified to the phase indicated',<br />
R='Relegated', T='Qualified, but not yet to the particular phase indicated'}<br />
local status_letters = (Args['status_order'] or '') .. 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'<br />
<br />
-- Status position (before or after read and default)<br />
local stat_pos_val = string.lower(Args['status_pos'] or '')<br />
local status_position = 'after' -- Default location<br />
if stat_pos_val=='before' then<br />
status_position = 'before'<br />
elseif stat_pos_val=='after' then<br />
status_position = 'after'<br />
end<br />
-- Read in custom status options<br />
for l in mw.text.gsplit(status_letters, '') do<br />
status_called[l] = false<br />
status_code[l] = status_code[l] or '?'<br />
status_letters = mw.ustring.gsub(status_letters, '(' .. l ..'.-)' .. l, '%1')<br />
<br />
if Args['status_text_' .. l] then<br />
status_code[l] = Args['status_text_' .. l]<br />
end<br />
end<br />
<br />
return {code=status_code, called=status_called, letters=status_letters, position=status_position}<br />
end<br />
<br />
return pp</div>
Frietjes