User talk:John Cardinal/test

Purpose
Use this template to add an album or CD tracklisting to Infobox Single or Infobox Song. It performs a similar function to Extra tracklisting insofar as that template's "Tracks=" parameter is sometimes used to a numbered track list of all the tracks on an album to an infobox. This template makes no attempt to produce the 3-song sequences (last, current, next) that,  , and  create under certain conditions.

This template produces a more concise list at the expense of a little more syntactic sugar (more special characters). One additional downside: you have to number the tracks yourself. If you can count to 14 you can handle most records!

Please think carefully&mdash;and test&mdash;before changing this template, and make sure you explain the change in your edit summary. Any unexplained changes may be reverted.

Usage
Like , this template is intended to be called as part of the "Misc=" parameter for  ,. The examples below use the song "Penny Lane" from Magical Mystery Tour.

The first example shows how to use the template to construct a track listing. The second shows the same track listing within an infobox and thus mimics actual use.

{{{{Extra tracksall {{Track row |n=1 | s=Magical Mystery Tour }} {{Track row |n=2 | s=The Fool on the Hill }} {{Track row |n=3 | s=Flying }} {{Track row |n=4 | s=Blue Jay Way }} {{Track row |n=5 | s=Your Mother Should Know }} {{Track row |n=6 | s=I Am the Walrus }}
 * Album = Magical Mystery Tour
 * Side1 =

{{Track row |n=7 | s=Hello, Goodbye }} {{Track row |n=8 | s=Strawberry Fields Forever }} {{Track row |n=9 | s=Penny Lane }} {{Track row |n=10 | s=Baby You're a Rich Man }} {{Track row |n=11 | s=All You Need Is Love }} }}
 * Side2 =

Note that template {{ Track row }} is used for each track. The "n=" parameter sets the track number, and the "s=" parameter sets the song name.

The calls to {{Template:Track row}} are within the "SideN=" parameters of this template. You may use up to 10 sides (Side1=, Side2=, ... Side10=).

The example below shows a partial {{Infobox single}} with the "Misc=" parameter value supplied by {{Extra tracksall}}

{{Song infobox {{Track row |n=1 | s=Magical Mystery Tour }} {{Track row |n=2 | s=The Fool on the Hill }} {{Track row |n=3 | s=Flying }} {{Track row |n=4 | s=Blue Jay Way }} {{Track row |n=5 | s=Your Mother Should Know }} {{Track row |n=6 | s=I Am the Walrus }}
 * Name          = The Fool on the Hill
 * Cover         = TheBeatlesMagicalMysteryTouralbumcover.jpg
 * Artist        = The Beatles
 * Album         = Magical Mystery Tour
 * Released      = 27 November 1967
 * Length        = 3:00
 * Writer        = Lennon/McCartney
 * Label         = Parlophone, Capitol, EMI
 * Producer      = George Martin
 * Misc          = {{Extra tracksall
 * Album         = Magical Mystery Tour
 * Side1 =

{{Track row |n=7 | s=Hello, Goodbye }} {{Track row |n=8 | s=Strawberry Fields Forever }} {{Track row |n=9 | s=Penny Lane }} {{Track row |n=10 | s=Baby You're a Rich Man }} {{Track row |n=11 | s=All You Need Is Love }} }} }}
 * Side2 =

The wikitext above produced the infobox shown on the right.