Difference between revisions of "Template:Track listing"

From Adam Lambert Live
Jump to navigation Jump to search
m (Protected "Template:Tracklist" ([edit=sysop] (indefinite) [move=sysop] (indefinite)))
m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{#if: {{{all_writing|}}}|All songs written and composed by {{{all_writing}}}.&nbsp;|{{#if: {{{all_lyrics|}}}|All lyrics written by {{{all_lyrics}}}{{#if: {{{all_music|}}}|,|.}}&nbsp;}}{{#if: {{{all_music|}}}|{{#if: {{{all_lyrics|}}}|a|A}}ll music composed by {{{all_music}}}.}}}}<div class="tracklist" style="margin: -1px 21em 0 0; {{#ifeq: {{{collapsed}}}|yes|border: #aaa 1px solid; padding: 3px|padding:4px}}"><table class="tracklist {{#ifeq: {{{collapsed}}}|yes|collapsible collapsed}}" cellpadding="0" style="width: 100%; border-width: 0px; border-collapse: collapse;">
+
{{#if: {{{all_writing|}}}|All songs written and composed by {{{all_writing}}}.&nbsp;|{{#if: {{{all_lyrics|}}}|All lyrics written by {{{all_lyrics}}}{{#if: {{{all_music|}}}|,|.}}&nbsp;}}{{#if: {{{all_music|}}}|{{#if: {{{all_lyrics|}}}|a|A}}ll music composed by {{{all_music}}}.}}}}<table class="tracklist {{#ifeq: {{{collapsed}}}|yes|collapsible collapsed}}" style="border-spacing: 0px; border-collapse: collapse; {{#ifeq: {{{collapsed}}}|yes|border: #aaa 1px solid; padding: 3px|padding:4px}}">
 
{{#if:{{{headline|}}} |
 
{{#if:{{{headline|}}} |
 
<tr>
 
<tr>
<th class="tlheader" colspan="10" style="text-align: left; background-color: #fff">{{{headline}}}</th>
+
<th class="tlheader mbox-text" colspan="10" style="text-align: left; background-color: #fff">{{{headline}}}</th><td class="mbox-empty-cell"></td>
 
</tr> |
 
</tr> |
 
{{#ifeq: {{{collapsed}}}|yes|
 
{{#ifeq: {{{collapsed}}}|yes|
 
<tr>
 
<tr>
<th class="tlheader" colspan="10" style="text-align: left; background-color: #fff">Track listing</th>
+
<th class="tlheader mbox-text" colspan="10" style="text-align: left; background-color: #fff">Track listing</th><td class="mbox-empty-cell"></td>
 
</tr>
 
</tr>
 
}}
 
}}
 
}}
 
}}
 
<tr>
 
<tr>
<th class="tlheader" style="width: 2em; padding-left: 10px; padding-right: 10px; text-align: right; background-color: #eee">No.</th>
+
<th class="tlheader" scope="col" style="width: 2em; padding-left: 10px; padding-right: 10px; text-align: right; background-color: #eee">No.</th>
<th class="tlheader" style="{{#switch: {{#expr: (0 + {{#ifeq: {{{writing_credits}}}|yes|1|{{#ifeq: {{{lyrics_credits}}}|yes|1|0}} + {{#ifeq: {{{music_credits}}}|yes|1|0}} }} + {{#if:{{{extra_column|}}}|1|0}}) }} | 0 = width: 100%; | 1 = width: 60%; | 2 = width: 40%; | 3 = width: 30%;}} text-align: left; background-color: #eee">Title</th>{{ #ifeq: {{{writing_credits}}}|yes|<th style="{{#switch: {{#expr: (1 + {{#if:{{{extra_column|}}}|1|0}}) }} | 1 = width: 40%; | 2 = width: 30%;}} text-align: left; background-color: #eee">Writer(s)</th>|{{ #ifeq: {{{lyrics_credits}}}|yes|<th style="{{#switch: {{#expr: (1 + {{#ifeq: {{{music_credits}}}|yes|1|0}} + {{#if:{{{extra_column|}}}|1|0}}) }} | 1 = width: 40%; | 2 = width: 30%; | 3 = width: 20%;}} text-align: left; background-color: #eee">Lyrics</th>}}{{ #ifeq: {{{music_credits}}}|yes|<th style="{{#switch: {{#expr: (1 + {{#ifeq: {{{lyrics_credits}}}|yes|1|0}} + {{#if:{{{extra_column|}}}|1|0}}) }} | 1 = width: 40%; | 2 = width: 30%; | 3 = width: 20%;}} text-align: left; background-color: #eee">Music</th>}}}}{{#if:{{{extra_column|}}}|<th style="{{#switch: {{#expr: (1 + {{#ifeq: {{{writing_credits}}}|yes|1|{{#ifeq: {{{lyrics_credits}}}|yes|1|0}} + {{#ifeq: {{{music_credits}}}|yes|1|0}}}})}} | 1 = width: 40%; | 2 = width: 30%; | 3 = width: 20%;}} text-align: left; background-color: #eee">{{{extra_column}}}</th>}}
+
<th class="tlheader" scope="col" style="{{#switch: {{#expr: (0 + {{#ifeq: {{{writing_credits}}}|yes|1|{{#ifeq: {{{lyrics_credits}}}|yes|1|0}} + {{#ifeq: {{{music_credits}}}|yes|1|0}} }} + {{#if:{{{extra_column|}}}|1|0}}) }} | 0 = width: 100%; | 1 = width: 60%; | 2 = width: 40%; | 3 = width: 30%;}} text-align: left; background-color: #eee">Title</th>{{ #ifeq: {{{writing_credits}}}|yes|<th class="tlheader" scope="col" style="{{#switch: {{#expr: (1 + {{#if:{{{extra_column|}}}|1|0}}) }} | 1 = width: 40%; | 2 = width: 30%;}} text-align: left; background-color: #eee">Writer(s)</th>|{{ #ifeq: {{{lyrics_credits}}}|yes|<th class="tlheader" scope="col" style="{{#switch: {{#expr: (1 + {{#ifeq: {{{music_credits}}}|yes|1|0}} + {{#if:{{{extra_column|}}}|1|0}}) }} | 1 = width: 40%; | 2 = width: 30%; | 3 = width: 20%;}} text-align: left; background-color: #eee">Lyrics</th>}}{{ #ifeq: {{{music_credits}}}|yes|<th class="tlheader" scope="col" style="{{#switch: {{#expr: (1 + {{#ifeq: {{{lyrics_credits}}}|yes|1|0}} + {{#if:{{{extra_column|}}}|1|0}}) }} | 1 = width: 40%; | 2 = width: 30%; | 3 = width: 20%;}} text-align: left; background-color: #eee">Music</th>}}}}{{#if:{{{extra_column|}}}|<th class="tlheader" scope="col" style="{{#switch: {{#expr: (1 + {{#ifeq: {{{writing_credits}}}|yes|1|{{#ifeq: {{{lyrics_credits}}}|yes|1|0}} + {{#ifeq: {{{music_credits}}}|yes|1|0}}}})}} | 1 = width: 40%; | 2 = width: 30%; | 3 = width: 20%;}} text-align: left; background-color: #eee">{{{extra_column}}}</th>}}
<th class="tlheader" style="width: 4em; padding-right: 10px; text-align: right; background-color: #eee">Length</th>
+
<th class="tlheader" scope="col" style="width: 4em; padding-right: 10px; text-align: right; background-color: #eee">Length</th>
 +
<td class="mbox-empty-cell"></td>
 
</tr>
 
</tr>
{{Tracklist/Track|color=#fff|lyrics_credits={{{lyrics_credits|}}}|music_credits={{{music_credits|}}}|writing_credits={{{writing_credits|}}}|extra_column={{{extra_column|}}}|1|{{{title1|}}}|{{{note1|}}}|{{{length1|}}}|{{{lyrics1|}}}|{{{music1|}
+
{{Track listing/Track|color=#f7f7f7|lyrics_credits={{{lyrics_credits|}}}|music_credits={{{music_credits|}}}|writing_credits={{{writing_credits|}}}|extra_column={{{extra_column|}}}|0|{{{title0|}}}|{{{note0|}}}|{{{length0|}}}|{{{lyrics0|}}}|{{{music0|}}}|{{{writer0|}}}|{{{extra0|}}}}
 
{{#if:{{{total_length|}}} |
 
{{#if:{{{total_length|}}} |
 
<tr>
 
<tr>
 
<td align="right" colspan="{{#expr: (2 + {{#ifeq: {{{writing_credits}}}|yes|1|{{#ifeq: {{{lyrics_credits}}}|yes|1|0}} + {{#ifeq: {{{music_credits}}}|yes|1|0}}  }} + {{#if:{{{extra_column|}}}|1|0}}) }}"><div style="width: 7.5em; text-align: left; padding-left: 10px; background-color: #eee; margin: 0;">'''Total length:'''</div></td>
 
<td align="right" colspan="{{#expr: (2 + {{#ifeq: {{{writing_credits}}}|yes|1|{{#ifeq: {{{lyrics_credits}}}|yes|1|0}} + {{#ifeq: {{{music_credits}}}|yes|1|0}}  }} + {{#if:{{{extra_column|}}}|1|0}}) }}"><div style="width: 7.5em; text-align: left; padding-left: 10px; background-color: #eee; margin: 0;">'''Total length:'''</div></td>
 
<td style="padding-right: 10px; text-align: right; background-color: #eee;">'''{{{total_length}}}'''</td>
 
<td style="padding-right: 10px; text-align: right; background-color: #eee;">'''{{{total_length}}}'''</td>
 +
<td class="mbox-empty-cell"></td>
 
</tr>
 
</tr>
}}</table></div>
+
}}</table><noinclude>
 +
{{documentation}} <!-- please put interwiki links on the /doc subpage! -->
 +
</noinclude>

Latest revision as of 09:03, 20 April 2015

No. Title Length

Template:Documentation