Jump to content

Module:Episode table and Module:Episode table/sandbox: Difference between pages

(Difference between pages)
Page 1
Page 2
Content deleted Content added
nobold parameter
 
No edit summary
 
Line 103: Line 103:
:css('background-color', args.c or '#CCCCFF')
:css('background-color', args.c or '#CCCCFF')
:css('color', black_cr > white_cr and 'black' or 'white')
:css('color', black_cr > white_cr and 'black' or 'white')
:wikitext((args.nobold and displaytext or "'''" .. displaytext .. "'''") .. (args.r and " " .. EpisodeTable.reference(args.r, args.c) or ''))
:wikitext("'''" .. displaytext .. "'''" .. (args.r and " " .. EpisodeTable.reference(args.r, args.c) or ''))
return tostring(row)
return tostring(row)
Line 154: Line 154:
-- If a visible caption isn't defined, then default to the screenreader-only caption
-- If a visible caption isn't defined, then default to the screenreader-only caption
root:tag('caption'):wikitext(frame:expandTemplate{title='Screen reader-only',args={args.caption}})
root:tag('caption'):wikitext(frame:expandTemplate{title='Screen reader-only',args={args.caption}})
end
if args.before then
root:node(args.before)
end
end
Line 222: Line 226:
end
end
end
end



local templateStyles = mw.getCurrentFrame():extensionTag{
local templateStyles = mw.getCurrentFrame():extensionTag{