User:ConradPino/template/testing/testcases

From Wikipedia, the free encyclopedia

This is the template test case page for the User:ConradPino/template/testing/sandbox of User:ConradPino/template/testing. Purge this page to update examples.
If there are many examples of a complicated templates, latter ones may break due to limits added into MediaWiki, which are stated in a HTML comment "NewPP limit report".

Contents

[edit] Documentation

===Infobox Single===
{{documentation|Template:Infobox Single/doc|heading=}}

===Infobox Song===
{{documentation|Template:Infobox Song/doc|heading=}}

[edit] Infobox

Again, similarly to the Albums project, you can use {{Infobox Single}} for the singles. Use {{Infobox Song}} for album tracks and B-sides. For standards, use {{Infobox Standard}}.

[edit] Infobox Single

[edit] Code

“Country House”
Single by Blur
from the album The Great Escape
Released August 14, 1995 (1995-08-14) (UK)
Format 7", cassette, CD
Recorded 1995
Genre Britpop
Length 3:57
Label Food, EMI
Producer Stephen Street
Blur singles chronology
"To the End"
(1994)
"Country House"
(1995)
"The Universal"
(1995)
{{Infobox Single <!-- See Wikipedia:WikiProject_Songs -->
| Name           = 
| Cover          = 
| Cover size     = 
| Border         = 
| Caption        = 
| Artist         = 
| Album          = 
| A-side         = 
| B-side         = 
| Released       = 
| Format         = 
| Recorded       = 
| Genre          = 
| Length         = 
| Label          = 
| Writer         = 
| Producer       = 
| Audio sample?  = 
| Certification  = 
| Last single    = 
| This single    = 
| Next single    = 
| Misc           = 
}}

[edit] Details

Try to fill in as many of the details as you can. If you can't find out some details, leave the section blank or with "???" to make it easier for someone else to fill in later.

Name 
This field should contain the name of the single. This field is mandatory.
Cover 
Upload a copy of the single cover (under fair use—use the tag "{{albumcover}}"). Ideally the image should be 200px wide. Enter the file name only into the field: <Image Name>.jpg.
Border 
Type "yes" in this field to place a 1px border around the single's cover.
Artist 
This field should contain the name of the artist. This field is mandatory.
A-side 
This field should only be used if there is a record title distinct from the A-side.
Released 
This field should refer to the earliest known date, using a single occurrence of {{Start date}} as {{Start date|YYYY|MM|DD}}, for example "{{Start date|2007|7|31}}". (Use "{{Start date|YYYY|MM}}" if only year and month are known, or "{{Start date|YYYY}}" for just a year).
Recorded 
This field should include details on where and when the song was recorded.
Length 
The length should be formatted as mm:ss.
Label 
This field should refer to the label on which the single/album was originally released. Where significantly different versions have been released (featuring alternate track listings) e.g. U.S. vs. UK, the later release date and/or record label should be mentioned in the article. Drop words like "Records" from the end of the label's name (e.g. use [[Universal Records|Universal]] rather than [[Universal Records]]).
Producer 
The producer is not necessarily the same as the "Artist" field.
Misc 
This field allows you to provide additional infobox data (additional chronologies using {{Extra chronology 2}} or {{Extra album cover 2}} for example).

[edit] Chronology

The chronology section should link to the previous single on the left and the next single on the right. Songs should be ordered based on the first release dates of their official singles.

  • For first singles the left box (the "Last single=" field) should be left blank.
  • For latest singles, the right box (the "Next single=" field) should be left blank.

Wikipedia's date style guidelines recommend that years should not be linked within the chronology section.

  • Note: album cover images should NOT be used in this section as they do not meet Wikipedia fair use requirements.

[edit] Examples

Here are some examples of articles using the infoboxes:

[edit] See also

Microformat

The HTML mark up produced by this template includes an hCalendar microformat, which makes the event details parsable by computers, either acting automatically to catalogue article across Wikipedia, or via a browser tool operated by a person, to (for example) add the subject to a calendar or diary application. For more information about the use of microformats on Wikipedia, please see the microformat project.

