Template:Infobox album: Difference between revisions

No edit summary
No edit summary
Line 46: Line 46:
| class12    = hlist
| class12    = hlist


| header13    = {{#invoke:String2 | ucfirst |{{{artist|}}}}} chronology
| header13    = [[{{#invoke:String2 | ucfirst |{{{artist|}}}}}]] chronology
| data14      = <includeonly>{{#invoke:Chronology|main|{{delink|{{{artist|}}}}}|albums|{{delink|{{{name|{{PAGENAME}}}}}}}}}</includeonly>
| data14      = <includeonly>{{#invoke:Chronology|main|{{delink|{{{artist|}}}}}|albums|{{delink|{{{name|{{PAGENAME}}}}}}}}}</includeonly>
| below      = {{{misc|}}}
| below      = {{{misc|}}}
}}<includeonly>{{#ifeq:{{{type|}}}|EP|[[Category:EPs]]{{#if:{{{artist|}}}|[[Category:{{delink|{{{artist}}}}} EPs]]}}|[[Category:Albums]]{{#if:{{{artist|}}}|[[Category:{{delink|{{{artist}}}}} albums]]}}{{#if:{{{type|}}}|[[Category:{{{type}}} albums]]}}}}</includeonly>{{#if:{{#ifeq:{{str left|{{{last_album|}}}|22}}|<div class="plainlist"|1|}}{{#ifeq:{{str left|{{{this_album|}}}|22}}|<div class="plainlist"|1|}}{{#ifeq:{{str left|{{{next_album|}}}|22}}|<div class="plainlist"|1|}}|[[Category:Pages using infobox chronology parameters with plainlists]]}}{{#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 |recorded |venue |studio |genre |length |language |label |director |producer |format |prev_title|prev_year|next_title|next_year|chronology|year|misc}}{{#if:{{#invoke:String|match|error_category=Music infoboxes with Module:String errors{{!}}A|1={{{prev_title|}}}{{{last_album|}}}{{{prev_year|}}}{{{next_title|}}}{{{next_album|}}}{{{next_year|}}}{{{italic_title|}}}{{{italic title|}}}{{{type|}}}{{{name|}}}{{{image|}}}{{{cover|}}}{{{border|}}}{{{alt|}}}{{{caption|}}}{{{longtype|}}}{{{artist|}}}{{{released|}}}{{{recorded|}}}{{{venue|}}}{{{studio|}}}{{{genre|}}}{{{length|}}}{{{language|}}}{{{label|}}}{{{director|}}}{{{producer|}}}{{{format|}}}{{{chronology|}}}{{{this_album|}}}{{{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>
}}<includeonly>{{#ifeq:{{{type|}}}|EP|[[Category:EPs]]{{#if:{{{artist|}}}|[[Category:{{delink|{{{artist}}}}} EPs]]}}|[[Category:Albums]]{{#if:{{{artist|}}}|[[Category:{{delink|{{{artist}}}}} albums]]}}{{#if:{{{type|}}}|[[Category:{{{type}}} albums]]}}}}</includeonly>{{#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 |recorded |venue |studio |genre |length |language |label |director |producer |format |year|misc}}{{#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>
Line 63: Line 63:
"name": {
"name": {
"label": "Name",
"label": "Name",
"description": "Title of the album",
"description": "Title of the album. This must be exactly the same as the title of the article for the album.",
"type": "string",
"type": "string",
"required": true
"required": true,
"default": "{{PAGENAME}}"
},
},
"alt": {},
"alt": {},
"caption": {},
"caption": {
"description": "Caption shown under the image"
},
"artist": {
"artist": {
"label": "Artist",
"label": "Artist",
Line 127: Line 130:
"type": "string"
"type": "string"
},
},
"last_album": {},
"next_album": {},
"prev_title": {},
"next_title": {},
"chronology": {},
"prev_year": {},
"this_album": {},
"next_year": {},
"year": {},
"year": {},
"misc": {}
"misc": {}
}
},
"description": "Adds an infobox for an album. Some things like the chronology are automatically generated."
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>