Template:Track listing/testcases#Punctuation test

{{Template test cases notice}}

Basic track listing

{{test case nowiki|title=Blank|showcode=yes|code={{__TEMPLATENAME__}}}}

{{test case nowiki|title=One track|showcode=yes|code={{__TEMPLATENAME__

| title1 = Back in the U.S.S.R.

| length1 = 2:43

}}}}

{{test case nowiki|title=Two tracks|showcode=yes|code={{__TEMPLATENAME__

| title1 = Back in the U.S.S.R.

| length1 = 2:43

| title2 = Dear Prudence

| length2 = 3:56

}}}}

{{test case nowiki|title=One track, title only|showcode=yes|code={{__TEMPLATENAME__

| title1 = Back in the U.S.S.R.

}}}}

{{test case nowiki|title=One track, length only|showcode=yes|code={{__TEMPLATENAME__

| length1 = 2:43

}}}}

{{test case nowiki|title=Note|showcode=yes|code={{__TEMPLATENAME__

| title1 = Good Times Bad Times

| note1 = from Led Zeppelin, 1969

}}}}

Unusual track numbers

{{test case nowiki|title=Track 0 - writing credits|showcode=yes|code={{__TEMPLATENAME__

| writing_credits = yes

| title0 = Good Times Bad Times

| note0 = from Led Zeppelin, 1969

| writer0 = Bonham, Jones, Page

| length0 = 5:00

}}}}

{{test case nowiki|title=Track 0 - lyrics and music credits|showcode=yes|code={{__TEMPLATENAME__

| lyrics_credits = yes

| music_credits = yes

| title0 = Kiss

| lyrics0 = Hyde

| music0 = Ken

| length0 = 4:25

}}}}

{{test case nowiki|title=Track 2 with no track 1|showcode=yes|code={{__TEMPLATENAME__

| title2 = Kiss

| length2 = 4:25

}}}}

{{test case nowiki|title=Track 120 with no track 1|showcode=yes|code={{__TEMPLATENAME__

| title120 = Kiss

| length120 = 4:25

}}}}

{{test case nowiki|title=Track 9999 with no track 1|showcode=yes|code={{__TEMPLATENAME__

| title9999 = Kiss

| length9999 = 4:25

}}}}

{{test case nowiki|title=Second Coming (The Stone Roses)|showcode=yes|code={{__TEMPLATENAME__

| all_writing = John Squire, except where noted

| writing_credits = yes

| title1 = Breaking into Heaven

| length1 = 11:21

| title2 = Driving South

| length2 = 5:09

| title3 = Ten Storey Love Song

| length3 = 4:29

| title4 = Daybreak

| length4 = 6:33

| writer4 = Ian Brown, Gary Mounfield, Squire, Alan Wren

| title5 = Your Star Will Shine

| length5 = 2:59

| title6 = Straight to the Man

| length6 = 3:15

| writer6 = Brown

| title7 = Begging You

| length7 = 4:56

| writer7 = Squire, Brown

| title8 = Tightrope

| length8 = 4:27

| title9 = Good Times

| length9 = 5:40

| title10 = Tears

| length10 = 6:50

| title11 = How Do You Sleep

| length11 = 4:59

| title12 = Love Spreads

| length12 = 5:46

| title90 = Untitled

| note90 = hidden track

| length90 = 6:26

| writer90 = Brown, Mounfield, Squire, Wren

}}}}

Unusual track lengths

{{test case nowiki|title=Length has seconds value ≥ 60|showcode=yes|code={{__TEMPLATENAME__

| length1 = 2:60

}}}}

{{test case nowiki|title=Total length has seconds value ≥ 60|showcode=yes|code={{__TEMPLATENAME__

| total_length = 47:95

}}}}

{{test case nowiki|title=Total length has minutes value ≥ 60|showcode=yes|code={{__TEMPLATENAME__

| total_length = 1:61:05

}}}}

{{test case nowiki|title=Total length has more than two colons|showcode=yes|code={{__TEMPLATENAME__

| total_length = 1:61:05:32

}}}}

General credits

{{test case nowiki|title=All writing|showcode=yes|code={{__TEMPLATENAME__

| all_writing = Lennon/McCartney, except where noted

| title1 = Back in the U.S.S.R.

| length1 = 2:43

}}}}

