Module:Episode list: Difference between revisions

Content deleted Content added
Jackmcbarn (talk | contribs)
Give a better error for an invalid month
Matching default colour of table headers
Tag: Reverted
Line 732:
local function getLineColor(args)
-- Default color to light blue
local lineColor = args.LineColor or 'CCCCFFEAECF0'
 
-- Add # to color if necessary, and set to default color if invalid
Line 738:
lineColor = '#' .. (mw.ustring.match(lineColor, '^[%s#]*([a-fA-F0-9]*)[%s]*$') or '')
if (lineColor == '#') then
lineColor = '#CCCCFFEAECF0'
end
end
Line 875:
-- |Aux4= — optional; General purpose parameter. The meaning is specified by the column header.
-- |ShortSummary= — optional; A short 100–200 word plot summary of the episode.
-- |LineColor= — optional; Colors the separator line between episode entries. If not defined the color defaults to "#CCCCFFEAECF0"
and the article is placed in Category:Episode list using the default LineColor.
Use of "#", or anything but a valid hex code will result in an invalid syntax.