Module:Sports table: Difference between revisions

Content deleted Content added
Forward parameters
Copy more result note options from sandbox
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
if Args['note_res_'..result_local] then
notes_exist = true
local note_res_local = Args['note_res_'..result_local]
if not Args['note_res_'..note_res_local] then
note_id = '"table_note_res_'..result_local..rand_val..'"' -- Identifier
-- CheckIt whetherdoes itnot existspoint orto notanother result note
note_ref = 'res_'..result_local
if note_id_list[note_local] then
note_id = '"table_note_res_'..result_local..rand_val..'"' -- Identifier
-- It exists already
note_res_string = frame:extensionTag{ name = 'ref', args = { group = 'lower-alpha', name = note_id} }
else
-- It doesn'tdoes existpoint yetto another result note
note_ref = 'res_'..note_res_local
note_res_string = frame:expandTemplate{ title = 'efn', args = { group='Table_notes', name=note_id, Args['note_res_'..result_local]} }
note_id = '"table_note_res_'..note_res_local..rand_val..'"' -- Identifier
end
-- Check whether it is already printed
if not note_id_list[note_localnote_ref] then
-- Print it
note_id_list[note_ref] = note_id
note_res_string = frame:expandTemplate{ title = 'efn', args = { group='Table_notes', name=note_id, Args['note_res_'..result_local]note_res_local} }
else
-- Refer to it
note_res_string = frame:extensionTag{ name = 'ref', args = { group = 'lower-alpha', name = note_id} }
end
else