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&diff=202698437&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&diff=202698360&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('Module:Yesno')<br />
<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_played = yesno(Args['hide_played'] or 'no') and false or true<br />
local show_sets = yesno(Args['show_sets'] or 'yes')<br />
local show_setpoints = yesno(Args['show_setpoints'] or 'yes')<br />
local setpoints_first = yesno(Args['setpoints_before_sets'] 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,'Team'..VTE_text) -- Team col<br />
if show_played then<br />
tt = p_sub.colhead(tt,28,'<abbr title="Played">Pld</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 />
tt = p_sub.colhead(tt,28,'<abbr title="Points">Pts</abbr>') -- 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,'<abbr title="Setpoints won">SPW</abbr>') -- Setpoints won col<br />
tt = p_sub.colhead(tt,32,'<abbr title="Setpoints lost">SPL</abbr>') -- Setpoints lost col<br />
tt = p_sub.colhead(tt,36,'<abbr title="Setpoint ratio">SPR</abbr>') -- Setpoint ratio col<br />
end<br />
if show_sets then<br />
tt = p_sub.colhead(tt,28,'<abbr title="Sets won">SW</abbr>') -- Sets won col<br />
tt = p_sub.colhead(tt,28,'<abbr title="Sets lost">SL</abbr>') -- Sets lost col<br />
tt = p_sub.colhead(tt,36,'<abbr title="Set ratio">SR</abbr>') -- Set ratio col<br />
end<br />
else<br />
if show_sets then<br />
tt = p_sub.colhead(tt,28,'<abbr title="Sets won">SW</abbr>') -- Sets won col<br />
tt = p_sub.colhead(tt,28,'<abbr title="Sets lost">SL</abbr>') -- Sets lost col<br />
tt = p_sub.colhead(tt,36,'<abbr title="Set ratio">SR</abbr>') -- Set ratio col<br />
end<br />
if show_setpoints then<br />
tt = p_sub.colhead(tt,32,'<abbr title="Setpoints won">SPW</abbr>') -- Setpoints won col<br />
tt = p_sub.colhead(tt,32,'<abbr title="Setpoints lost">SPL</abbr>') -- Setpoints lost col<br />
tt = p_sub.colhead(tt,36,'<abbr title="Setpoint ratio">SPR</abbr>') -- 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('Module:Math')<br />
local yesno = require('Module:Yesno')<br />
<br />
-- Get custom/default options for in table<br />
local bwin_points = tonumber(Args['bwinpoints']) or 3<br />
local swin_points = tonumber(Args['swinpoints']) or 2<br />
local sloss_points = tonumber(Args['slosspoints']) or 1<br />
local bloss_points = tonumber(Args['blosspoints']) or 0<br />
<br />
-- Get some input<br />
local bigwins = tonumber(Args['bwin_'..team_code_ii]) or 0<br />
local smallwins = tonumber(Args['swin_'..team_code_ii]) or 0<br />
local biglosses = tonumber(Args['bloss_'..team_code_ii]) or 0<br />
local smallosses = tonumber(Args['sloss_'..team_code_ii]) or 0<br />
local setswon = tonumber(Args['sw_'..team_code_ii]) or 0<br />
local setslost = tonumber(Args['sl_'..team_code_ii]) or 0<br />
local setpointswon = tonumber(Args['spw_'..team_code_ii]) or 0<br />
local setpointslost = tonumber(Args['spl_'..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 = 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['win'..k..'s_'..team_code_ii]) or 0<br />
local lossk = tonumber(Args['loss'..k..'s_'..team_code_ii]) or 0<br />
if (wink > 0) or (lossk > 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['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 games played, sets, and setpoints<br />
local show_played = yesno(Args['hide_played'] or 'no') and false or true<br />
local show_sets = yesno(Args['show_sets'] or 'yes')<br />
local show_setpoints = yesno(Args['show_setpoints'] or 'yes')<br />
local setpoints_first = yesno(Args['setpoints_before_sets'] or 'no')<br />
<br />
-- Set ratio<br />
local sratio<br />
if setslost == 0 then<br />
sratio = setswon > 0 and 'MAX' or '&mdash;'<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 > 0 and 'MAX' or '&mdash;'<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['bwin_'..team_code_ii] or 0) == nil or tonumber(Args['swin_'..team_code_ii] or 0) == nil then<br />
wins = '&mdash;'<br />
end<br />
if tonumber(Args['bloss_'..team_code_ii] or 0) == nil or tonumber(Args['sloss_'..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 />
if auto_sets == false then<br />
setswon = numorval(Args['sw_'..team_code_ii])<br />
setslost = numorval(Args['sl_'..team_code_ii])<br />
end<br />
setpointswon = numorval(Args['spw_'..team_code_ii])<br />
setpointslost = numorval(Args['spl_'..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 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 />
<br />
if full_table then<br />
if setpoints_first then<br />
if show_setpoints then<br />
table.insert(t,'| style="'..ii_fw..bg_col..'" |'..setpointswon..'\n') -- SPW<br />
table.insert(t,'| style="'..ii_fw..bg_col..'" |'..setpointslost..'\n') -- SPL<br />
table.insert(t,'| style="'..ii_fw..bg_col..'" |'..spratio..'\n') -- Setpoint ratio<br />
end<br />
if show_sets then<br />
table.insert(t,'| style="'..ii_fw..bg_col..'" |'..setswon..'\n') -- SW<br />
table.insert(t,'| style="'..ii_fw..bg_col..'" |'..setslost..'\n') -- SL<br />
table.insert(t,'| style="'..ii_fw..bg_col..'" |'..sratio..'\n') -- Set ratio<br />
end<br />
else<br />
if show_sets then<br />
table.insert(t,'| style="'..ii_fw..bg_col..'" |'..setswon..'\n') -- SW<br />
table.insert(t,'| style="'..ii_fw..bg_col..'" |'..setslost..'\n') -- SL<br />
table.insert(t,'| style="'..ii_fw..bg_col..'" |'..sratio..'\n') -- Set ratio<br />
end<br />
if show_setpoints then<br />
table.insert(t,'| style="'..ii_fw..bg_col..'" |'..setpointswon..'\n') -- SPW<br />
table.insert(t,'| style="'..ii_fw..bg_col..'" |'..setpointslost..'\n') -- SPL<br />
table.insert(t,'| style="'..ii_fw..bg_col..'" |'..spratio..'\n') -- 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='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>
Marcus Cyron