Difference between revisions of "Template:Track listing"

Jump to navigation Jump to search
2,890 bytes removed ,  13:01, 6 October 2020
Refactor completely.
(Tables are a pain in the ass, tbh)
(Refactor completely.)
Line 1: Line 1:
{| class="track-listing"  
+
<table class="track-listing">
{{#if: {{{headline|}}} | {{!}}+ {{{headline}}} }}
+
{{#if: {{{headline|}}} | <caption>{{{headline}}}</caption> }}
|-
+
<tr>
! scope="col" class="track-listing__heading track-listing__no" | <abbr title="Number">No.</abbr>
+
<th scope="col" class="track-listing__heading track-listing__no"><abbr title="Number">No.</abbr></th>
! scope="col" class="track-listing__heading" | Title
+
<th scope="col" class="track-listing__heading">Title</th>
{{#if: {{{extra_column|}}} | ! scope="col" class="track-listing__heading" {{!}} {{{extra_column}}} }}
+
{{#if: {{{extra_column|}}} | <th scope="col" class="track-listing__heading">{{{extra_column}}}</th> }}
! scope="col" class="track-listing__heading track-listing__length" | Length  
+
<th scope="col" class="track-listing__heading track-listing__length">Length </th>
{{#if: {{{title1|}}} |  
+
</tr>
{{!}}-
+
{{ Track listing/Track|1|{{{track1|}}}|{{{note1|}}}|{{{length1|}}}|{{{extra1|}}}|extra_column={{{extra_column|}}} }}
{{!}} class="track-listing__no" {{!}} {{{number1|1.}}}
+
{{ Track listing/Track|2|{{{track2|}}}|{{{note2|}}}|{{{length2|}}}|{{{extra2|}}}|extra_column={{{extra_column|}}} }}
{{!}} "{{{title1}}}" {{#if: {{{note1|}}} {{!}} ({{{note1}}}) }}
+
{{ Track listing/Track|3|{{{track3|}}}|{{{note3|}}}|{{{length3|}}}|{{{extra3|}}}|extra_column={{{extra_column|}}} }}
{{#if: {{{extra_column|}}} | {{!}} {{{extra1|}}} }}
+
{{ Track listing/Track|4|{{{track4|}}}|{{{note4|}}}|{{{length4|}}}|{{{extra4|}}}|extra_column={{{extra_column|}}} }}
{{!}} class="track-listing__length" {{!}} {{{length1|}}}
+
{{ Track listing/Track|5|{{{track5|}}}|{{{note5|}}}|{{{length5|}}}|{{{extra5|}}}|extra_column={{{extra_column|}}} }}
}}
+
{{ Track listing/Track|6|{{{track6|}}}|{{{note6|}}}|{{{length6|}}}|{{{extra6|}}}|extra_column={{{extra_column|}}} }}
{{#if: {{{title2|}}} |  
+
{{ Track listing/Track|7|{{{track7|}}}|{{{note7|}}}|{{{length7|}}}|{{{extra7|}}}|extra_column={{{extra_column|}}} }}
{{!}}-
+
{{ Track listing/Track|8|{{{track8|}}}|{{{note8|}}}|{{{length8|}}}|{{{extra8|}}}|extra_column={{{extra_column|}}} }}
{{!}} class="track-listing__no" {{!}} {{{number2|2.}}}
+
{{ Track listing/Track|9|{{{track9|}}}|{{{note9|}}}|{{{length9|}}}|{{{extra9|}}}|extra_column={{{extra_column|}}} }}
{{!}} "{{{title2}}}" {{#if: {{{note2|}}} {{!}} ({{{note2}}}) }}
+
{{ Track listing/Track|10|{{{track10|}}}|{{{note10|}}}|{{{length10|}}}|{{{extra10|}}}|extra_column={{{extra_column|}}} }}
{{#if: {{{extra_column|}}} | {{!}} {{{extra2|}}} }}
+
{{ Track listing/Track|11|{{{track11|}}}|{{{note11|}}}|{{{length11|}}}|{{{extra11|}}}|extra_column={{{extra_column|}}} }}
{{!}} class="track-listing__length" {{!}} {{{length2|}}}
+
{{ Track listing/Track|12|{{{track12|}}}|{{{note12|}}}|{{{length12|}}}|{{{extra12|}}}|extra_column={{{extra_column|}}} }}
}}
+
{{ Track listing/Track|13|{{{track13|}}}|{{{note13|}}}|{{{length13|}}}|{{{extra13|}}}|extra_column={{{extra_column|}}} }}
{{#if: {{{title3|}}} |  
+
{{ Track listing/Track|14|{{{track14|}}}|{{{note14|}}}|{{{length14|}}}|{{{extra14|}}}|extra_column={{{extra_column|}}} }}
{{!}}-
+
{{ Track listing/Track|15|{{{track15|}}}|{{{note15|}}}|{{{length15|}}}|{{{extra15|}}}|extra_column={{{extra_column|}}} }}
{{!}} class="track-listing__no" {{!}} {{{number3|3.}}}
+
{{ Track listing/Track|16|{{{track16|}}}|{{{note16|}}}|{{{length16|}}}|{{{extra16|}}}|extra_column={{{extra_column|}}} }}
{{!}} "{{{title3}}}" {{#if: {{{note3|}}} {{!}} ({{{note3}}}) }}
+
{{ Track listing/Track|17|{{{track17|}}}|{{{note17|}}}|{{{length17|}}}|{{{extra17|}}}|extra_column={{{extra_column|}}} }}
{{#if: {{{extra_column|}}} | {{!}} {{{extra3|}}} }}
+
{{ Track listing/Track|18|{{{track18|}}}|{{{note18|}}}|{{{length18|}}}|{{{extra18|}}}|extra_column={{{extra_column|}}} }}
{{!}} class="track-listing__length" {{!}} {{{length3|}}}
+
{{ Track listing/Track|19|{{{track19|}}}|{{{note19|}}}|{{{length19|}}}|{{{extra19|}}}|extra_column={{{extra_column|}}} }}
}}
+
{{ Track listing/Track|20|{{{track20|}}}|{{{note20|}}}|{{{length20|}}}|{{{extra20|}}}|extra_column={{{extra_column|}}} }}
{{#if: {{{title4|}}} |  
+
</table><noinclude>
{{!}}-
 
{{!}} class="track-listing__no" {{!}} {{{number4|4.}}}
 
{{!}} "{{{title4}}}" {{#if: {{{note4|}}} {{!}} ({{{note4}}}) }}
 
{{#if: {{{extra_column|}}} | {{!}} {{{extra4|}}} }}
 
{{!}} class="track-listing__length" {{!}} {{{length4|}}}
 
}}
 
{{#if: {{{title5|}}} |  
 
{{!}}-
 
{{!}} class="track-listing__no" {{!}} {{{number5|5.}}}
 
{{!}} "{{{title5}}}" {{#if: {{{note5|}}} {{!}} ({{{note5}}}) }}
 
{{#if: {{{extra_column|}}} | {{!}} {{{extra5|}}} }}
 
{{!}} class="track-listing__length" {{!}} {{{length5|}}}
 
}}
 
{{#if: {{{title6|}}} |  
 
{{!}}-
 
{{!}} class="track-listing__no" {{!}} {{{number6|6.}}}
 
{{!}} "{{{title6}}}" {{#if: {{{note6|}}} {{!}} ({{{note6}}}) }}
 
{{#if: {{{extra_column|}}} | {{!}} {{{extra6|}}} }}
 
{{!}} class="track-listing__length" {{!}} {{{length6|}}}
 
}}
 
{{#if: {{{title7|}}} |  
 
{{!}}-
 
{{!}} class="track-listing__no" {{!}} {{{number7|7.}}}
 
{{!}} "{{{title1}}}" {{#if: {{{note7|}}} {{!}} ({{{note7}}}) }}
 
{{#if: {{{extra_column|}}} | {{!}} {{{extra7|}}} }}
 
{{!}} class="track-listing__length" {{!}} {{{length7|}}}
 
}}
 
{{#if: {{{title8|}}} |  
 
{{!}}-
 
{{!}} class="track-listing__no" {{!}} {{{number8|8.}}}
 
{{!}} "{{{title8}}}" {{#if: {{{note8|}}} {{!}} ({{{note8}}}) }}
 
{{#if: {{{extra_column|}}} | {{!}} {{{extra8|}}} }}
 
{{!}} class="track-listing__length" {{!}} {{{length8|}}}
 
}}
 
{{#if: {{{title9|}}} |
 
{{!}}-
 
{{!}} class="track-listing__no" {{!}} {{{number9|9.}}}
 
{{!}} "{{{title9}}}" {{#if: {{{note9|}}} {{!}} ({{{note9}}}) }}
 
{{#if: {{{extra_column|}}} | {{!}} {{{extra9|}}} }}
 
{{!}} class="track-listing__length" {{!}} {{{length9|}}}
 
}}
 
{{#if: {{{title10|}}} |
 
{{!}}-
 
{{!}} class="track-listing__no" {{!}} {{{number10|10.}}}
 
{{!}} "{{{title10}}}" {{#if: {{{note10|}}} {{!}} ({{{note10}}}) }}
 
{{#if: {{{extra_column|}}} | {{!}} {{{extra10|}}} }}
 
{{!}} class="track-listing__length" {{!}} {{{length10|}}}
 
}}
 
{{#if: {{{title11|}}} |
 
{{!}}-
 
{{!}} class="track-listing__no" {{!}} {{{number11|11.}}}
 
{{!}} "{{{title11}}}" {{#if: {{{note11|}}} {{!}} ({{{note11}}}) }}
 
{{#if: {{{extra_column|}}} | {{!}} {{{extra11|}}} }}
 
{{!}} class="track-listing__length" {{!}} {{{length11|}}}
 
}}
 
{{#if: {{{title12|}}} |
 
{{!}}-
 
{{!}} class="track-listing__no" {{!}} {{{number12|12.}}}
 
{{!}} "{{{title12}}}" {{#if: {{{note12|}}} {{!}} ({{{note12}}}) }}
 
{{#if: {{{extra_column|}}} | {{!}} {{{extra12|}}} }}
 
{{!}} class="track-listing__length" {{!}} {{{length12|}}}
 
}}
 
{{#if: {{{title13|}}} |
 
{{!}}-
 
{{!}} class="track-listing__no" {{!}} {{{number13|13.}}}
 
{{!}} "{{{title13}}}" {{#if: {{{note13|}}} {{!}} ({{{note13}}}) }}
 
{{#if: {{{extra_column|}}} | {{!}} {{{extra13|}}} }}
 
{{!}} class="track-listing__length" {{!}} {{{length13|}}}
 
}}
 
{{#if: {{{title14|}}} |
 
{{!}}-
 
{{!}} class="track-listing__no" {{!}} {{{number14|14.}}}
 
{{!}} "{{{title14}}}" {{#if: {{{note14|}}} {{!}} ({{{note14}}}) }}
 
{{#if: {{{extra_column|}}} | {{!}} {{{extra14|}}} }}
 
{{!}} class="track-listing__length" {{!}} {{{length14|}}}
 
}}
 
{{#if: {{{title15|}}} |
 
{{!}}-
 
{{!}} class="track-listing__no" {{!}} {{{number15|15.}}}
 
{{!}} "{{{title15}}}" {{#if: {{{note15|}}} {{!}} ({{{note15}}}) }}
 
{{#if: {{{extra_column|}}} | {{!}} {{{extra15|}}} }}
 
{{!}} class="track-listing__length" {{!}} {{{length15|}}}
 
}}
 
{{#if: {{{title16|}}} |
 
{{!}}-
 
{{!}} class="track-listing__no" {{!}} {{{number16|16.}}}
 
{{!}} "{{{title16}}}" {{#if: {{{note16|}}} {{!}} ({{{note16}}}) }}
 
{{#if: {{{extra_column|}}} | {{!}} {{{extra16|}}} }}
 
{{!}} class="track-listing__length" {{!}} {{{length16|}}}
 
}}
 
{{#if: {{{title17|}}} |
 
{{!}}-
 
{{!}} class="track-listing__no" {{!}} {{{number17|17.}}}
 
{{!}} "{{{title17}}}" {{#if: {{{note17|}}} {{!}} ({{{note17}}}) }}
 
{{#if: {{{extra_column|}}} | {{!}} {{{extra17|}}} }}
 
{{!}} class="track-listing__length" {{!}} {{{length17|}}}
 
}}
 
{{#if: {{{title18|}}} |
 
{{!}}-
 
{{!}} class="track-listing__no" {{!}} {{{number18|18.}}}
 
{{!}} "{{{title18}}}" {{#if: {{{note18|}}} {{!}} ({{{note18}}}) }}
 
{{#if: {{{extra_column|}}} | {{!}} {{{extra18|}}} }}
 
{{!}} class="track-listing__length" {{!}} {{{length18|}}}
 
}}
 
{{#if: {{{title19|}}} |
 
{{!}}-
 
{{!}} class="track-listing__no" {{!}} {{{number19|19.}}}
 
{{!}} "{{{title19}}}" {{#if: {{{note19|}}} {{!}} ({{{note19}}}) }}
 
{{#if: {{{extra_column|}}} | {{!}} {{{extra19|}}} }}
 
{{!}} class="track-listing__length" {{!}} {{{length19|}}}
 
}}
 
{{#if: {{{title20|}}} |
 
{{!}}-
 
{{!}} class="track-listing__no" {{!}} {{{number20|20.}}}
 
{{!}} "{{{title20}}}" {{#if: {{{note20|}}} {{!}} ({{{note20}}}) }}
 
{{#if: {{{extra_column|}}} | {{!}} {{{extra20|}}} }}
 
{{!}} class="track-listing__length" {{!}} {{{length20|}}}
 
}}
 
|-
 
|}<noinclude>
 
 
{{Documentation}}</noinclude>
 
{{Documentation}}</noinclude>

Navigation menu