Mòdul:Episode table: diferència entre les revisions

Contingut suprimit Contingut afegit
Cap resum de modificació
Cap resum de modificació
Etiqueta: Revertida
Línia 73:
local white_cr = contrast_ratio{'white', args.c or '#CCCCFF', ['error'] = 0}
local partTypes = {
local displaytext = (not args.nopart and 'Part ' or '') .. (args.p or '')
{'acte','Acte'},
{'capítol','Capítol'},
{'part','Part'},
{'volum','Volum'},
{'setmana','setmana'},
}
local displaytext = ''
local isAnyPartSet = false
for k,v in pairs(partTypes) do
if args[v[1]] then
isAnyPartSet = true
displaytext = v[2] .. ' ' .. args[v[1]]
end
end
if args.subtitle then
local displaytext = (notdisplaytext args.nopart. ((isAnyPartSet and 'Part: ' or '') .. (args.p or ''subtitle)
end
 
local plainText = require('Module:Plain text')._main
local displayTextAnchor = plainText(displaytext)
row:tag('td')
Linha 86 ⟶ 108:
end
 
function EpisodeTable.new(frame,args)
args = args or {}
local categories = ''