User talk:John Cardinal/test
From Wikipedia, the free encyclopedia
[edit] 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 {{Infobox single}}, {{Infobox song}}, and {{Extra tracklisting}} 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—and test—before changing this template, and make sure you explain the change in your edit summary. Any unexplained changes may be reverted.
[edit] Usage
| “The Fool on the Hill” | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Song by The Beatles | ||||||||||||||||||||||||||||
| Album | Magical Mystery Tour | |||||||||||||||||||||||||||
| Released | 27 November 1967 | |||||||||||||||||||||||||||
| Length | 3:00 | |||||||||||||||||||||||||||
| Label | Parlophone, Capitol, EMI | |||||||||||||||||||||||||||
| Writer | Lennon/McCartney | |||||||||||||||||||||||||||
| Producer | George Martin | |||||||||||||||||||||||||||
| Magical Mystery Tour track listing | ||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||
Like {{Extra tracklisting}}, this template is intended to be called as part of the "Misc=" parameter for {{Infobox song}}, {{Infobox single</nowiki>}}. 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
| Album = [[Magical Mystery Tour (album)|Magical Mystery Tour]]
| Side1 =
{{Track row |n=1 | s=[[Magical Mystery Tour (song)|Magical Mystery Tour]] }}
{{Track row |n=2 | s=[[The Fool on the Hill]] }}
{{Track row |n=3 | s=[[Flying (song)|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]] }}
| Side2 =
{{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]] }}
}}
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
| Name = The Fool on the Hill
| Cover = TheBeatlesMagicalMysteryTouralbumcover.jpg
| Artist = [[The Beatles]]
| Album = [[Magical Mystery Tour (album)|Magical Mystery Tour]]
| Released = [[27 November]] [[1967]]
| Length = 3:00
| Writer = [[Lennon/McCartney]]
| Label = [[Parlophone]], [[Capitol Records|Capitol]], [[EMI]]
| Producer = [[George Martin]]
| Misc = {{Extra tracksall
| Album = [[Magical Mystery Tour (album)|Magical Mystery Tour]]
| Side1 =
{{Track row |n=1 | s=[[Magical Mystery Tour (song)|Magical Mystery Tour]] }}
{{Track row |n=2 | s=[[The Fool on the Hill]] }}
{{Track row |n=3 | s=[[Flying (song)|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]] }}
| Side2 =
{{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]] }}
}}
}}
The wikitext above produced the infobox shown on the right.

