Module:Track listing: रिवीजन सभ के बीचा में अंतर

Content deleted Content added
change TrackListing:makeIntro to be in line with the current template
implement custom header widths
लाइन 140:
extra_column = true,
total_length = true,
title_width = true,
writing_width = true,
lyrics_width = true,
music_width = true,
extra_width = true,
}
 
Line 318 ⟶ 323:
:addClass('tlheader')
:attr('scope', 'col')
:css('width', self.title_width or titleColumnWidth)
:css('text-align', 'left')
:css('background-color', '#eee')
Line 324 ⟶ 329:
 
---- Optional headers: writer, lyrics, music, and extra
local function addOptionalHeader(field, headerText, width)
if self.optionalColumns[field] then
headerRow:tag('th')
:addClass('tlheader')
:attr('scope', 'col')
:css('width', width or optionalColumnWidth)
:css('text-align', 'left')
:css('background-color', '#eee')
Line 335 ⟶ 340:
end
end
addOptionalHeader('writer', 'Writer(s)', self.writing_width)
addOptionalHeader('lyrics', 'Lyrics', self.lyrics_width)
addOptionalHeader('music', 'Music', self.music_width)
addOptionalHeader(
'extra',
self.extra_column or '{{{extra_column}}}'),
self.extra_width
)
 
---- Track length