Module:Television ratings graph: Difference between revisions

Content deleted Content added
Add country and axis labels.
Fix country
Line 168:
timeline = timeline .. "TextData =\n"
timeline = timeline .. " pos:(" .. ((args.width or 1000)/2-18) .. ",45) textcolor:black fontsize:S text:Episode\n"
timeline = timeline .. " pos:(10," .. ((args.height or 300)-10) .. ") textcolor:black fontsize:S text:" .. (args.country or "") .. (args.country and "v" or "V") .. "iewers (millions)\n"
-- Add timeline to div
Line 184:
if args.title ~= nil and args.title ~= '' then
rtable:tag('caption'):wikitext("''" .. args.title .. "''" .. frame:expandTemplate{ title = 'hsp' } ..
(args.country or "") .. ": " .. (args.country and "v" or "V") .. "iewers per episode (millions)")
else
rtable:tag('caption'):wikitext("Viewers per episode (millions)")