Template:Track listing total length: Difference between revisions
Randombell (talk | contribs) Created page with "<includeonly>{{#expr: {{If empty | {{String split| {{{1|}}} | sep=: | idx=1 }} | 0 }} + {{If empty | {{String split| {{{2|}}} | sep=: | idx=1 }} | 0 }} + {{If empty | {{String split| {{{3|}}} | sep=: | idx=1 }} | 0 }} + {{If empty | {{String split| {{{4|}}} | sep=: | idx=1 }} | 0 }} + {{If empty | {{String split| {{{5|}}} | sep=: | idx=1 }} | 0 }} + {{If empty | {{String split| {{{6|}}} | sep=: | idx=1 }} | 0 }} + {{If empty | {{String split| {{{7|}}} | sep=: | id..." |
(No difference)
|
Latest revision as of 13:17, 18 August 2025
Usage
The purpose of the {{Track listing total length}} template is to calculate the total length of the track lengths passed as parameters, when passed in standarized format (i.e. MM:SS). The template does not input or output the inclusion of hours (i.e. no H:MM:SS formats). Up to 20 track times can be passed into the template; however, given that the template itself returns a standarized format timestamp, the results can then be nested if the total time of more than 20 track times is required.
Examples
- Standard timestamp entries
{{Track listing total length|2:16|3:26|2:33|3:39|3:06|1:09|6:57|8:43|3:50|4:01|3:28|3:56|4:11|3:06}}
Expression error: Unrecognized punctuation character "[".:Expression error: Unrecognized punctuation character "[".
- Timestamp entries and nested template
{{Track listing total length|2:16|3:26|2:33|3:39|3:06|1:09|6:57|8:43|3:50|4:01|3:28|3:56|4:11|3:06|
{{Track listing total length|2:47|3:55|7:33|5:06|3:59|7:26|5:18|4:48|6:06}}
}}
Expression error: Unrecognized punctuation character "[".:Expression error: Unrecognized punctuation character "[".
- Purely nested templates
{{Track listing total length|
{{Track listing total length|2:16|3:26|2:33|3:39|3:06|1:09|6:57|8:43|3:50|4:01|3:28|3:56|4:11|3:06}}|
{{Track listing total length|2:47|3:55|7:33|5:06|3:59|7:26|5:18|4:48|6:06}}|
{{Track listing total length|6:54|2:52|7:00|6:38|3:20|5:40|4:34|2:37|6:02|7:47|7:17|3:30|6:11|7:20}}
}}
Expression error: Unrecognized punctuation character "[".:Expression error: Unrecognized punctuation character "[".