Module:Episode list: Difference between revisions

Content deleted Content added
Matching default colour of table headers
Tag: Reverted
Undid revision 986665012 by Alex 21 (talk) Temporary restore.
Line 732:
local function getLineColor(args)
-- Default color to light blue
local lineColor = args.LineColor or 'EAECF0CCCCFF'
 
-- 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 = '#EAECF0CCCCFF'
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 "#EAECF0CCCCFF"
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.