Difference between revisions of "Template:Extra track listing/sandbox"
imported>Jc86035 m (sync / remove deprecated things) |
imported>Zackmann08 (Adding unknown parameter tracking through Category:Pages using extra track listing with unknown parameters using Module:check for unknown parameters) |
||
Line 1: | Line 1: | ||
− | + | {{Infobox | |
| child = yes | decat = yes | | child = yes | decat = yes | ||
− | | headerstyle = background: {{Template:Infobox album/color|{{{type| | + | | headerstyle = background: {{Template:Infobox album/color|{{{type|}}}}} |
− | | data1 = {{#if:{{{altalbum | + | | data1 = {{#if:{{{altalbum|}}} | {{Infobox | child = yes |
− | | headerstyle = background: {{Template:Infobox album/color|{{{type | + | | headerstyle = background: {{Template:Infobox album/color|{{{type|}}}}} |
− | | header1 = from the album ''{{{altalbum| | + | | header1 = from the album ''{{{altalbum|}}}'' |
| label2 = Length | | label2 = Length | ||
− | | data2 = {{{length| | + | | data2 = {{{length|}}} |
| label3 = [[Record label|Label]] | | label3 = [[Record label|Label]] | ||
− | | data3 = {{{label| | + | | data3 = {{{label|}}} |
}} | }} | ||
}} | }} | ||
− | | header2 = {{#if:{{{tracks| | + | | header2 = {{#if:{{{tracks|}}}|{{#if:{{{album|}}}{{{altalbum|}}}{{{chronology|}}}|''{{{album|{{{altalbum|}}}}}}{{{chronology|}}}'' track listing}} }} |
− | | rowcellstyle3 = {{#if:{{{tracks| | + | | rowcellstyle3 = {{#if:{{{tracks|}}}|text-align:left}} |
− | | data3 = {{{tracks | + | | data3 = {{{tracks|}}} |
− | }}{{#ifeq:{{Template:Infobox album/color|{{{type| | + | }}{{#ifeq:{{Template:Infobox album/color|{{{type|}}}|Test}}|Test|[[Category:Song articles with infoboxes with non-standard extra track listings|{{PAGENAME}}]]}}{{#if:{{#invoke:String|match|1={{{type|}}}{{{altalbum|}}}{{{length|}}}{{{label|}}}{{{tracks|}}}{{{album|}}}{{{chronology|}}}x|2=</?t[drh][ >]|nomatch=}}|[[Category:Music infoboxes with malformed table placement|T]]}}{{#if:{{{tracks|}}}||[[Category:Pages using extra track listing with no tracks]]}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using extra track listing with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Extra track listing]] with unknown parameter "_VALUE_"|ignoreblank=y| album | altalbum | chronology | label | length | tracks | type }}<noinclude> |
− | }} | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Latest revision as of 17:45, 14 November 2018
![]() | This is the template sandbox page for Template:Extra track listing (diff). See also the companion subpage for test cases. |
![]() | This template uses Lua: |
A listing of the songs on an album or EP is usually done using the |tracks=
field of {{Infobox song}}; for details, please see the infobox track listing examples. However, if the infobox |chronology=
prevents its use, this template should be used instead to add a track listing.
Please note: track listings should not be added to infoboxes if there is a navigation template or navbox at the bottom of the article which already lists the songs.
Contents
Code
This template is used with the |misc=
parameter of the infobox template. It should not be used on its own. If this template is substituted, it will return a cleaned-up copy of itself with unnecessary parameters removed and deprecated parameters replaced. Parameter indentation will also automatically be fixed.
That Album track listing | |
---|---|
Template:Rumours tracks | |
{{Infobox song ... | misc = {{Extra track listing | album = | type = | tracks = }}
Parameters
album
Enter the name of the album or EP to produce the header. It will be generated using italics followed by "track listing"; for example, That Album track listing
or What EP track listing
.
type
Enter song
for all Infobox song types to generate a light blue background; for singles, enter single
for khaki.
tracks
Add the template that has the album track listing, such as {{Rumours tracks}}, {{Nevermind tracks}}, etc.
Notes
This template is for use in the |misc=
field. It will not work in infobox song |tracks=
.
TemplateData
TemplateData for Extra track listing
For use with {{Infobox song}} – adds an extra track listing showing the album or EP tracks.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Album | album chronology | name of the album or EP
| String | required |
Type | type | sets the header color
| Unknown | required |
Tracks | tracks | add the track listing template for the album or EP here | String | required |
Tracking categories
- Category:Music infoboxes with malformed table placement (0)
- Category:Pages using extra track listing with unknown parameters (0)
- Category:Pages using extra track listing with no tracks (2)
The above documentation is transcluded from Template:Extra track listing/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |