Content deleted Content added
No edit summary |
m Nielsen is only for US; improve "references?" display |
||
Line 177:
-- Axis labels
local countryDisplayUS, countryDisplayUK, countryDisplayOther
if args.country == "U.S." or args.country == "United States" then countryDisplayUS = 'U.S.'
elseif args.country == "U.K." or args.country == "United Kingdom" then countryDisplayUK = 'U.K.'
else countryDisplayOther = args.country
end
end
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:" .. (
-- If there's a title, add it with the viewers caption, else just display the viewers caption by itself
if args.title ~= nil and args.title ~= '' then
root:wikitext("'''''" .. args.title .. "''" .. frame:expandTemplate{ title = 'hsp' } ..
": " .. (
else
root:wikitext("'''Viewers per episode (" .. multiple .. ")'''")
Line 314 ⟶ 321:
:wikitext( '<small> References?</small>' )
if countryDisplayUS then
▲ if args.country == "U.S." or args.country == nil then
root:wikitext("<small>Source: [[Nielsen ratings|Nielsen Media Research]]</small>" .. (args.refs or tostring(span)))
else
|