Dates will only appear if you use {{Start date}} or {{End date}} (use the former for single dates).

hCalendar uses HTML classes including:

  • "dtend"
  • "dtstart"
  • "location"
  • "summary"
  • "vevent"

[edit] Infobox Song

This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages.
Remember that you can conduct experiments, and should test all improvements, in either the general Template sandbox or your user space before changing anything here.

[edit] Code

“Perfect Blue Buildings”
“Perfect Blue Buildings” cover
Song by Counting Crows
Album August and Everything After
Released September 14, 1993
Recorded In some house on some hill
Genre Alternative rock
Length 5:00
Label Geffen
Writer Adam Duritz
Producer T-Bone Burnett
August and Everything After track listing
"Mr. Jones"
(3)
Perfect Blue Buildings
(4)
"Anna Begins"
(5)


{{Infobox Song <!-- See Wikipedia:WikiProject_Songs -->
| Name           = 
| Cover          = 
| Border         = 
| Caption        = 
| Type           = 
| Artist         = 
| alt Artist     = 
| Album          = 
| Published      = 
| Released       = 
| track_no       = 
| Recorded       = 
| Genre          = 
| Length         = 
| Writer         = 
| Composer       = 
| Label          = 
| Producer       = 
| Tracks         = 
| prev           = 
| prev_no        = 
| next           = 
| next_no        = 
| Misc           = 
| Audio sample?  =
}}

[edit] Details

