https://de.wikipedia.org/w/index.php?action=history&feed=atom&title=Module%3ASports_table%2FsubModul:Sports table/sub - Versionsgeschichte2025-05-01T05:11:40ZVersionsgeschichte dieser Seite in WikipediaMediaWiki 1.44.0-wmf.25https://de.wikipedia.org/w/index.php?title=Modul:Sports_table/sub&diff=145762423&oldid=prevTruddel: 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=='auto' then<br />
head_string = '! scope="col" |'..text..'\n'<br />
else<br />
head_string = '! scope="col" width='..width..'|'..text..'\n'<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['hth_'..hth_local] then<br />
-- Option 1<br />
-- Now define the identifier for this<br />
hth_id = '"table_hth_'..team_code_ii..rand_val..'"' -- 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 = 'efn', args = { group='Table_notes', 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 >= ii_start) and (hth_local_num <= ii_end)) then<br />
-- Option 2a<br />
hth_id = '"table_hth_'..hth_local..rand_val..'"'<br />
hth_string = frame:extensionTag{ name = 'ref', args = { group = 'lower-alpha', name = hth_id} }<br />
else<br />
-- Option 2b<br />
hth_id = '"table_hth_'..hth_local..rand_val..'"' -- Add random end for unique ID<br />
hth_id_list[hth_local] = hth_id<br />
-- Call refn template<br />
hth_string = frame:expandTemplate{ title = 'efn', args = { group='Table_notes', name=hth_id, Args['hth_'..hth_local]} }<br />
end<br />
end<br />
else<br />
hth_string = '';<br />
end<br />
<br />
return {str=hth_string, list=hth_id_list, notes_exist=notes_exist}<br />
end<br />
<br />
return ppp</div>Truddel