Template:Infobox album: Difference between revisions
MusikAnimal (talk | contribs) No edit summary |
MusikAnimal (talk | contribs) No edit summary |
||
(12 intermediate revisions by the same user not shown) | |||
Line 18: | Line 18: | ||
| producer = {{#invoke:String2|ucfirst|{{delink|{{{producer|}}}}}}} | | producer = {{#invoke:String2|ucfirst|{{delink|{{{producer|}}}}}}} | ||
| engineer = {{#invoke:String2|ucfirst|{{delink|{{{engineer|}}}}}}} | | engineer = {{#invoke:String2|ucfirst|{{delink|{{{engineer|}}}}}}} | ||
| released = {{{released|}}} | | released = {{{released_cargo|{{{released|}}}}}} | ||
| discogs = {{{discogs|}}} | | discogs = {{{discogs|}}} | ||
| musicbrainz = {{{musicbrainz|}}} | | musicbrainz = {{{musicbrainz|}}} | ||
Line 35: | Line 35: | ||
| headerclass = description | | headerclass = description | ||
| header1 = <includeonly>{{Infobox album/link|{{{type|}}} }}</includeonly>{{#if:{{{longtype|}}}| {{{longtype|}}}}}{{#if:{{{artist|}}}| {{# | | header1 = <includeonly>{{Infobox album/link|{{{type|}}} }}</includeonly>{{#if:{{{longtype|}}}| {{{longtype|}}}}}{{#if:{{{artist|}}}| {{#if:{{#pos:{{{type|}}}|bootleg}}|of|by}} <div class="contributor" style="display:inline">{{#ifexist:{{delink|{{{artist|}}}}}|[[{{delink|{{{artist}}}}}]]|{{{artist|}}}}}</div> }} | ||
| label2 = Released | | label2 = Released | ||
| data2 = {{{released|}}}{{#if:{{{released_ref|}}}|{{{released_ref}}}}} | | data2 = {{{released|}}}{{#if:{{{released_ref|}}}|{{{released_ref}}}}} | ||
| class2 = published | | class2 = published | ||
| label3 = {{#if:{{{recorded|}}}|Recorded|[[Studio sessions]]}} | | label3 = {{#if:{{{recorded|}}}|Recorded|[[Studio sessions]]}} | ||
| data3 = {{#if:{{{recorded|}}}|{{{recorded|}}}{{#if:{{{recorded_ref|}}}|{{{recorded_ref}}}}}|{{# | | data3 = {{#if:{{{recorded|}}}|{{{recorded|}}}{{#if:{{{recorded_ref|}}}|{{{recorded_ref}}}}}|<includeonly>{{#invoke:infobox_album|studio_sessions|{{{name|{{PAGENAME}}}}}}}</includeonly>}} | ||
| | |||
| | |||
| | |||
}}}} | |||
| class3 = plainlist | | class3 = plainlist | ||
| label4 = Venue | | label4 = Venue | ||
Line 74: | Line 67: | ||
| data12 = {{{format|}}} | | data12 = {{{format|}}} | ||
| class12 = hlist | | class12 = hlist | ||
| header13 = {{# | | header13 = {{#ifeq:{{#invoke:Chronology|check|{{delink|{{{artist|}}}}}|albums|{{delink|{{{name|{{PAGENAME}}}}}}}}}|true|{{#ifexist:{{delink|{{{artist|}}}}}|[[{{#invoke:String2 | ucfirst |{{delink|{{{artist|}}}}}}}]] chronology}}}} | ||
| data14 = | | data14 = <includeonly>{{#invoke:Chronology|main|{{delink|{{{artist|}}}}}|albums|{{delink|{{{name|{{PAGENAME}}}}}}}}}</includeonly> | ||
| below = {{{misc|}}} | | below = {{{misc|}}} | ||
}}{{#ifeq:{{{type|}}}||[[Category:Pages using infobox album with empty type parameter]]}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox album with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox album]] with unknown parameter "_VALUE_"|ignoreblank=y|italic_title |type |name |image |cover |border |alt |caption |longtype |artist |released |released_ref |recorded |recorded_ref |venue |studio |genre |length |language |label |director |producer |format |year|misc|discogs|musicbrainz}}{{#if:{{#invoke:String|match|error_category=Music infoboxes with Module:String errors{{!}}A|1={{{italic_title|}}}{{{italic title|}}}{{{type|}}}{{{name|}}}{{{image|}}}{{{cover|}}}{{{border|}}}{{{alt|}}}{{{caption|}}}{{{longtype|}}}{{{artist|}}}{{{released|}}}{{{recorded|}}}{{{venue|}}}{{{studio|}}}{{{genre|}}}{{{length|}}}{{{language|}}}{{{label|}}}{{{director|}}}{{{producer|}}}{{{format|}}}{{{year|}}}x|2=</?t[drh][ >]|nomatch=}}|{{main other|[[Category:Music infoboxes with malformed table placement|A]]}}}}{{main other|{{#if:{{{length|}}}|{{#if:{{#invoke:String|match|error_category=Music infoboxes with Module:String errors{{!}}A|1={{#invoke:hms|main|duration={{{length|}}}}}|2=class="duration"|plain=true|nomatch=}}|[[Category:Articles with hAudio microformats]]}}}}}}<noinclude> | }}{{#ifeq:{{{type|}}}||[[Category:Pages using infobox album with empty type parameter]]}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox album with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox album]] with unknown parameter "_VALUE_"|ignoreblank=y|italic_title |type |name |image |cover |border |alt |caption |longtype |artist |released|released_cargo |released_ref |recorded |recorded_ref |venue |studio |genre |length |language |label |director |producer |format |year|misc|discogs|musicbrainz}}{{#if:{{#invoke:String|match|error_category=Music infoboxes with Module:String errors{{!}}A|1={{{italic_title|}}}{{{italic title|}}}{{{type|}}}{{{name|}}}{{{image|}}}{{{cover|}}}{{{border|}}}{{{alt|}}}{{{caption|}}}{{{longtype|}}}{{{artist|}}}{{{released|}}}{{{recorded|}}}{{{venue|}}}{{{studio|}}}{{{genre|}}}{{{length|}}}{{{language|}}}{{{label|}}}{{{director|}}}{{{producer|}}}{{{format|}}}{{{year|}}}x|2=</?t[drh][ >]|nomatch=}}|{{main other|[[Category:Music infoboxes with malformed table placement|A]]}}}}{{main other|{{#if:{{{length|}}}|{{#if:{{#invoke:String|match|error_category=Music infoboxes with Module:String errors{{!}}A|1={{#invoke:hms|main|duration={{{length|}}}}}|2=class="duration"|plain=true|nomatch=}}|[[Category:Articles with hAudio microformats]]}}}}}}<noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
<!-- Add categories to the /doc subpage, not here. --><templatedata> | <!-- Add categories to the /doc subpage, not here. --><templatedata> |
Latest revision as of 03:34, 8 December 2023
This template defines the table "albums". View table.
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |
Adds an infobox for an album. Some things like the chronology are automatically generated.
Parameter | Description | Type | Status | |
---|---|---|---|---|
italic_title | italic_title | no description | Unknown | optional |
Type | type | Comma-separated list containing any of: ep, studio, demo, live, compilation, box set, video, tribute, bootleg, promotional | String | suggested |
Name | name | Title of the album. This must be exactly the same as the title of the article for the album. | String | required |
alt | alt | no description | Unknown | optional |
caption | caption | Caption shown under the image | Unknown | optional |
Artist | artist | Artist who made the album
| String | required |
Released | released | The date when the album was released
| Date | suggested |
Recorded | recorded | Date(s) when the album was recorded
| String | suggested |
venue | venue | no description | Unknown | optional |
Studio | studio | Studio(s) where the album was recorded. Known studios are automatically linked
| String | suggested |
genre | genre | no description | Unknown | optional |
Length | length | Total duration of the album
| String | suggested |
Record label | label | Record label(s) that released the album
| String | suggested |
director | director | no description | Unknown | optional |
Producer(s) | producer | Producers of the album. Names are automatically linked
| String | suggested |
Format | format | Medium that the album was released on
| String | optional |
year | year | no description | Unknown | optional |
misc | misc | no description | Unknown | optional |