https://de.wikipedia.org/w/index.php?action=history&feed=atom&title=Module%3ASports_table%2Fsub Modul:Sports table/sub - Versionsgeschichte 2025-05-01T05:11:40Z Versionsgeschichte dieser Seite in Wikipedia MediaWiki 1.44.0-wmf.25 https://de.wikipedia.org/w/index.php?title=Modul:Sports_table/sub&diff=145762423&oldid=prev Truddel: AZ: Die Seite wurde neu angelegt: -- Subfunctions for this module that are called from the style modules local ppp = {} function ppp.co… 2015-09-05T23:03:57Z <p><a href="/wiki/Hilfe:Zusammenfassung_und_Quellen#Auto-Zusammenfassung" title="Hilfe:Zusammenfassung und Quellen">AZ</a>: Die Seite wurde neu angelegt: -- Subfunctions for this module that are called from the style modules local ppp = {} function ppp.co…</p> <p><b>Neue Seite</b></p><div>-- Subfunctions for this module that are called from the style modules<br /> local ppp = {}<br /> <br /> function ppp.colhead(ttt,width,text)<br /> -- For individual column headers<br /> local head_string<br /> if width==&#039;auto&#039; then<br /> head_string = &#039;! scope=&quot;col&quot; |&#039;..text..&#039;\n&#039;<br /> else<br /> head_string = &#039;! scope=&quot;col&quot; width=&#039;..width..&#039;|&#039;..text..&#039;\n&#039;<br /> end<br /> <br /> ttt.count = ttt.count+1<br /> table.insert(ttt.tab_text,head_string)<br /> <br /> return ttt<br /> end<br /> <br /> function ppp.hth(frame,Args,full_table,hth_id_list,hth_local,notes_exist,team_list,team_code_ii,ii_start,ii_end,rand_val)<br /> -- For head-to-head notes<br /> local hth_string,hth_local_num, hth_id<br /> <br /> -- Check whether there is a head-to-head note or not, if so get text ready for it the same way as for the notes<br /> if hth_local and full_table then<br /> -- Set global check for notes to true<br /> notes_exist = true<br /> if not Args[&#039;hth_&#039;..hth_local] then<br /> -- Option 1<br /> -- Now define the identifier for this<br /> hth_id = &#039;&quot;table_hth_&#039;..team_code_ii..rand_val..&#039;&quot;&#039; -- Add random end for unique ID if more tables are present on article (which might otherwise share an ID)<br /> hth_id_list[team_code_ii] = hth_id<br /> -- Call refn template<br /> hth_string = frame:expandTemplate{ title = &#039;efn&#039;, args = { group=&#039;Table_notes&#039;, name=hth_id, hth_local} }<br /> else <br /> -- Option 2<br /> hth_local_num = team_list[hth_local]<br /> if hth_id_list[hth_local] or ((hth_local_num &gt;= ii_start) and (hth_local_num &lt;= ii_end)) then<br /> -- Option 2a<br /> hth_id = &#039;&quot;table_hth_&#039;..hth_local..rand_val..&#039;&quot;&#039;<br /> hth_string = frame:extensionTag{ name = &#039;ref&#039;, args = { group = &#039;lower-alpha&#039;, name = hth_id} }<br /> else<br /> -- Option 2b<br /> hth_id = &#039;&quot;table_hth_&#039;..hth_local..rand_val..&#039;&quot;&#039; -- Add random end for unique ID<br /> hth_id_list[hth_local] = hth_id<br /> -- Call refn template<br /> hth_string = frame:expandTemplate{ title = &#039;efn&#039;, args = { group=&#039;Table_notes&#039;, name=hth_id, Args[&#039;hth_&#039;..hth_local]} }<br /> end<br /> end<br /> else<br /> hth_string = &#039;&#039;;<br /> end<br /> <br /> return {str=hth_string, list=hth_id_list, notes_exist=notes_exist}<br /> end<br /> <br /> return ppp</div> Truddel