https://de.wikipedia.org/w/index.php?action=history&feed=atom&title=Module%3ASports_results
Modul:Sports results - Versionsgeschichte
2025-05-24T08:14:11Z
Versionsgeschichte dieser Seite in Wikipedia
MediaWiki 1.45.0-wmf.2
https://de.wikipedia.org/w/index.php?title=Modul:Sports_results&diff=248991346&oldid=prev
Darkking3: Vorlage citation needed in de.wp nicht vorhanden
2024-09-29T12:54:49Z
<p>Vorlage citation needed in de.wp nicht vorhanden</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 29. September 2024, 14:54 Uhr</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Zeile 219:</td>
<td colspan="2" class="diff-lineno">Zeile 219:</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> or 'unknown'</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> or 'unknown'</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 source = Args['source']</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 source = Args['source']</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> or frame:expandTemplate{ title = 'citation needed',</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> or <ins style="font-weight: bold; text-decoration: none;">'unknown'</ins></div></td>
</tr>
<tr>
<td colspan="2" class="diff-empty diff-side-deleted"></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><ins style="font-weight: bold; text-decoration: none;"> --</ins>frame:expandTemplate{ title = 'citation needed',</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> args = { reason='No source parameter defined', date=os.date('%B %Y') } }</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> <ins style="font-weight: bold; text-decoration: none;">--</ins>args = { reason='No source parameter defined', date=os.date('%B %Y') } }</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;"><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> -- Create footer text</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> -- Create footer text</div></td>
</tr>
</table>
Darkking3
https://de.wikipedia.org/w/index.php?title=Modul:Sports_results&diff=248991300&oldid=prev
Darkking3: Modul aus en:Special:PermaLink/1166034694 aktualisiert
2024-09-29T12:52:53Z
<p>Modul aus <a href="https://en.wikipedia.org/wiki/Special:PermaLink/1166034694" class="extiw" title="en:Special:PermaLink/1166034694">en:Special:PermaLink/1166034694</a> aktualisiert</p>
<a href="//de.wikipedia.org/w/index.php?title=Modul:Sports_results&diff=248991300&oldid=145762433">Änderungen zeigen</a>
Darkking3
https://de.wikipedia.org/w/index.php?title=Modul:Sports_results&diff=145762433&oldid=prev
Truddel: AZ: Die Seite wurde neu angelegt: -- Module to build results cross-tables for standings in Sports -- See documentation for details req…
2015-09-05T23:05:01Z
<p><a href="/wiki/Hilfe:Zusammenfassung_und_Quellen#Auto-Zusammenfassung" title="Hilfe:Zusammenfassung und Quellen">AZ</a>: Die Seite wurde neu angelegt: -- Module to build results cross-tables for standings in Sports -- See documentation for details req…</p>
<p><b>Neue Seite</b></p><div>-- Module to build results cross-tables for standings in Sports<br />
-- See documentation for details<br />
<br />
require('Module:No Globals')<br />
<br />
local p = {}<br />
<br />
-- Main function<br />
function p.main(frame)<br />
-- Declare locals<br />
local Args = frame.args<br />
local N_teams = 0<br />
local t = {}<br />
local t_footer = {}<br />
local t_return = {}<br />
local team_list = {}<br />
local ii, ii_fw, bg_col, team_name, team_code_ii<br />
<br />
-- Load some other modules<br />
local p_sub = require('Module:Sports table/sub')<br />
<br />
-- Read in number of consecutive teams (ignore entries after skipping a spot)<br />
while Args['team'..N_teams+1] ~= nil do<br />
N_teams = N_teams+1<br />
-- Sneakily add it twice to the team_list parameter, once for the actual<br />
-- ranking, the second for position lookup in sub-tables<br />
-- This is possible because Lua allows both numbers and strings as indices.<br />
team_list[N_teams] = Args['team'..N_teams] -- i^th entry is team X<br />
team_list[Args['team'..N_teams]] = N_teams -- team X entry is position i<br />
end<br />
<br />
-- Get team to show<br />
local ii_show = team_list[Args['showteam']] -- nil if non-existant<br />
<br />
-- Create header<br />
-- Open table<br />
table.insert(t,'{|class="wikitable" style="text-align:center;"\n') <br />
-- First column<br />
t_return.count = 0 -- Dummy parameter, using subfunction call seems best at this point because both module are intertwined<br />
t_return.tab_text = t -- Actual text<br />
t_return = p_sub.colhead(t_return,'auto','Home \\ Away') <br />
-- Other columns passed to subfunction<br />
t_return = p.header(t_return,Args,p_sub,N_teams,team_list)<br />
t = t_return.tab_text<br />
<br />
-- Now create individual rows<br />
for ii=1,N_teams do<br />
-- Get team info<br />
team_code_ii = team_list[ii]<br />
team_name = Args['name_'..team_code_ii] or team_code_ii<br />
<br />
-- Team names<br />
table.insert(t,'|- \n') -- New row<br />
table.insert(t,'! scope="row" style="text-align: right;"| '..team_name..'\n') -- Position number<br />
<br />
-- Then individual results<br />
t = p.row(t,Args,N_teams,team_list,ii,ii_show)<br />
end<br />
<br />
-- Close table<br />
table.insert(t, '|}\n')<br />
<br />
-- Get info for footer<br />
local update = Args['update'] or 'unknown'<br />
local start_date = Args['start_date'] or 'unknown'<br />
local source = Args['source'] or frame:expandTemplate{ title = 'citation needed', args = { reason='No source parameter defined', date=os.date('%B %Y') } }<br />
<br />
-- Create footer text<br />
-- Date updating<br />
if string.lower(update)=='complete' then<br />
-- Do nothing<br />
elseif update=='' then<br />
-- Empty parameter<br />
table.insert(t_footer,'Updated to match(es) played on unknown. ')<br />
elseif string.lower(update)=='future' then<br />
-- Future start date<br />
table.insert(t_footer,'First match(es) will be played on '..start_date..'. ')<br />
else<br />
table.insert(t_footer,'Updated to match(es) played on '..update..'. ')<br />
end<br />
table.insert(t_footer,'Source: '..source)<br />
-- As reflist size text<br />
t_footer = '<div class="reflist">'..table.concat(t_footer)..'</div>'<br />
-- Add footer to main text table<br />
table.insert(t,t_footer)<br />
<br />
return table.concat(t)<br />
end<br />
<br />
-- Other functions<br />
function p.header(tt,Args,p_sub,N_teams,team_list)<br />
local ii, team_code_ii, short_name<br />
<br />
-- Set match column width<br />
local col_width = Args['match_col_width'] or '28'<br />
<br />
-- Get some default values in case it doesn't start at 1<br />
local top_pos = tonumber(Args['highest_pos']) or 1<br />
<br />
for ii=top_pos,N_teams do<br />
team_code_ii = team_list[ii]<br />
short_name = Args['short_'..team_code_ii] or team_code_ii<br />
tt = p_sub.colhead(tt,col_width,short_name)<br />
end<br />
<br />
return tt<br />
end<br />
<br />
function p.row(tt,Args,N_teams,team_list,ii,ii_show)<br />
-- Note ii is the row number being shown<br />
local jj, fw, bg, result, team_code_ii, team_code_jj<br />
local cell_bold = false<br />
<br />
team_code_ii = team_list[ii]<br />
<br />
-- Get some default values in case it doesn't start at 1<br />
local top_pos = tonumber(Args['highest_pos']) or 1<br />
<br />
for jj=top_pos,N_teams do<br />
if ii == jj then<br />
-- Solid cell<br />
if ii==ii_show then cell_bold = true else cell_bold = false end<br />
fw = cell_bold and 'font-weight: bold;' or 'font-weight: normal;'<br />
bg = 'background-color:transparent;'<br />
table.insert(tt,'| style="'..fw..bg..'" | &mdash;\n')<br />
else<br />
-- Content cell<br />
-- Set bolding and background<br />
if ii==ii_show or jj == ii_show then cell_bold = true else cell_bold = false end<br />
fw = cell_bold and 'font-weight: bold;' or 'font-weight: normal;'<br />
bg = 'background-color:transparent;'<br />
<br />
-- Now for the actual result<br />
team_code_jj = team_list[jj]<br />
result = Args['match_'..team_code_ii..'_'..team_code_jj] or ''<br />
table.insert(tt,'| style="white-space:nowrap;'..fw..bg..'" |'..result..'\n')<br />
end<br />
end<br />
<br />
return tt<br />
end<br />
<br />
return p</div>
Truddel