View source for Module:Episode table
Jump to navigation
Jump to search
You do not have permission to edit this page, for the following reason:
You can view and copy the source of this page.
-- This module implements {{Episode table}} and {{Episode table/part}}.
local HTMLcolor = mw.loadData( 'Module:Color contrast/colors' )
--------------------------------------------------------------------------------
-- EpisodeTable class
-- The main class.
--------------------------------------------------------------------------------
local contrast_ratio = require('Module:Color contrast')._ratio
local EpisodeTable = {}
function EpisodeTable.cell(background, width, text, reference)
local cell = mw.html.create('th')
-- Cell
cell:attr('scope','col')
:css('background',background or '#CCCCFF')
:css('width',width ~= '' and width .. '%' or nil)
:wikitext(text)
000
1:0
Template used on this page:
Return to Module:Episode table.