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,'&lt;abbr title="Matches"&gt;M&lt;/abbr&gt;') -- 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,'&lt;abbr title="Matches"&gt;M&lt;/abbr&gt;') -- 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,'&lt;abbr title="Matches"&gt;M&lt;/abbr&gt;') -- 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,'&lt;abbr title="Matches"&gt;M&lt;/abbr&gt;') -- 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;">&amp;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;">&amp;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 &#039;-- 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...&#039;</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(&#039;Module:Yesno&#039;)<br /> -- Create table header<br /> -- Pre stuff<br /> local team_width = Args[&#039;teamwidth&#039;] or &#039;170&#039;<br /> local sort_text = yesno(Args[&#039;sortable_table&#039;] or &#039;no&#039;) and &#039;sortable&#039; or &#039;&#039;<br /> local show_matches = yesno(Args[&#039;show_matches&#039;] or &#039;no&#039;) and true or false<br /> local show_touches = yesno(Args[&#039;show_touches&#039;] or &#039;yes&#039;)<br /> local show_bouts = yesno(Args[&#039;show_bouts&#039;] or &#039;no&#039;)<br /> local show_points = yesno(Args[&#039;show_points&#039;] or &#039;no&#039;)<br /> <br /> -- Custom header<br /> local group_head_text = Args[&#039;group_header&#039;] or &#039;&lt;abbr title=&quot;Group&quot;&gt;Grp&lt;/abbr&gt;&#039;<br /> <br /> table.insert(t,&#039;{|class=&quot;wikitable &#039;..sort_text..&#039;&quot; style=&quot;text-align:center;&quot;\n&#039;) -- 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,&#039;Fencer&#039;..VTE_text) -- Team col<br /> if show_matches then<br /> tt = p_sub.colhead(tt,28,&#039;&lt;abbr title=&quot;Matches&quot;&gt;M&lt;/abbr&gt;&#039;) -- Matches played col<br /> end<br /> <br /> if full_table then<br /> tt = p_sub.colhead(tt,28,&#039;&lt;abbr title=&quot;Won&quot;&gt;W&lt;/abbr&gt;&#039;) -- Win col<br /> tt = p_sub.colhead(tt,28,&#039;&lt;abbr title=&quot;Lost&quot;&gt;L&lt;/abbr&gt;&#039;) -- Loss col<br /> end<br /> <br /> if show_points then<br /> tt = p_sub.colhead(tt,28,&#039;&lt;abbr title=&quot;Points&quot;&gt;Pts&lt;/abbr&gt;&#039;) -- Points col<br /> end<br /> <br /> if full_table then<br /> if show_touches then<br /> tt = p_sub.colhead(tt,32,&#039;&lt;abbr title=&quot;Touches for&quot;&gt;TF&lt;/abbr&gt;&#039;) -- Touches<br /> tt = p_sub.colhead(tt,32,&#039;&lt;abbr title=&quot;Touches against&quot;&gt;TA&lt;/abbr&gt;&#039;) -- Touched<br /> end<br /> if show_bouts then<br /> tt = p_sub.colhead(tt,28,&#039;&lt;abbr title=&quot;Bouts won&quot;&gt;BW&lt;/abbr&gt;&#039;) -- Bouts won col<br /> tt = p_sub.colhead(tt,28,&#039;&lt;abbr title=&quot;Bouts lost&quot;&gt;BL&lt;/abbr&gt;&#039;) -- 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(&#039;Module:Math&#039;)<br /> local yesno = require(&#039;Module:Yesno&#039;)<br /> <br /> -- Get custom/default options for in table<br /> local win_points = tonumber(Args[&#039;winpoints&#039;]) or 2<br /> local loss_points = tonumber(Args[&#039;losspoints&#039;]) or 0<br /> <br /> -- Get some input<br /> local wins = tonumber(Args[&#039;win_&#039;..team_code_ii]) or 0<br /> local losses = tonumber(Args[&#039;loss_&#039;..team_code_ii]) or 0<br /> local tf = tonumber(Args[&#039;tf_&#039;..team_code_ii]) or 0<br /> local ta = tonumber(Args[&#039;ta_&#039;..team_code_ii]) or 0<br /> local bw = tonumber(Args[&#039;bw_&#039;..team_code_ii]) or 0<br /> local bl = tonumber(Args[&#039;bl_&#039;..team_code_ii]) or 0<br /> local s_pts = tonumber(Args[&#039;adjust_points_&#039;..team_code_ii]) or tonumber(Args[&#039;startpoints_&#039;..team_code_ii]) or 0<br /> local hth_local = Args[&#039;hth_&#039;..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[&#039;ranking_style&#039;] or &#039;wins&#039;<br /> local win_fw, win_string, pts_fw, pts_string<br /> ranking_style = string.lower(ranking_style)<br /> if ranking_style==&#039;p&#039; or ranking_style==&#039;pts&#039; or ranking_style==&#039;points&#039; then<br /> -- Based on points<br /> win_fw=ii_fw<br /> win_string = &#039;&#039;<br /> pts_fw = &#039;font-weight: bold;&#039;<br /> pts_string = hth_string<br /> else<br /> -- Based on wins<br /> win_fw = &#039;font-weight: bold;&#039;<br /> win_string = hth_string<br /> pts_fw=ii_fw<br /> pts_string = &#039;&#039;<br /> end<br /> <br /> -- Show maches, touches, bouts, and points<br /> local show_matches = yesno(Args[&#039;show_matches&#039;] or &#039;no&#039;) and true or false<br /> local show_touches = yesno(Args[&#039;show_touches&#039;] or &#039;yes&#039;)<br /> local show_bouts = yesno(Args[&#039;show_bouts&#039;] or &#039;no&#039;)<br /> local show_points = yesno(Args[&#039;show_points&#039;] or &#039;no&#039;)<br /> <br /> -- Now that we are done calculating, show actual input values<br /> if tonumber(Args[&#039;win_&#039;..team_code_ii] or 0) == nil then<br /> wins = &#039;&amp;mdash;&#039;<br /> end<br /> if tonumber(Args[&#039;loss_&#039;..team_code_ii] or 0) == nil then<br /> losses = &#039;&amp;mdash;&#039;<br /> end<br /> local function numorval(s)<br /> return s and ((s == &#039;&#039; and 0) or tonumber(s) or s) or 0<br /> end<br /> tf = numorval(Args[&#039;tf_&#039;..team_code_ii])<br /> ta = numorval(Args[&#039;ta_&#039;..team_code_ii])<br /> bw = numorval(Args[&#039;bw_&#039;..team_code_ii])<br /> bl = numorval(Args[&#039;bl_&#039;..team_code_ii])<br /> <br /> -- Row building<br /> if show_played then<br /> table.insert(t,&#039;| style=&quot;&#039;..ii_fw..bg_col..&#039;&quot; |&#039;..matches..&#039;\n&#039;) -- Played<br /> end<br /> if full_table then<br /> table.insert(t,&#039;| style=&quot;&#039;..win_fw..bg_col..&#039;&quot; |&#039;..wins..win_string..&#039;\n&#039;) -- Won<br /> table.insert(t,&#039;| style=&quot;&#039;..ii_fw..bg_col..&#039;&quot; |&#039;..losses..&#039;\n&#039;) -- Lost<br /> end<br /> <br /> if show_points then<br /> if points&lt;0 then<br /> table.insert(t,&#039;| style=&quot;&#039;..pts_fw..bg_col..&#039;&quot; | &amp;minus;&#039;..-points..pts_string..&#039;\n&#039;)<br /> else<br /> table.insert(t,&#039;| style=&quot;&#039;..pts_fw..bg_col..&#039;&quot; | &#039;..points..pts_string..&#039;\n&#039;)<br /> end<br /> end<br /> <br /> if full_table then<br /> if show_touches then<br /> table.insert(t,&#039;| style=&quot;&#039;..ii_fw..bg_col..&#039;&quot; |&#039;..tf..&#039;\n&#039;) -- Touches<br /> table.insert(t,&#039;| style=&quot;&#039;..ii_fw..bg_col..&#039;&quot; |&#039;..ta..&#039;\n&#039;) -- Touched<br /> end<br /> if show_bouts then<br /> table.insert(t,&#039;| style=&quot;&#039;..ii_fw..bg_col..&#039;&quot; |&#039;..bw..&#039;\n&#039;) -- Bouts won<br /> table.insert(t,&#039;| style=&quot;&#039;..ii_fw..bg_col..&#039;&quot; |&#039;..bl..&#039;\n&#039;) -- 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=&#039;Advances to a further round&#039;, C=&#039;Champion&#039;, D=&#039;Disqualified&#039;, <br /> E=&#039;Eliminated&#039;, H=&#039;Host&#039;, O=&#039;Play-off winner&#039;, P=&#039;Promoted&#039;, Q=&#039;Qualified to the phase indicated&#039;,<br /> R=&#039;Relegated&#039;, T=&#039;Qualified, but not yet to the particular phase indicated&#039;}<br /> local status_letters = (Args[&#039;status_order&#039;] or &#039;&#039;) .. &#039;ABCDEFGHIJKLMNOPQRSTUVWXYZ&#039;<br /> <br /> -- Status position (before or after read and default)<br /> local stat_pos_val = string.lower(Args[&#039;status_pos&#039;] or &#039;&#039;)<br /> local status_position = &#039;after&#039; -- Default location<br /> if stat_pos_val==&#039;before&#039; then<br /> status_position = &#039;before&#039;<br /> elseif stat_pos_val==&#039;after&#039; then<br /> status_position = &#039;after&#039;<br /> end<br /> -- Read in custom status options<br /> for l in mw.text.gsplit(status_letters, &#039;&#039;) do<br /> status_called[l] = false<br /> status_code[l] = status_code[l] or &#039;?&#039;<br /> status_letters = mw.ustring.gsub(status_letters, &#039;(&#039; .. l ..&#039;.-)&#039; .. l, &#039;%1&#039;)<br /> <br /> if Args[&#039;status_text_&#039; .. l] then<br /> status_code[l] = Args[&#039;status_text_&#039; .. 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