Module:Sports table: Difference between revisions

Content deleted Content added
enable results for Chess
optional title_source or table_header_source, and optional float= for 1993 Football League First Division play-off Final
Line 146:
VTE_text = mw.ustring.gsub(VTE_text, '<%/?abbr[^<>]*>', ' ')
end
end
-- Add source to title if specified and possible
local title_source = false
if Args['title'] and Args['title_source'] then
Args['title'] = Args['title'] .. Args['title_source']
title_source = true
elseif Args['table_header'] and Args['table_header_source'] then
Args['table_header'] = Args['table_header'] .. Args['table_header_source']
title_source = true
end
 
Line 495 ⟶ 505:
local update = Args['update'] or 'unknown'
local start_date = Args['start_date'] or 'unknown'
local source = Args['source'] or (title_source == true and '')
or frame:expandTemplate{ title = 'citation needed', args = { reason='No source parameter defined', date=os.date('%B %Y') } }
local class_rules = Args['class_rules'] or nil
Line 521 ⟶ 532:
if footer_break and (not (string.lower(update)=='complete')) then table.insert(t_footer,stack_string) end
if source ~= '' then
table.insert(t_footer,'Source: '..source)
end
if class_rules and full_table and show_class_rules then
table.insert(t_footer,'<br>Rules for classification: '..class_rules)
Line 602 ⟶ 615:
else
table.insert(t, '[[Category:Pages using sports table with notracking]]')
end
if Args['float'] then
return '<templatestyles src="Stack/styles.css"/>' ..
'<div class="mw-stack stack-container stack-clear-' .. Args['float'] ..
' mobile-float-reset">\n' .. table.concat(t) .. '</div>'
end