Difference between revisions of "Template:Track listing/Track"

From Bronies.wiki
Jump to navigation Jump to search
(Check if track name, note or length is set before rendering out row)
(Remove duplicate code. Add missing code. Feel a bit silly.)
 
Line 5: Line 5:
 
   | Untitled
 
   | Untitled
 
}}{{#if: {{{3|}}}
 
}}{{#if: {{{3|}}}
   | <small>({{{3}}})</small>
+
   | &#32;<small>({{{3}}})</small>
 
}}</td>
 
}}</td>
 
{{#if: {{{extra_column|}}}
 
{{#if: {{{extra_column|}}}
Line 13: Line 13:
 
   }}</td>
 
   }}</td>
 
}}
 
}}
<td>{{#if: {{{4|}}}
+
<td class="track-listing__length">{{#if: {{{4|}}}
 
   | {{{4}}}
 
   | {{{4}}}
 
   | &nbsp;
 
   | &nbsp;
Line 20: Line 20:
 
{{documentation}}  
 
{{documentation}}  
 
</noinclude>
 
</noinclude>
 
<includeonly>{{ #if: {{{2|}}}{{{3|}}}{{{4|}}} | <tr style="background-color: {{{color}}};">
 
  <td style="padding-right: 10px; text-align: right; vertical-align: top;">{{{1}}}.</td>
 
  <td style="text-align: left; vertical-align: top;">{{ #if: {{{2|}}} | "{{{2}}}" | Untitled }} {{ #if: {{{3|}}} | <span style="font-size:85%;">({{{3}}})</span> | &nbsp; }}</td>{{ #ifeq: {{{writing_credits}}}|yes| <td style="vertical-align: top;">{{ #if: {{{7|}}} | {{{7}}}| &nbsp; }}</td>|{{ #ifeq: {{{lyrics_credits}}}|yes| <td style="vertical-align: top;">{{ #if: {{{5|}}} | {{{5}}} | &nbsp; }}</td>}}{{ #ifeq: {{{music_credits}}}|yes| <td style="vertical-align: top;">{{ #if: {{{6|}}} | {{{6}}} | &nbsp; }}</td>}}}}{{ #if: {{{extra_column|}}}| <td style="vertical-align: top;">{{ #if: {{{8|}}} | {{{8}}}| &nbsp; }}</td>}}
 
  <td style="padding-right: 10px; text-align: right; vertical-align: top;">{{ #if: {{{4|}}} | {{{4}}} | &nbsp; }}</td>
 
</tr>
 
}}
 

Latest revision as of 13:03, 6 October 2020

This documentation is transcluded from Template:Track listing/Track/doc and needs to be edited separately.

Template:Track listing/Track/doc