Difference between revisions of "Template:TrackListEntry"

From Video Game Music Preservation Foundation Wiki
Jump to: navigation, search
(New templates for track lists)
 
m (Fix typos)
Line 91: Line 91:
 
</noinclude>
 
</noinclude>
 
   <tr itemscope itemtype="http://schema.org/MusicRecording">
 
   <tr itemscope itemtype="http://schema.org/MusicRecording">
     <td>{{#if:{{{Track|}}} | {{{ZeroPad|{{{Track}}}}} | ? }}</td>
+
     <td>{{#if:{{{Track|}}} | {{ZeroPad|{{{Track}}}}} | ? }}</td>
 
     <td itemprop="name">[[{{{TitleLink|{{{Title}}}}}}|{{{Title}}}]]</td>{{#if:{{{Extra1|}}}|
 
     <td itemprop="name">[[{{{TitleLink|{{{Title}}}}}}|{{{Title}}}]]</td>{{#if:{{{Extra1|}}}|
 
     <td>{{{Extra1}}}</td>}}{{#if:{{{Extra2|}}}|
 
     <td>{{{Extra1}}}</td>}}{{#if:{{{Extra2|}}}|
Line 103: Line 103:
 
     <td>{{{Extra6}}}</td>}}{{#if:{{{Extra7|}}}|
 
     <td>{{{Extra6}}}</td>}}{{#if:{{{Extra7|}}}|
 
     <td>{{{Extra7}}}</td>}}
 
     <td>{{{Extra7}}}</td>}}
     <td>{{Song-List|{{#if:{{{Recording|}}} | {{{Recording|}}} | {{{ZeroPad|{{{Track|0}}}}} - {{{Game}}} - {{#if:{{{Platform|}}}|{{{Platform}}} - }}{{{Title}}}.ogg}}</td>
+
     <td>{{Song-List|{{#if:{{{Recording|}}} | {{{Recording|}}} | {{ZeroPad|{{{Track|0}}}}} - {{{Game}}} - {{#if:{{{Platform|}}}|{{{Platform}}} - }}{{{Title}}}.ogg}} }}</td>
     <td itemprop="audio">[[Media:{{#if:{{{Recording|}}} | {{{Recording|}}} | {{{ZeroPad|{{{Track|0}}}}} - {{{Game}}} - {{#if:{{{Platform|}}}|{{{Platform}}} - }}{{{Title}}}.ogg|Download]]</td>{{#if:{{{Extra8|}}}|
+
     <td itemprop="audio">[[Media:{{#if:{{{Recording|}}} | {{{Recording|}}} | {{ZeroPad|{{{Track|0}}}}} - {{{Game}}} - {{#if:{{{Platform|}}}|{{{Platform}}} - }}{{{Title}}}.ogg}}|Download]]</td>{{#if:{{{Extra8|}}}|
 
     <td>{{{Extra8}}}</td>}}{{#if:{{{Extra9|}}}|
 
     <td>{{{Extra8}}}</td>}}{{#if:{{{Extra9|}}}|
 
     <td>{{{Extra9}}}</td>}}
 
     <td>{{{Extra9}}}</td>}}

Revision as of 21:38, 3 February 2015

This template is used to start a table of song recordings. It is combined with Template:TrackListEntry and Template:TrackListEnd to produce the full table of recordings.

Tables produced with this template contain structured data allowing search engines to list the recordings directly in the search results.

The following parameters are valid:

Parameter Example Purpose
Track Track = 1 Track number (do not use leading zeroes).
Title Title = A Song Song title.
TitleLink (optional) TitleLink = A Song (Example Game) Link to the song's page, if it is different to the song title. Only use this if the page for the song is actually named differently to the song title.
Artist Artist = John Doe Name of the artist.
ArtistLink (optional) Artist = John Doe Link to the artist's page, if it is different to their name. Only use this parameter if you have to.
DurationMin
DurationSec
DurationMin = 1
DurationSec = 23
Length of the song, split into minutes and seconds as separate parameters. The example produces a song length of 1:23.
Size Size = 2 MB Size of the audio recording, in "pretty" values (kB, MB, etc.)
Game Game = Example Game Name of the game this song is from. This is used to populate the 'album' fields.
Platform Platform = DOS Game platform. This is used to populate the 'album' fields.
Recording (optional) Recording = Filename.ogg Filename of the recording. Avoid using this parameter if possible. The default filename is "Track - Game - Platform - Title.ogg" with Track padded with a leading zero if needed, so it is always two digits long.

Example

This code:

{{TrackListBegin}}
{{TrackListEntry
 | Track = 1
 | Title = Example
 | Artist = John Doe
 | DurationMin = 1
 | DurationSec = 23
 | Size = 1.23 MB
 | Game = Example
 | Platform = DOS
}}
{{TrackListEnd}}

Will appear as:

# Title Composer Length Listen Download
01 Example Unknown 1:23 Download

Development

This section is used to preview changes to the template code during development.

# Title Composer Length Listen Download
? [[{{{Title}}}|{{{Title}}}]] [[{{{Artist}}}|{{{Artist}}}]] 0:00 {{{Size}}} [[Media:00 - {{{Game}}} - {{{Title}}}.ogg|Download]]