Anonymous user
Module:Episode table: Difference between revisions
Created page with "-- This module implements {{Episode table}} and {{Episode table/part}}. local HTMLcolor = mw.loadData( 'Module:Color contrast/colors' ) -------------------------------------..."
Vivaporius (talk | contribs) m (1 revision imported) |
en>Centrist16 (Created page with "-- This module implements {{Episode table}} and {{Episode table/part}}. local HTMLcolor = mw.loadData( 'Module:Color contrast/colors' ) -------------------------------------...") |
||
Line 56:
local row = mw.html.create('tr')
local black_cr = contrast_ratio{args
local white_cr = contrast_ratio{'white', args
local displaytext = (not args.nopart and 'Part ' or '') .. (args
row:tag('td')
:attr('colspan',13)
:css('text-align','center')
:css('background-color', args
:css('color', black_cr > white_cr and 'black' or 'white')
:wikitext("'''" .. frame:expandTemplate({title='Visible anchor',args={displaytext}}) .. "'''" .. (args.r
return tostring(row)
|