Module:Sports table: Difference between revisions

Content deleted Content added
Copy more result note options from sandbox
Fix result note issue
Line 329:
if not bg_col then bg_col = 'background-color:transparent;' end -- Becomes default if undefined
-- Check for notes
local note_res_string, note_ref, note_text
if Args['note_res_'..result_local] then
notes_exist = true
Line 337:
note_ref = 'res_'..result_local
note_id = '"table_note_res_'..result_local..rand_val..'"' -- Identifier
note_text = note_res_local
else
-- It does point to another result note
note_ref = 'res_'..note_res_local
note_id = '"table_note_res_'..note_res_local..rand_val..'"' -- Identifier
note_text = Args['note_res_'..note_res_local]
end
-- Check whether it is already printed
Line 346 ⟶ 348:
-- Print it
note_id_list[note_ref] = note_id
note_res_string = frame:expandTemplate{ title = 'efn', args = { group='Table_notes', name=note_id, note_res_localnote_text} }
else
-- Refer to it