Module:Episode list: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 82:
end
local function add_title()
if Title and args.Title then
local title_string = '"'..args.Title..'"'
if args.RTitle then
title_string = title_string..RTitle
end
if args.AltTitle then
title_string = title_string..'"'..args.AltTitle..'"'
end
if args.RAltTitle then
title_string = title_string..RAltTitle
end
Title:wikitext return(title_string)
end
end
 
for _,v in ipairs(cell_names) do
if args[v] then
nonnil_params = nonnil_params + 1
td_tags[v] = mw.html.create('td')
:wikitext(args[v])
if args[v] == 'Title' then
td_tags[v]:wikitext(add_title())
else
td_tags[v]:wikitext(args[v])
end
table_row:node(td_tags[v])
end
Line 92 ⟶ 115:
if ProdCode and args.ProdCode then
ProdCode:attr('id','pc'..args.ProdCode)
end
if Title and args.Title then
local title_string = '"'..args.Title..'"'
if args.RTitle then
title_string = title_string..RTitle
end
if args.AltTitle then
title_string = title_string..'"'..AltTitle..'"'
end
if args.RAltTitle then
title_string = title_string..RAltTitle
end
Title:wikitext(title_string)
end