Name 
This field should contain the name of the song. This field is compulsory.
Cover 
You should not use the album cover, as this is not compliant with our fair-use criteria.
Border 
Type "yes" in this parameter to add a 1 px border to the cover image
Type 
If you want to add something more descriptive than "Song" use the "Type" field.
Tracks 
There are two ways to create a track listing; either a "full" album track listing or a partial one. The full track listing is done using the "Tracks" field (simply list the tracks using #'s). The partial method is using the prev, prev_no, next, next_no and track_no fields. This is for previous and next tracks. It'd be better to use "Tracks"; both should not be used.
Recorded 
This field is for the place that the song was recorded

See also

[edit] Documentation/sandbox

===Infobox Single===
{{documentation/sandbox|Template:Infobox Single/doc|heading=}}

===Infobox Song===
{{documentation/sandbox|Template:Infobox Song/doc|heading=}}

[edit] Infobox

Again, similarly to the Albums project, you can use {{Infobox Single}} for the singles. Use {{Infobox Song}} for album tracks and B-sides. For standards, use {{Infobox Standard}}.

[edit] Infobox Single

[edit] Code

“Country House”
Single by Blur
from the album The Great Escape
Released August 14, 1995 (1995-08-14) (UK)
Format 7", cassette, CD
Recorded 1995
Genre Britpop
Length 3:57
Label Food, EMI
Producer Stephen Street
Blur singles chronology
"To the End"
(1994)
"Country House"
(1995)
"The Universal"
(1995)
{{Infobox Single <!-- See Wikipedia:WikiProject_Songs -->
| Name           = 
| Cover          = 
| Cover size     = 
| Border         = 
| Caption        = 
| Artist         = 
| Album          = 
| A-side         = 
| B-side         = 
| Released       = 
| Format         = 
| Recorded       = 
| Genre          = 
| Length         = 
| Label          = 
| Writer         = 
| Producer       = 
| Audio sample?  = 
| Certification  = 
| Last single    = 
| This single    = 
| Next single    = 
| Misc           = 
}}

[edit] Details

Try to fill in as many of the details as you can. If you can't find out some details, leave the section blank or with "???" to make it easier for someone else to fill in later.

Name 
This field should contain the name of the single. This field is mandatory.
Cover 
Upload a copy of the single cover (under fair use—use the tag "{{albumcover}}"). Ideally the image should be 200px wide. Enter the file name only into the field: <Image Name>.jpg.
Border 
Type "yes" in this field to place a 1px border around the single's cover.
Artist 
This field should contain the name of the artist. This field is mandatory.
A-side 
This field should only be used if there is a record title distinct from the A-side.
Released 
This field should refer to the earliest known date, using a single occurrence of {{Start date}} as {{Start date|YYYY|MM|DD}}, for example "{{Start date|2007|7|31}}". (Use "{{Start date|YYYY|MM}}" if only year and month are known, or "{{Start date|YYYY}}" for just a year).
Recorded 
This field should include details on where and when the song was recorded.
Length 
The length should be formatted as mm:ss.
Label 
This field should refer to the label on which the single/album was originally released. Where significantly different versions have been released (featuring alternate track listings) e.g. U.S. vs. UK, the later release date and/or record label should be mentioned in the article. Drop words like "Records" from the end of the label's name (e.g. use [[Universal Records|Universal]] rather than [[Universal Records]]).
Producer 
The producer is not necessarily the same as the "Artist" field.
Misc 
This field allows you to provide additional infobox data (additional chronologies using {{Extra chronology 2}} or {{Extra album cover 2}} for example).

[edit] Chronology

The chronology section should link to the previous single on the left and the next single on the right. Songs should be ordered based on the first release dates of their official singles.

  • For first singles the left box (the "Last single=" field) should be left blank.
  • For latest singles, the right box (the "Next single=" field) should be left blank.

Wikipedia's date style guidelines recommend that years should not be linked within the chronology section.

  • Note: album cover images should NOT be used in this section as they do not meet Wikipedia fair use requirements.

[edit] Examples

Here are some examples of articles using the infoboxes:

[edit] See also

Microformat

The HTML mark up produced by this template includes an hCalendar microformat, which makes the event details parsable by computers, either acting automatically to catalogue article across Wikipedia, or via a browser tool operated by a person, to (for example) add the subject to a calendar or diary application. For more information about the use of microformats on Wikipedia, please see the microformat project.

Dates will only appear if you use {{Start date}} or {{End date}} (use the former for single dates).

hCalendar uses HTML classes including:

  • "dtend"
  • "dtstart"
  • "location"
  • "summary"
  • "vevent"

[edit] Infobox Song

This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages.
Remember that you can conduct experiments, and should test all improvements, in either the general Template sandbox or your user space before changing anything here.

[edit] Code

“Perfect Blue Buildings”
“Perfect Blue Buildings” cover
Song by Counting Crows
Album August and Everything After
Released September 14, 1993
Recorded In some house on some hill
Genre Alternative rock
Length 5:00
Label Geffen
Writer Adam Duritz
Producer T-Bone Burnett
August and Everything After track listing
"Mr. Jones"
(3)
Perfect Blue Buildings
(4)
"Anna Begins"
(5)


{{Infobox Song <!-- See Wikipedia:WikiProject_Songs -->
| Name           = 
| Cover          = 
| Border         = 
| Caption        = 
| Type           = 
| Artist         = 
| alt Artist     = 
| Album          = 
| Published      = 
| Released       = 
| track_no       = 
| Recorded       = 
| Genre          = 
| Length         = 
| Writer         = 
| Composer       = 
| Label          = 
| Producer       = 
| Tracks         = 
| prev           = 
| prev_no        = 
| next           = 
| next_no        = 
| Misc           = 
| Audio sample?  =
}}

[edit] Details

Name 
This field should contain the name of the song. This field is compulsory.
Cover 
You should not use the album cover, as this is not compliant with our fair-use criteria.
Border 
Type "yes" in this parameter to add a 1 px border to the cover image
Type 
If you want to add something more descriptive than "Song" use the "Type" field.
Tracks 
There are two ways to create a track listing; either a "full" album track listing or a partial one. The full track listing is done using the "Tracks" field (simply list the tracks using #'s). The partial method is using the prev, prev_no, next, next_no and track_no fields. This is for previous and next tracks. It'd be better to use "Tracks"; both should not be used.
Recorded 
This field is for the place that the song was recorded

See also