{{test case nowiki|title=All lyrics|showcode=yes|code={{__TEMPLATENAME__

| all_lyrics = a lyricist

| title1 = Back in the U.S.S.R.

| length1 = 2:43

}}}}

{{test case nowiki|title=All music|showcode=yes|code={{__TEMPLATENAME__

| all_music = a musician

| title1 = Back in the U.S.S.R.

| length1 = 2:43

}}}}

{{test case nowiki|title=All lyrics, all music|showcode=yes|code={{__TEMPLATENAME__

| all_lyrics = a lyricist

| all_music = a musician

| title1 = Back in the U.S.S.R.

| length1 = 2:43

}}}}

{{test case nowiki|title=All writing, all lyrics, all music|showcode=yes|code={{__TEMPLATENAME__

| all_writing = Lennon/McCartney, except where noted

| all_lyrics = a lyricist

| all_music = a musician

| title1 = Back in the U.S.S.R.

| length1 = 2:43

}}}}

Individual credits

{{test case nowiki|title=Writing credits|showcode=yes|code={{__TEMPLATENAME__

| writing_credits = yes

| title1 = Good Times Bad Times

| note1 = from Led Zeppelin, 1969

| writer1 = Bonham, Jones, Page

}}}}

{{test case nowiki|title=Lyrics and music credits|showcode=yes|code={{__TEMPLATENAME__

| lyrics_credits = yes

| music_credits = yes

| title1 = Kiss

| lyrics1 = Hyde

| music1 = Ken

| length1 = 4:25

}}}}

{{test case nowiki|title=Precedence of writer, lyrics and music|showcode=yes|code={{__TEMPLATENAME__

| writing_credits = yes

| lyrics_credits = yes

| music_credits = yes

| title1 = Kiss

| writer1 = Hyde and Ken

| lyrics1 = Hyde

| music1 = Ken

| length1 = 4:25

}}}}

{{test case nowiki|title=Writing credits without writing_credits arg|showcode=yes|code={{__TEMPLATENAME__

| title1 = Good Times Bad Times

| note1 = from Led Zeppelin, 1969

| writer1 = Bonham, Jones, Page

}}}}

{{test case nowiki|title=Lyrics and music credits without lyrics_credits and music_credits args|showcode=yes|code={{__TEMPLATENAME__

| title1 = Kiss

| lyrics1 = Hyde

| music1 = Ken

| length1 = 4:25

}}}}

{{test case nowiki|title=Extra column|showcode=yes|code={{__TEMPLATENAME__

| extra_column = An Extra Field

| title1 = Kiss

| length1 = 4:25

| extra1 = Extra field 1

}}}}

{{test case nowiki|title=Extra column without the extra_column parameter|showcode=yes|code={{__TEMPLATENAME__

| title1 = Kiss

| length1 = 4:25

| extra1 = Extra field 1

}}}}

Other content parameters

{{test case nowiki|title=Headline|showcode=yes|code={{__TEMPLATENAME__

| headline = Side one

| title1 = Back in the U.S.S.R.

| length1 = 2:43

}}}}

{{test case nowiki|title=One track, collapsed|showcode=yes|code={{__TEMPLATENAME__

| title1 = Back in the U.S.S.R.

| length1 = 2:43

| title2 = Dear Prudence

| length2 = 3:56

| total_length = 6:39

}}}}

Collapsing

{{test case nowiki|title=One track, collapsed|showcode=yes|code={{__TEMPLATENAME__

| collapsed = yes

| title1 = Back in the U.S.S.R.

| length1 = 2:43

}}}}

{{test case nowiki|title=Collapsing with headline parameter|showcode=yes|code={{__TEMPLATENAME__

| collapsed = yes

| headline = Side One

| title1 = Back in the U.S.S.R.

| length1 = 2:43

}}}}

Width params

{{test case nowiki|title=Title width|showcode=yes|code={{__TEMPLATENAME__

| title_width = 100px

| lyrics_credits = yes

| music_credits = yes

| title1 = Kiss

| lyrics1 = Hyde

| music1 = Ken

| length1 = 4:25

| total_length = 4:25

}}}}

