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&amp;diff=248991300&amp;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(&#039;Module:No Globals&#039;)<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(&#039;Module:Sports table/sub&#039;)<br /> <br /> -- Read in number of consecutive teams (ignore entries after skipping a spot)<br /> while Args[&#039;team&#039;..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[&#039;team&#039;..N_teams] -- i^th entry is team X<br /> team_list[Args[&#039;team&#039;..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[&#039;showteam&#039;]] -- nil if non-existant<br /> <br /> -- Create header<br /> -- Open table<br /> table.insert(t,&#039;{|class=&quot;wikitable&quot; style=&quot;text-align:center;&quot;\n&#039;) <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,&#039;auto&#039;,&#039;Home \\ Away&#039;) <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[&#039;name_&#039;..team_code_ii] or team_code_ii<br /> <br /> -- Team names<br /> table.insert(t,&#039;|- \n&#039;) -- New row<br /> table.insert(t,&#039;! scope=&quot;row&quot; style=&quot;text-align: right;&quot;| &#039;..team_name..&#039;\n&#039;) -- 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, &#039;|}\n&#039;)<br /> <br /> -- Get info for footer<br /> local update = Args[&#039;update&#039;] or &#039;unknown&#039;<br /> local start_date = Args[&#039;start_date&#039;] or &#039;unknown&#039;<br /> local source = Args[&#039;source&#039;] or frame:expandTemplate{ title = &#039;citation needed&#039;, args = { reason=&#039;No source parameter defined&#039;, date=os.date(&#039;%B %Y&#039;) } }<br /> <br /> -- Create footer text<br /> -- Date updating<br /> if string.lower(update)==&#039;complete&#039; then<br /> -- Do nothing<br /> elseif update==&#039;&#039; then<br /> -- Empty parameter<br /> table.insert(t_footer,&#039;Updated to match(es) played on unknown. &#039;)<br /> elseif string.lower(update)==&#039;future&#039; then<br /> -- Future start date<br /> table.insert(t_footer,&#039;First match(es) will be played on &#039;..start_date..&#039;. &#039;)<br /> else<br /> table.insert(t_footer,&#039;Updated to match(es) played on &#039;..update..&#039;. &#039;)<br /> end<br /> table.insert(t_footer,&#039;Source: &#039;..source)<br /> -- As reflist size text<br /> t_footer = &#039;&lt;div class=&quot;reflist&quot;&gt;&#039;..table.concat(t_footer)..&#039;&lt;/div&gt;&#039;<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[&#039;match_col_width&#039;] or &#039;28&#039;<br /> <br /> -- Get some default values in case it doesn&#039;t start at 1<br /> local top_pos = tonumber(Args[&#039;highest_pos&#039;]) or 1<br /> <br /> for ii=top_pos,N_teams do<br /> team_code_ii = team_list[ii]<br /> short_name = Args[&#039;short_&#039;..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&#039;t start at 1<br /> local top_pos = tonumber(Args[&#039;highest_pos&#039;]) 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 &#039;font-weight: bold;&#039; or &#039;font-weight: normal;&#039;<br /> bg = &#039;background-color:transparent;&#039;<br /> table.insert(tt,&#039;| style=&quot;&#039;..fw..bg..&#039;&quot; | &amp;mdash;\n&#039;)<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 &#039;font-weight: bold;&#039; or &#039;font-weight: normal;&#039;<br /> bg = &#039;background-color:transparent;&#039;<br /> <br /> -- Now for the actual result<br /> team_code_jj = team_list[jj]<br /> result = Args[&#039;match_&#039;..team_code_ii..&#039;_&#039;..team_code_jj] or &#039;&#039;<br /> table.insert(tt,&#039;| style=&quot;white-space:nowrap;&#039;..fw..bg..&#039;&quot; |&#039;..result..&#039;\n&#039;)<br /> end<br /> end<br /> <br /> return tt<br /> end<br /> <br /> return p</div> Truddel