Шаблон:Extra track listing: различия между версиями
Template:Extra track listing>Jonesey95 (rm long-deprecated parameters after testing in the sandbox) |
Нет описания правки |
||
(не показаны 2 промежуточные версии этого же участника) | |||
Строка 1: | Строка 1: | ||
<includeonly>{{{{{|safesubst:}}}#invoke:Unsubst-infobox||$params=album,type,tracks|$extra=chronology,tracks|$indent=1|$flags=override|$B={{Infobox | <includeonly>{{{{{|safesubst:}}}#invoke:Unsubst-infobox||$params=album,type,tracks|$extra=chronology,tracks|$indent=1|$flags=override|$B={{Infobox | ||
| child = yes | decat = yes | | child = yes | decat = yes | ||
| headerstyle = background: | | headerstyle = background: #98DFE0 | ||
| header2 = {{#if:{{{tracks|}}}|{{#if:{{{album|}}}{{{chronology|}}}| | | header2 = {{#if:{{{tracks|}}}|{{#if:{{{album|}}}{{{chronology|}}}|{{{album|}}}{{{chronology|}}} track listing}} }} | ||
| rowcellstyle3 = {{#if:{{{tracks|}}}|text-align:left}} | | rowcellstyle3 = {{#if:{{{tracks|}}}|text-align:left}} | ||
| data3 = {{{tracks|}}} | | data3 = {{{tracks|}}} |
Текущая версия от 19:18, 11 февраля 2024
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.
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 | |
---|---|
(tracks here) | |
{{Infobox song
...
| misc = {{Extra track listing
| album =
| type =
| tracks = (tracks here)
}}
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
<templatedata> { "params": { "type": { "label": "Type", "description": "Sets the header color. Song, single, etc.", "default": "peachpuff", "required": true, "type": "line" }, "tracks": { "label": "Tracks", "description": "Add the track listing template for the album or EP here", "type": "string", "required": true }, "album": { "label": "Album", "description": "Name of the album or EP. Track listing is automatically added after", "type": "string", "required": true }, "chronology": { "type": "line", "deprecated": "Needless AKA for album" } },
"description": "For use withExtra track listing | |
---|---|
Song | |
Stems | {{{Stems}}} |
"paramOrder": [ "album", "type", "tracks", "chronology" ] } </templatedata>