{{test case nowiki|title=Lyrics width|showcode=yes|code={{__TEMPLATENAME__

| lyrics_width = 100px

| lyrics_credits = yes

| music_credits = yes

| title1 = Kiss

| lyrics1 = Hyde

| music1 = Ken

| length1 = 4:25

| total_length = 4:25

}}}}

{{test case nowiki|title=Music width|showcode=yes|code={{__TEMPLATENAME__

| music_width = 100px

| lyrics_credits = yes

| music_credits = yes

| title1 = Kiss

| lyrics1 = Hyde

| music1 = Ken

| length1 = 4:25

| total_length = 4:25

}}}}

{{test case nowiki|title=Writing width|showcode=yes|code={{__TEMPLATENAME__

| writing_width = 100px

| writing_credits = yes

| title1 = Kiss

| writer1 = Hyde and Ken

| length1 = 4:25

| total_length = 4:25

}}}}

{{test case nowiki|title=Extra width|showcode=yes|code={{__TEMPLATENAME__

| extra_width = 100px

| lyrics_credits = yes

| music_credits = yes

| extra_column = An Extra Column

| title1 = Kiss

| lyrics1 = Hyde

| music1 = Ken

| length1 = 4:25

| extra1 = Extra field 1

| total_length = 4:25

}}}}

Track length validation

{{test case nowiki|title=Not a length|showcode=yes|code={{__TEMPLATENAME__

| title1 = Kiss

| lyrics1 = Hyde

| music1 = Ken

| length1 = foo

}}}}

{{test case nowiki|title=Length with numbers only|showcode=yes|code={{__TEMPLATENAME__

| title1 = Kiss

| lyrics1 = Hyde

| music1 = Ken

| length1 = 12

}}}}

{{test case nowiki|title=Too many length fields|showcode=yes|code={{__TEMPLATENAME__

| title1 = Kiss

| lyrics1 = Hyde

| music1 = Ken

| length1 = 1:23:45:01

}}}}

{{test case nowiki|title=Wrong number of length digits (1)|showcode=yes|code={{__TEMPLATENAME__

| title1 = Kiss

| lyrics1 = Hyde

| music1 = Ken

| length1 = 123:45

}}}}

{{test case nowiki|title=Wrong number of length digits (2)|showcode=yes|code={{__TEMPLATENAME__

| title1 = Kiss

| lyrics1 = Hyde

| music1 = Ken

| length1 = 12:345

}}}}

{{test case nowiki|title=Wrong number of length digits (3)|showcode=yes|code={{__TEMPLATENAME__

| title1 = Kiss

| lyrics1 = Hyde

| music1 = Ken

| length1 = 1:123:45

}}}}

{{test case nowiki|title=Wrong number of length digits (4)|showcode=yes|code={{__TEMPLATENAME__

| title1 = Kiss

| lyrics1 = Hyde

| music1 = Ken

| length1 = 1:12:345

}}}}

{{test case nowiki|title=Zero hours in length|showcode=yes|code={{__TEMPLATENAME__

| title1 = Kiss

| lyrics1 = Hyde

| music1 = Ken

| length1 = 0:12:345

}}}}

{{test case nowiki|title=Minutes under 60|showcode=yes|code={{__TEMPLATENAME__

| title1 = Kiss

| lyrics1 = Hyde

| music1 = Ken

| length1 = 59:01

}}}}

{{test case nowiki|title=Minutes over 59 (1)|showcode=yes|code={{__TEMPLATENAME__

| title1 = Kiss

| lyrics1 = Hyde

| music1 = Ken

| length1 = 99:01

}}}}

{{test case nowiki|title=Minutes over 59 (2)|showcode=yes|code={{__TEMPLATENAME__

| title1 = Kiss

| lyrics1 = Hyde

| music1 = Ken

| length1 = 60:01

}}}}

{{test case nowiki|title=Hours with minutes under 60|showcode=yes|code={{__TEMPLATENAME__

| title1 = Kiss

| lyrics1 = Hyde

| music1 = Ken

| length1 = 1:59:01

}}}}

{{test case nowiki|title=Hours with minutes over 59 (1)|showcode=yes|code={{__TEMPLATENAME__

| title1 = Kiss

| lyrics1 = Hyde

| music1 = Ken

| length1 = 1:99:01

}}}}

{{test case nowiki|title=Hours with minutes over 59 (2)|showcode=yes|code={{__TEMPLATENAME__

| title1 = Kiss

| lyrics1 = Hyde

| music1 = Ken

| length1 = 1:60:01

}}}}

{{test case nowiki|title=Seconds under 60|showcode=yes|code={{__TEMPLATENAME__

| title1 = Kiss

| lyrics1 = Hyde

| music1 = Ken

| length1 = 1:59

}}}}

{{test case nowiki|title=Seconds over 59 (1)|showcode=yes|code={{__TEMPLATENAME__

| title1 = Kiss

| lyrics1 = Hyde

| music1 = Ken

| length1 = 1:95

}}}}

{{test case nowiki|title=Seconds over 59 (2)|showcode=yes|code={{__TEMPLATENAME__

| title1 = Kiss

| lyrics1 = Hyde

| music1 = Ken

| length1 = 1:60

}}}}

{{test case nowiki|title=Minutes and seconds over 59 (1)|showcode=yes|code={{__TEMPLATENAME__

| title1 = Kiss

| lyrics1 = Hyde

| music1 = Ken

| length1 = 99:99

}}}}

{{test case nowiki|title=Length minutes starting with zero|showcode=yes|code={{__TEMPLATENAME__

| title1 = Kiss

| lyrics1 = Hyde

| music1 = Ken

| length1 = 01:23

}}}}

Layout on page

{{test case nowiki|title=Infobox/image to the right|showcode=no|code=

{{infobox

| label1 = Label 1

| data1 = Data 1

| label2 = Label 2

| data2 = Data 2

}}

File:The Beatles and Lill-Babs 1963.jpg.]]

{{__TEMPLATENAME__

| headline = Disc one

| total_length =

| writing_credits = yes

| title1 = Good Times Bad Times

| note1 = from Led Zeppelin, 1969

| writer1 = Bonham, Jones, Page

| length1 = 2:48

| title2 = Communication Breakdown

| note2 = from Led Zeppelin, 1969

| writer2 = Bonham, Jones, Page

| length2 = 2:30

| title3 = Dazed and Confused

| note3 = from Led Zeppelin, 1969

| writer3 = Page

| length3 = 6:27

| title4 = Babe I'm Gonna Leave You

| note4 = from Led Zeppelin, 1969

| writer4 = Bredon, Page, Plant

| length4 = 6:42

}}

{{__TEMPLATENAME__

| headline = Disc two

| total_length =

| writing_credits = yes

| title1 = The Song Remains the Same

| note1 = from Houses of the Holy, 1973

| writer1 = Page, Plant

| length1 = 5:31

| title2 = Over the Hills and Far Away

| note2 = from Houses of the Holy, 1973

| writer2 = Page, Plant

| length2 = 4:50

}}

}}

{{test case nowiki|title=Two collapsed track listings|showcode=no|code=

{{__TEMPLATENAME__

| collapsed = yes

| headline = Side one

| all_writing = Lennon/McCartney, except where noted

| title1 = Back in the U.S.S.R.

| length1 = 2:43

| title2 = Dear Prudence

| length2 = 3:56

| title3 = Glass Onion

| length3 = 2:17

| title4 = Ob-La-Di, Ob-La-Da

| length4 = 3:08

| title5 = Wild Honey Pie

| length5 = 0:52

| title6 = The Continuing Story of Bungalow Bill

| length6 = 3:13

| title7 = While My Guitar Gently Weeps

| note7 = George Harrison

| length7 = 4:45

| title8 = Happiness Is a Warm Gun

| length8 = 2:43

}}

{{__TEMPLATENAME__

| collapsed = yes

| headline = Side two

| title9 = Martha My Dear

| length9 = 2:28

| title10 = I'm So Tired

| length10 = 2:03

| title11 = Blackbird

| length11 = 2:18

| title12 = Piggies

| note12 = Harrison

| length12 = 2:04

| title13 = Rocky Raccoon

| length13 = 3:32

| title14 = Don't Pass Me By

| note14 = Ringo Starr

| length14 = 3:50

| title15 = Why Don't We Do It in the Road?

| length15 = 1:40

| title16 = I Will

| length16 = 1:45

| title17 = Julia

| length17 = 2:54

}}

}}

No idea which section this one goes in

{{test case|_showcode=yes

| extra_column = Personnel notes

| total_length =

| title1 = Edward

| note1 =

| writer1 = Bob Johnson

| extra1 = * Bob Johnson lead vocal

  • Vince Cross DX7

| length1 = 6:20

| title2 = Isabel

| extra2 = * Maddy Prior lead vocal

  • Peter Knight piano

| length2 = 5:22

| title3 = Lady Diamond

| note3 =

| writer3 = Bob Johnson

| extra3 = * Bob Johnson lead vocal

| length3 = 4:41

| title4 = Cannon by Telemann

| note4 =

| writer4 = Georg Philipp Telemann

| extra4 = * Instrumental

  • Peter Knight all instruments (violins)

| length4 = 1:44

| title5 = Peace on the Border

| extra5 = * Rick Kemp lead vocals, bass, guitar

  • Vince Cross DX7

| length5 = 4:23

| title6 = Blackleg Miner

| extra6 = * Maddy Prior lead vocals

| writer6 = Traditional

| length6 = 4:06

| title7 = White Man

| note7 =

| writer7 = Peter Knight

| extra7 = * Peter Knight lead vocals, percussion, violin, bass guitar, piano

| length7 = 4:39

| title8 = Lanercost

| extra8 = * Maddy Prior lead vocals

  • Rick Kemp bass, guitar, vocals
  • Vince Cross DX7

| writer8 = Maddy Prior, Rick Kemp

| length8 = 4:32

| title9 = Scarecrow

| note9 = The Battle of Cropredy Bridge

| extra9 = * Bob Johnson lead vocals, guitar

  • Vince Cross DX7

| length9 = 4:13

| title10 = Take My Heart

| extra10 = * Maddy Prior lead vocals

  • Rick Kemp bass, guitar, vocals

| length10 = 3:58

}}

Width

{{test case nowiki|title=Two tracks|showcode=yes|code={{__TEMPLATENAME__

| width = 60%

| title1 = Back in the U.S.S.R.

| length1 = 2:43

| title2 = Dear Prudence

| length2 = 3:56

}}}}

Punctuation test

= Case 1: no ending punctuation {{check mark}} =

== Case 1.1: no citation ==

{{test case nowiki|title=Two tracks|showcode=yes|code={{__TEMPLATENAME__

| all_writing = Paul McCartney

}}}}

== Case 1.2: citation ==

{{test case nowiki|title=Two tracks|showcode=yes|code={{__TEMPLATENAME__

| all_writing = Paul McCartneyExample Reference

}}}}

= Case 2: editor included period/full stop {{check mark}} =

== Case 2.1: no citation ==

{{test case nowiki|title=Two tracks|showcode=yes|code={{__TEMPLATENAME__

| all_writing = Paul McCartney.

}}}}

== Case 2.2: citation ==

{{test case nowiki|title=Two tracks|showcode=yes|code={{__TEMPLATENAME__

| all_writing = Paul McCartney.Example Reference

}}}}

= Case 3: editor included colon {{check mark}} =

== Case 3.1: no citation ==

{{test case nowiki|title=Two tracks|showcode=yes|code={{__TEMPLATENAME__

| all_writing = Paul McCartney:

}}}}

== Case 3.2: citation ==

{{test case nowiki|title=Two tracks|showcode=yes|code={{__TEMPLATENAME__

| all_writing = Paul McCartney:Example Reference

}}}}

= Case 4: citation in center of text {{check mark}} =

== Case 4.1: no ending citation ==

{{test case nowiki|title=Two tracks|showcode=yes|code={{__TEMPLATENAME__

| all_writing = Paul McCartneyExample Reference and John Lennon

}}}}

== Case 4.2: ending citation ==

{{test case nowiki|title=Two tracks|showcode=yes|code={{__TEMPLATENAME__

| all_writing = Paul McCartneyExample Reference and John LennonExample Reference

}}}}

= Case 5: both all_lyrics and all_music {{check mark}} =

== Case 5.1: no ending citation ==

{{test case nowiki|title=Two tracks|showcode=yes|code={{__TEMPLATENAME__

| all_lyrics = Paul McCartney

| all_music = John Lennon

}}}}

== Case 5.2: ending citation ==

{{test case nowiki|title=Two tracks|showcode=yes|code={{__TEMPLATENAME__

| all_lyrics = Paul McCartney

| all_music = John LennonExample Reference

}}}}