Difference between revisions of "Template:TrackListEntry"

From Video Game Music Preservation Foundation Wiki
Jump to: navigation, search
m (Fix typo)
(Rename Artist to Composer and add Arranger column)
Line 24: Line 24:
 
Only use this parameter where it is not possible to rename the song page so that it fits the standard wiki naming scheme.
 
Only use this parameter where it is not possible to rename the song page so that it fits the standard wiki naming scheme.
 
|-
 
|-
| '''Artist'''
+
| '''Composer'''
| <tt>Artist = John Doe</tt>
+
| <tt><nowiki>Composer = {{TrackListComposer|[[John Doe]]}}</nowiki></tt><br/><tt><nowiki>Composer = {{TrackListComposer|[[John Doe|Johnny Doe]]}}, {{TrackListComposer|[[Robert Smith|Bob Smith]]}}</nowiki></tt>
| Name of the artist.
+
| Name of the composer(s). Only one ''Composer'' option can be specified, so multiple composers should be comma separated.  Remember to surround composer names by both <nowiki>[[</nowiki> and ]] to link to their artist page, as well as using the [[:Template:TrackListComposer]] template.
|-
 
| '''ArtistLink'''&nbsp;(optional)
 
| <tt>Artist = John Doe</tt>
 
| Link to the artist's page, if it is different to their name.  Only use this parameter if you have to.
 
 
|-
 
|-
 
| '''DurationMin'''<br/>'''DurationSec'''
 
| '''DurationMin'''<br/>'''DurationSec'''
Line 62: Line 58:
 
  | Track = 1
 
  | Track = 1
 
  | Title = Example
 
  | Title = Example
  | Artist = John Doe
+
  | Composer = {{TrackListComposer|[[John Doe]]}}
 
  | DurationMin = 1
 
  | DurationMin = 1
 
  | DurationSec = 23
 
  | DurationSec = 23
Line 78: Line 74:
 
  | Track = 1
 
  | Track = 1
 
  | Title = Example
 
  | Title = Example
  | Artist = John Doe
+
  | Composer = {{TrackListComposer|[[John Doe]]}}
 
  | DurationMin = 1
 
  | DurationMin = 1
 
  | DurationSec = 23
 
  | DurationSec = 23
Line 109: Line 105:
 
     <td>{{{Extra2}}}</td>}}{{#if:{{{Extra3|}}}|
 
     <td>{{{Extra2}}}</td>}}{{#if:{{{Extra3|}}}|
 
     <td>{{{Extra3}}}</td>}}
 
     <td>{{{Extra3}}}</td>}}
     <td itemprop="byArtist">[[{{{ArtistLink|{{{Artist}}}}}}|{{{Artist}}}]]</td>{{#if:{{{Extra4|}}}|
+
     <td>{{{Composer|''Unknown''}}}</td>{{#if:{{{Arranger|}}}|
 +
    <td>{{{Arranger}}}</td>}}{{#if:{{{Extra4|}}}|
 
     <td>{{{Extra4}}}</td>}}{{#if:{{{Extra5|}}}|
 
     <td>{{{Extra4}}}</td>}}{{#if:{{{Extra5|}}}|
 
     <td>{{{Extra5}}}</td>}}
 
     <td>{{{Extra5}}}</td>}}
Line 151: Line 148:
 
{{TrackListEnd}}
 
{{TrackListEnd}}
  
[[Category:Templates]]
+
[[Category:Track listing templates]]
 
</noinclude>
 
</noinclude>

Revision as of 00:30, 16 May 2015

This template is used to start a table of song recordings. It is combined with Template:TrackListBegin 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, and the page cannot be renamed. The default link is:
  • "Title - Game (Platform)", if that page exists (e.g. Map - Rampage (NES)).
  • Otherwise the link is just Title (e.g. Map).

Only use this parameter where it is not possible to rename the song page so that it fits the standard wiki naming scheme.

Composer Composer = {{TrackListComposer|[[John Doe]]}}
Composer = {{TrackListComposer|[[John Doe|Johnny Doe]]}}, {{TrackListComposer|[[Robert Smith|Bob Smith]]}}
Name of the composer(s). Only one Composer option can be specified, so multiple composers should be comma separated. Remember to surround composer names by both [[ and ]] to link to their artist page, as well as using the Template:TrackListComposer template.
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
 | Composer = {{TrackListComposer|[[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 [[John Doe|John Doe]] 1:23
-
Download

Development

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

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