https://de.wikipedia.org/w/index.php?action=history&feed=atom&title=Module%3ASports_table%2FVolleyball Modul:Sports table/Volleyball - Versionsgeschichte 2025-05-25T00:02:40Z Versionsgeschichte dieser Seite in Wikipedia MediaWiki 1.45.0-wmf.2 https://de.wikipedia.org/w/index.php?title=Modul:Sports_table/Volleyball&diff=248769346&oldid=prev Antonsusi am 21. September 2024 um 00:13 Uhr 2024-09-21T00:13:26Z <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="de"> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Nächstältere Version</td> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Version vom 21. September 2024, 02:13 Uhr</td> </tr><tr> <td colspan="2" class="diff-lineno">Zeile 80:</td> <td colspan="2" class="diff-lineno">Zeile 80:</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> -- Sub-module usage</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> -- Sub-module usage</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 mm = require('Module:Math')</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 mm = require('Module:<ins style="font-weight: bold; text-decoration: none;">Sports table/</ins>Math')</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 yesno = require('Module:Yesno')</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 yesno = require('Module:Yesno')</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> </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> </table> Antonsusi https://de.wikipedia.org/w/index.php?title=Modul:Sports_table/Volleyball&diff=202698437&oldid=prev Marcus Cyron am 11. August 2020 um 20:34 Uhr 2020-08-11T20:34:49Z <p></p> <a href="//de.wikipedia.org/w/index.php?title=Modul:Sports_table/Volleyball&amp;diff=202698437&amp;oldid=202698360">Änderungen zeigen</a> Marcus Cyron https://de.wikipedia.org/w/index.php?title=Modul:Sports_table/Volleyball&diff=202698360&oldid=prev Marcus Cyron: SLA+ 2020-08-11T20:32:32Z <p>SLA+</p> <a href="//de.wikipedia.org/w/index.php?title=Modul:Sports_table/Volleyball&amp;diff=202698360&amp;oldid=202698270">Änderungen zeigen</a> Marcus Cyron https://de.wikipedia.org/w/index.php?title=Modul:Sports_table/Volleyball&diff=202698270&oldid=prev Marcus Cyron: AZ: Die Seite wurde neu angelegt: -- Style for football tables local pp = {} function pp.header(t,Args,p_sub,pos_label,group_col,VTE_t… 2020-08-11T20:29:21Z <p><a href="/wiki/Hilfe:Zusammenfassung_und_Quellen#Auto-Zusammenfassung" title="Hilfe:Zusammenfassung und Quellen">AZ</a>: Die Seite wurde neu angelegt: -- Style for football tables local pp = {} function pp.header(t,Args,p_sub,pos_label,group_col,VTE_t…</p> <p><b>Neue Seite</b></p><div>-- Style for football 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 /> <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_played = yesno(Args[&#039;hide_played&#039;] or &#039;no&#039;) and false or true<br /> local show_sets = yesno(Args[&#039;show_sets&#039;] or &#039;yes&#039;)<br /> local show_setpoints = yesno(Args[&#039;show_setpoints&#039;] or &#039;yes&#039;)<br /> local setpoints_first = yesno(Args[&#039;setpoints_before_sets&#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;Team&#039;..VTE_text) -- Team col<br /> if show_played then<br /> tt = p_sub.colhead(tt,28,&#039;&lt;abbr title=&quot;Played&quot;&gt;Pld&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 /> tt = p_sub.colhead(tt,28,&#039;&lt;abbr title=&quot;Points&quot;&gt;Pts&lt;/abbr&gt;&#039;) -- Points col<br /> <br /> if full_table then<br /> if setpoints_first then<br /> if show_setpoints then<br /> tt = p_sub.colhead(tt,32,&#039;&lt;abbr title=&quot;Setpoints won&quot;&gt;SPW&lt;/abbr&gt;&#039;) -- Setpoints won col<br /> tt = p_sub.colhead(tt,32,&#039;&lt;abbr title=&quot;Setpoints lost&quot;&gt;SPL&lt;/abbr&gt;&#039;) -- Setpoints lost col<br /> tt = p_sub.colhead(tt,36,&#039;&lt;abbr title=&quot;Setpoint ratio&quot;&gt;SPR&lt;/abbr&gt;&#039;) -- Setpoint ratio col<br /> end<br /> if show_sets then<br /> tt = p_sub.colhead(tt,28,&#039;&lt;abbr title=&quot;Sets won&quot;&gt;SW&lt;/abbr&gt;&#039;) -- Sets won col<br /> tt = p_sub.colhead(tt,28,&#039;&lt;abbr title=&quot;Sets lost&quot;&gt;SL&lt;/abbr&gt;&#039;) -- Sets lost col<br /> tt = p_sub.colhead(tt,36,&#039;&lt;abbr title=&quot;Set ratio&quot;&gt;SR&lt;/abbr&gt;&#039;) -- Set ratio col<br /> end<br /> else<br /> if show_sets then<br /> tt = p_sub.colhead(tt,28,&#039;&lt;abbr title=&quot;Sets won&quot;&gt;SW&lt;/abbr&gt;&#039;) -- Sets won col<br /> tt = p_sub.colhead(tt,28,&#039;&lt;abbr title=&quot;Sets lost&quot;&gt;SL&lt;/abbr&gt;&#039;) -- Sets lost col<br /> tt = p_sub.colhead(tt,36,&#039;&lt;abbr title=&quot;Set ratio&quot;&gt;SR&lt;/abbr&gt;&#039;) -- Set ratio col<br /> end<br /> if show_setpoints then<br /> tt = p_sub.colhead(tt,32,&#039;&lt;abbr title=&quot;Setpoints won&quot;&gt;SPW&lt;/abbr&gt;&#039;) -- Setpoints won col<br /> tt = p_sub.colhead(tt,32,&#039;&lt;abbr title=&quot;Setpoints lost&quot;&gt;SPL&lt;/abbr&gt;&#039;) -- Setpoints lost col<br /> tt = p_sub.colhead(tt,36,&#039;&lt;abbr title=&quot;Setpoint ratio&quot;&gt;SPR&lt;/abbr&gt;&#039;) -- Setpoint ratio col<br /> end<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 bwin_points = tonumber(Args[&#039;bwinpoints&#039;]) or 3<br /> local swin_points = tonumber(Args[&#039;swinpoints&#039;]) or 2<br /> local sloss_points = tonumber(Args[&#039;slosspoints&#039;]) or 1<br /> local bloss_points = tonumber(Args[&#039;blosspoints&#039;]) or 0<br /> <br /> -- Get some input<br /> local bigwins = tonumber(Args[&#039;bwin_&#039;..team_code_ii]) or 0<br /> local smallwins = tonumber(Args[&#039;swin_&#039;..team_code_ii]) or 0<br /> local biglosses = tonumber(Args[&#039;bloss_&#039;..team_code_ii]) or 0<br /> local smallosses = tonumber(Args[&#039;sloss_&#039;..team_code_ii]) or 0<br /> local setswon = tonumber(Args[&#039;sw_&#039;..team_code_ii]) or 0<br /> local setslost = tonumber(Args[&#039;sl_&#039;..team_code_ii]) or 0<br /> local setpointswon = tonumber(Args[&#039;spw_&#039;..team_code_ii]) or 0<br /> local setpointslost = tonumber(Args[&#039;spl_&#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 = bigwins + smallwins + biglosses + smallosses<br /> local points = bwin_points*bigwins + swin_points*smallwins + sloss_points*smallosses + bloss_points*biglosses + s_pts<br /> local wins = bigwins + smallwins<br /> local losses = biglosses + smallosses<br /> <br /> -- Optional automatic calculation of wins, losses, sets won, and sets lost<br /> local auto_sets = false<br /> for k=3,5 do<br /> local wink = tonumber(Args[&#039;win&#039;..k..&#039;s_&#039;..team_code_ii]) or 0<br /> local lossk = tonumber(Args[&#039;loss&#039;..k..&#039;s_&#039;..team_code_ii]) or 0<br /> if (wink &gt; 0) or (lossk &gt; 0) then<br /> auto_sets = true<br /> end<br /> wins = wins + wink<br /> setswon = setswon + 3*wink<br /> setslost = setslost + (k-3)*wink<br /> points = points + ((k == 5) and swin_points or bwin_points)*wink<br /> <br /> losses = losses + lossk <br /> setslost = setslost + 3*lossk<br /> setswon = setswon + (k-3)*lossk<br /> points = points + ((k == 5) and sloss_points or bloss_points)*lossk<br /> <br /> matches = matches + wink + lossk<br /> end<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 games played, sets, and setpoints<br /> local show_played = yesno(Args[&#039;hide_played&#039;] or &#039;no&#039;) and false or true<br /> local show_sets = yesno(Args[&#039;show_sets&#039;] or &#039;yes&#039;)<br /> local show_setpoints = yesno(Args[&#039;show_setpoints&#039;] or &#039;yes&#039;)<br /> local setpoints_first = yesno(Args[&#039;setpoints_before_sets&#039;] or &#039;no&#039;)<br /> <br /> -- Set ratio<br /> local sratio<br /> if setslost == 0 then<br /> sratio = setswon &gt; 0 and &#039;MAX&#039; or &#039;&amp;mdash;&#039;<br /> else<br /> sratio = mm._precision_format(setswon / setslost, 3)<br /> end<br /> <br /> -- Setpoint ratio<br /> local spratio<br /> if setpointslost == 0 then<br /> spratio = setpointswon &gt; 0 and &#039;MAX&#039; or &#039;&amp;mdash;&#039;<br /> else<br /> spratio = mm._precision_format(setpointswon / setpointslost, 3)<br /> end<br /> <br /> -- Now that we are done calculating, show actual input values<br /> if tonumber(Args[&#039;bwin_&#039;..team_code_ii] or 0) == nil or tonumber(Args[&#039;swin_&#039;..team_code_ii] or 0) == nil then<br /> wins = &#039;&amp;mdash;&#039;<br /> end<br /> if tonumber(Args[&#039;bloss_&#039;..team_code_ii] or 0) == nil or tonumber(Args[&#039;sloss_&#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 /> if auto_sets == false then<br /> setswon = numorval(Args[&#039;sw_&#039;..team_code_ii])<br /> setslost = numorval(Args[&#039;sl_&#039;..team_code_ii])<br /> end<br /> setpointswon = numorval(Args[&#039;spw_&#039;..team_code_ii])<br /> setpointslost = numorval(Args[&#039;spl_&#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 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 /> <br /> if full_table then<br /> if setpoints_first then<br /> if show_setpoints then<br /> table.insert(t,&#039;| style=&quot;&#039;..ii_fw..bg_col..&#039;&quot; |&#039;..setpointswon..&#039;\n&#039;) -- SPW<br /> table.insert(t,&#039;| style=&quot;&#039;..ii_fw..bg_col..&#039;&quot; |&#039;..setpointslost..&#039;\n&#039;) -- SPL<br /> table.insert(t,&#039;| style=&quot;&#039;..ii_fw..bg_col..&#039;&quot; |&#039;..spratio..&#039;\n&#039;) -- Setpoint ratio<br /> end<br /> if show_sets then<br /> table.insert(t,&#039;| style=&quot;&#039;..ii_fw..bg_col..&#039;&quot; |&#039;..setswon..&#039;\n&#039;) -- SW<br /> table.insert(t,&#039;| style=&quot;&#039;..ii_fw..bg_col..&#039;&quot; |&#039;..setslost..&#039;\n&#039;) -- SL<br /> table.insert(t,&#039;| style=&quot;&#039;..ii_fw..bg_col..&#039;&quot; |&#039;..sratio..&#039;\n&#039;) -- Set ratio<br /> end<br /> else<br /> if show_sets then<br /> table.insert(t,&#039;| style=&quot;&#039;..ii_fw..bg_col..&#039;&quot; |&#039;..setswon..&#039;\n&#039;) -- SW<br /> table.insert(t,&#039;| style=&quot;&#039;..ii_fw..bg_col..&#039;&quot; |&#039;..setslost..&#039;\n&#039;) -- SL<br /> table.insert(t,&#039;| style=&quot;&#039;..ii_fw..bg_col..&#039;&quot; |&#039;..sratio..&#039;\n&#039;) -- Set ratio<br /> end<br /> if show_setpoints then<br /> table.insert(t,&#039;| style=&quot;&#039;..ii_fw..bg_col..&#039;&quot; |&#039;..setpointswon..&#039;\n&#039;) -- SPW<br /> table.insert(t,&#039;| style=&quot;&#039;..ii_fw..bg_col..&#039;&quot; |&#039;..setpointslost..&#039;\n&#039;) -- SPL<br /> table.insert(t,&#039;| style=&quot;&#039;..ii_fw..bg_col..&#039;&quot; |&#039;..spratio..&#039;\n&#039;) -- Setpoint ratio<br /> end<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> Marcus Cyron