Difference between revisions of "Template:Tracklist"

From Highway 0, the Kentucky Route Zero wiki
Jump to navigation Jump to search
Line 1: Line 1:
<includeonly><table cellpadding="0" style="width: 100%; border-width: 0px; border-collapse: collapse;">
+
<includeonly><table cellpadding="0" style="width: 100%; border: 1px solid #d5d5d5; border-collapse: collapse;">
 
{{#if: {{{title|}}}|<th style="text-align: center; background-color: #d5d5d5;" colspan="3">''{{{title | Album title}}}''</th>}}
 
{{#if: {{{title|}}}|<th style="text-align: center; background-color: #d5d5d5;" colspan="3">''{{{title | Album title}}}''</th>}}
 
+
<tr>
 
<table cellpadding="0" style="width: calc(100% - {{{artwidth|200}}}px); -moz-width: calc(100% - {{{artwidth|200}}}px); -webkit-width: calc(100% - {{{artwidth|200}}}px); border-width: 0px; border-collapse: collapse; float: left;">
 
<table cellpadding="0" style="width: calc(100% - {{{artwidth|200}}}px); -moz-width: calc(100% - {{{artwidth|200}}}px); -webkit-width: calc(100% - {{{artwidth|200}}}px); border-width: 0px; border-collapse: collapse; float: left;">
 
<tr style="text-align: left; background-color: #eee;>
 
<tr style="text-align: left; background-color: #eee;>
Line 21: Line 21:
  
 
<table cellpadding="0" style="width: {{{artwidth|200}}}px; border-width: 0px; border-collapse: collapse; float: left;">
 
<table cellpadding="0" style="width: {{{artwidth|200}}}px; border-width: 0px; border-collapse: collapse; float: left;">
<tr style="display: inline;">
+
<tr>
 
[[File:{{{albumart}}}|{{{artwidth|200}}}px]]
 
[[File:{{{albumart}}}|{{{artwidth|200}}}px]]
 
</tr>
 
</tr>
 
</table>
 
</table>
 
+
</tr>
 
</table></includeonly>
 
</table></includeonly>
 
<noinclude>
 
<noinclude>

Revision as of 08:09, 13 September 2018


Example

Kentucky Route Zero, Act III
No. Title Length
1. "Xanadu"   2:44
2. "Weird Vector"   3:06
3. "Hall of the Mountain King"   3:37
4. "Too Late to Love You"   6:14
5. "What Would You Give" (by The Bedquilt Ramblers) 3:30
Act III soundtrack album art.jpg


Usage

{{Tracklist
| title    = Album title
| albumart = File.jpg
| artwidth = (default: 200)
| title1   = Track 1
| length1  = 1:11
| title2   = Track 2
| length2  = 2:22
...
| title10  = Track 10
| length10 = 10:10
}}