Module:Track listing/configuration: Difference between revisions
Appearance
Content deleted Content added
remove terminal punctuation per talk page; including references or terminal punctuation in the parameter value causes punctuation problems. Feel free to do this is a more sophisticated way if desired. |
add full stops where needed. |
||
Line 39: | Line 39: | ||
more_than_60_minutes = "Invalid track length '%s' (if hours are specified, the number of minutes must be less than 60)", |
more_than_60_minutes = "Invalid track length '%s' (if hours are specified, the number of minutes must be less than 60)", |
||
more_than_60_seconds = "Invalid track length '%s' (number of seconds must be less than 60)", |
more_than_60_seconds = "Invalid track length '%s' (number of seconds must be less than 60)", |
||
tracks_written = 'All tracks are written by %s', |
tracks_written = 'All tracks are written by %s.', |
||
lyrics_written_music_composed = 'All lyrics are written by $1; all music is composed by $2', |
lyrics_written_music_composed = 'All lyrics are written by $1; all music is composed by $2.', |
||
lyrics_written = 'All lyrics are written by %s', |
lyrics_written = 'All lyrics are written by %s.', |
||
music_composed = 'All music is composed by %s', |
music_composed = 'All music is composed by %s.', |
||
track_listing_error = '<strong class="error">Track listing error: %s</strong>', |
track_listing_error = '<strong class="error">Track listing error: %s</strong>', |
||
deprecated_collapsed = 'Deprecated collapsed parameter in use', |
deprecated_collapsed = 'Deprecated collapsed parameter in use.', |
||
title = 'Title', |
title = 'Title', |
||
number = 'Number', |
number = 'Number', |
Revision as of 08:22, 14 April 2025
![]() | This Lua module is used on approximately 116,000 pages. To avoid major disruption and server load, any changes should be tested in the module's /sandbox or /testcases subpages, or in your own module sandbox. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them. |
![]() | This module is used by one or more bots in their standard operation. Any breaking changes to this module, including moving it or nominating it for deletion, must be communicated in advance to the bot operator(s). The relevant bots are: User:cewbot/log/20201008/configuration. |
Usage
{{#invoke:Track listing/configuration|function_name}}
return {
show_warnings = false,
input_error_category = 'Track listings with input errors',
collapsed_parameter_category = 'Track listings that use the collapsed parameter ',
deprecated_parameter_category = 'Track listings with deprecated parameters',
track_field_names = {
number = true,
title = true,
note = true,
length = true,
lyrics = true,
music = true,
writer = true,
extra = true,
},
track_listing_field_names = {
width = true,
headline = true,
all_writing = true,
all_lyrics = true,
all_music = true,
extra_column = true,
total_length = true,
title_width = true,
writing_width = true,
lyrics_width = true,
music_width = true,
extra_width = true,
category = true,
},
deprecated_track_listing_field_names = {
writing_credits = true,
lyrics_credits = true,
music_credits = true,
},
leading_0_in_hours = "Invalid time '%s' (times in format 'h:mm:ss' cannot start with zero)",
leading_0_in_minutes = "Invalid time '%s' (times in format 'mm:ss' cannot start with zero)",
not_a_time = "Invalid time '%s' (times must be in a format of 'm:ss', 'mm:ss' or 'h:mm:ss')",
more_than_60_minutes = "Invalid track length '%s' (if hours are specified, the number of minutes must be less than 60)",
more_than_60_seconds = "Invalid track length '%s' (number of seconds must be less than 60)",
tracks_written = 'All tracks are written by %s.',
lyrics_written_music_composed = 'All lyrics are written by $1; all music is composed by $2.',
lyrics_written = 'All lyrics are written by %s.',
music_composed = 'All music is composed by %s.',
track_listing_error = '<strong class="error">Track listing error: %s</strong>',
deprecated_collapsed = 'Deprecated collapsed parameter in use.',
title = 'Title',
number = 'Number',
number_abbr = 'No.',
track_listing = 'Track listing',
writer = 'Writer(s)',
lyrics = 'Lyrics',
music = 'Music',
extra = '{{{extra_column}}}',
length = 'Length',
blank_cell = ' ',
track_title = '"%s"',
untitled = 'Untitled',
note = ' (%s)',
track_id = 'track%d',
number_terminated = '%d.',
total_length = 'Total length:'
}