Template:Infobox album: Difference between revisions

m
1 revision imported
m (1 revision imported)
m (1 revision imported)
 
(One intermediate revision by one other user not shown)
Line 1:
{{{{{|safesubst:}}}#invoke:Unsubst-infobox||$Pparams=italic_title,name,type,longtype,artist,cover,border,alt,caption,released,recorded,venue,studio,genre,length,language,label,director,producer,compiler,chronology,prev_title,prev_year,year,next_title,next_year,misc|$Eextra=italic_title,longtype,border,caption,language,director,compiler,chronology,year,misc|$Aaliases=italic title>italic_title,Italic title>italic_title,Name>name,Type>type,image>cover,Cover>cover,Border>border,Alt>alt,Caption>caption,Longtype>longtype,Artist>artist,Released>released,Recorded>recorded,Venue>venue,Studio>studio,Genre>genre,Length>length,Language>language,Label>label,Director>director,Producer>producer,Compiler>compiler,Chronology>chronology,Misc>misc|prev_title$flags={{{{{override|safesubst:}}}#if:$B={{{prev_title|}}}|{{{prev_title|}}}|{{{{{|safesubst:}}}#ififeq:{{{last_album|{{{Last album|}}}}}}|{{{{{|safesubst:}}}#invoke:String|match|1={{{last_album|{{{LastIs albuminfobox in lead|}}}}}}main|2=^''([^<Ii]+)''%s*<nfobox ?/? ?br ?/? ?>|nomatch={{{{{|safesubst:[Aa]lbum}}}#invoke:String|matchtrue|1={{{last_album|{{{Lastshort albumdescription|}}}}}}|2=^<div class="plainlist"><ul><li>''([^<]+)''</li>}}}}}}}}|prev_year={{{{{|safesubst:}}}#ifinvoke:{{{prev_yearPlain text|}}}main|{{{prev_year|}}}|{{{{{|safesubst:}}}#if:{{{last_album|{{{Last album|}}}}}}|{{{{{|safesubst:}}}#invoke:Stringstring|match|1={{{last_albumreleased|{{{Last albumrelease|}}}}}}|2=< ?/? ?br ?/? ?>%s*d%((d%d+)%)d|nomatchignore_errors = true}}|{{{{{|safesubst:}}}#invoke:Stringstring|match|1={{{last_albumreleased|{{{Last albumrelease|}}}}}}|2=<li>%((d%d+)%)</li></ul></div>}}}}}}}}d%d|next_titleignore_errors ={{{{{|safesubst: true}}}#if: {{{next_title|}}}|{{{next_title|}}}|{{{{{|safesubst:}}}#ifswitch:{{{next_albumInfobox album/link|{{{Next albumtype|}}}} }}|{{{{{W|safesubst:}}}#invoke:String|match|1={{{next_album|{{{NextExtended albumplay|EP}}}}}}|2 =^''([^<]+)''%s*< ?/?EP|#default ?br= ?/? ?>|nomatch={{{{{|safesubstlc:}}}#invoke:String|match|1={{{next_albumInfobox album/link|{{{Next albumtype|}}}}}}|2=^<div class="plainlist"><ul><li>''([^<]+)''</li>}}}}}}}}|next_year={{Infobox album/link|{{{type|safesubst:}}}#if:{{{next_year| }}}|{{{next_year|}}}|{{#if:{{{longtype|safesubst:}}}|&#if:32;{{{next_album|{{{Next albumlongtype|}}}}}}|{{{{{|safesubst:}}}#invokeif:String|match|1={{{next_albumartist|{{{Next album|}}}}}}|2=<&#32;by ?/? ?br ?/? ?>%s*%((%d+)%)|nomatch={{{{{artist|safesubst:}}}#invoke:String|match|1={{{next_album|{{{Next album|}}}}}}|2=<li>%((%d+)%)</li></ul></div>noreplace}}}}}}}}|$B={{infobox<!--
 
| italic title= {{{italic_title|{{{italic title|{{{Italic title|}}}}}}}}}
-->{{Infobox
| italic title= {{{italic_title|{{{italic title|{{{Italic title|}}}}}}<noinclude>no</noinclude>}}}
| bodyclass = vevent haudio
 
| aboveclass = summary album
| abovestyle = {{#ifeq:{{{italic_title|{{{italic title|{{{Italic title|yes}}}}}}}}}|yes|font-style: italic;}} background-color: {{#ifeq:{{Infobox album/color|{{{type|{{{Type|}}}}}}}}|khaki|{{Infobox album/color}}|{{Infobox album/color|{{{type|{{{Type|}}}}}} }} }}
| above = {{#if:{{{name|{{{Name|}}}}}}|{{{name|{{{Name}}}}}}|<includeonly><span style="font-style: normal">Untitled</span></includeonly>}}
 
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{#switch:{{{image|{{{cover|{{{Cover|}}}}}}}}}|blank=|???=Nocover.png|#default={{{image|{{{cover|{{{Cover|}}}}}}}}}}}|border={{{border|{{{Border|}}}}}}|alt={{{alt|{{{Alt|}}}}}}}}
| caption = {{{caption|{{{Caption|}}}}}}
 
| headerstyle = background-color: {{#ifeq:{{Infobox album/color|{{{type|{{{Type|}}}}}}}}|khaki|{{Infobox album/color}}|{{Infobox album/color|{{{type|{{{Type|}}}}}}}}}}
| headerclass = description
 
| header1 = <includeonly>{{Infobox album/link|{{{type|{{{Type|}}}}}} }}</includeonly>{{#if:{{{longtype|{{{Longtype|}}}}}}|&#32;{{{longtype|{{{Longtype}}}}}}}}{{#if:{{{artist|{{{Artist|}}}}}}|&#32;by <spandiv class="contributor" style="display:inline">{{{artist|{{{Artist}}}}}}</spandiv> }}
| label2 = Released
| data2 = {{{released|{{{Released|}}}}}}
| class2 = published
| label3 = Recorded
| data3 = {{{recorded|{{{Recorded|}}}}}}
| class3 = plainlist
| label4 = Venue
| data4 = {{{venue|{{{Venue|}}}}}}
| label5 = Studio
| data5 = {{{studio|{{{Studio|}}}}}}
| class5 = plainlist
| label6 = [[{{W|Music genre|Genre]]}}
| data6 = {{#ifexist:Template:Infobox album/genre/{{FULLPAGENAME}}|{{Infobox album/genre/{{FULLPAGENAME}}}}|{{{Genregenre|}}}}}}
| class6 = category hlist
| label7 = Length
| data7 = {{#invoke:hms|main|duration={{{length|{{{Length|}}}}}}}}
| label8 = Language
| data8 = {{{language|{{{Language|}}}}}}
| class8 = category
| label9 = [[{{W|Record label|Label]]}}
| data9 = {{{label|{{{Label|}}}}}}
| class9 = hlist
| label10 = [[{{W|Film director|Director]]}}
| data10 = {{{director|{{{Director|}}}}}}
| class10 = hlist
| label11 = [[{{W|Record producer|Producer]]}}
| data11 = {{{producer|{{{Producer|}}}}}}
| class11 = hlist
| label12 = Compiler
| data12 = {{{compiler|{{{Compiler|}}}}}}
| class12 = hlist
 
| header13 = {{#if:{{{last_album|{{{Last album|}}}}}}{{{next_album|{{{Next album|}}}}}}{{{prev_title|}}}{{{next_title|}}}|{{#if:{{{chronology|{{{Chronology|}}}}}}|{{{chronology|{{{Chronology|}}}}}}|{{{artist|{{{Artist}}}}}}}} chronology}}
| data14 header13 = {{#if:{{{last_album|}}}{{{Last albumnext_album|}}}{{{prev_title|}}}{{{next_albumnext_title|}}}|{{#if:{Next album{{chronology|}}}|{{{chronology|}}}|{{#ifeq: {prev_title{str letter|{{delink| {{{artist|}}} }}}}|0|{{{next_titleartist|}}}|{{#invoke:String2 | ucfirst |{{{artist|}}}}}}}}} chronology }}
| data14 = {{#if:{{{last_album|}}}{{{next_album|}}}{{{prev_title|}}}{{{next_title|}}}|
{{(!}} style="background: transparent; width: 100%; min-width: 100%; border-collapse: collapse; display: inline-table;"
{{!}}- style="line-height: 1.4em;"
{{!}} style="width: 33%; text-align: center; vertical-align: top; padding: .2em .1em .2em 0" {{!}} {{#if:{{{prev_title|}}}|''{{{prev_title}}}''{{#if:{{{prev_year|}}}|<br />({{{prev_year}}})}}|{{{last_album|}}}<span style="display:none">{{#if:{Last{{last_album|}}}|{{#invoke:String|match|error_category=Music albuminfoboxes with Module:String errors{{!}}A|1={{{last_album|}}}|2=^''([^<]+)''%s*< ?/? ?[Bb][Rr] ?/? ?>|nomatch={{#invoke:String|match|error_category=Music infoboxes with Module:String errors{{!}}A|1={{{last_album|}}}|2=^<div class="plainlist"><ul><li>''([^<]+)''</li>}}}}{{#invoke:String|match|error_category=Music infoboxes with Module:String errors{{!}}A|1={{{last_album|}}}|2=< ?/? ?[Bb][Rr] ?/? ?>%s*%((%d+)%)|nomatch={{#invoke:String|match|error_category=Music infoboxes with Module:String errors{{!}}A|1={{{last_album|}}}|2=<li>%((%d+)%)</li></ul></div>}}}}}}</span> }}
{{!}} style="width: 33%; text-align: center; vertical-align: top; padding: .2em .1em" {{!}} {{{this_album|{{{This album|'''''{{{name|{{{Name|{{PAGENAMEBASE}} }}}}}}'''''}}}{{#if:{{{next_year|}}}{{{prev_year|}}}|<br />({{{year|{{#invoke:String|match|error_category=Music infoboxes with Module:String errors{{{released!}}A|{{{Releasedreleased|}}}}}}|%d%d%d+}}}}})}}}}}}}}
{{!}} style="width: 33%; text-align: center; vertical-align: top; padding: .2em 0 .2em .1em" {{!}} {{#if:{{{next_title|}}}|''{{{next_title}}}''{{#if:{{{next_year|}}}|<br />({{{next_year}}})}}|{{{next_album|}}}<span style="display:none">{{#if:{Next{{next_album|}}}|{{#invoke:String|match|error_category=Music albuminfoboxes with Module:String errors{{!}}A|1={{{next_album|}}}|2=^''([^<]+)''%s*< ?/? ?[Bb][Rr] ?/? ?>|nomatch={{#invoke:String|match|error_category=Music infoboxes with Module:String errors{{!}}A|1={{{next_album|}}}|2=^<div class="plainlist"><ul><li>''([^<]+)''</li>}}}}{{#invoke:String|match|error_category=Music infoboxes with Module:String errors{{!}}A|1={{{next_album|}}}|2=< ?/? ?[Bb][Rr] ?/? ?>%s*%((%d+)%)|nomatch={{#invoke:String|match|error_category=Music infoboxes with Module:String errors{{!}}A|1={{{next_album|}}}|2=<li>%((%d+)%)</li></ul></div>}}}}}}</span> }}
{{!)}}
}}
| below = {{{misc|{{{Misc|}}}}}}
 
| below = {{{misc|{{{Misc|}}}}}}
}}{{category handler
|main={{#ifeq:{{Infobox album/color|{{{type|{{{Type|}}}}}}|Test}}|Test
|[[Category:Album articles with non-standard infoboxes]]
}}{{#ifeq:{{Infobox album/color|{{{type|{{{Type|}}}}}}}}|khaki
|[[Category:Album articles with non-standard infoboxes]][[Category:Song articles needing single infobox conversion]]
}}[[Category:Articles with hAudio microformats]]{{#switch:{{lc:{{{image|{{{cover|{{{Cover|}}}}}}}}}}}
|
|???
|nocover.png = [[Category:Album infoboxes lacking a cover]]
}}{{#switch:{{lc:{{{image|{{{alt|}}}}}}}}
|
|??? = {{main other|[[Category:Album articles lacking alt text for covers]]}}
}}
}}{{#if:{{#ifeq:{{str left|{type{{last_album|}}}|22}}|<div class="plainlist"|1|}}{{#ifeq:{Type{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|italic title|Italictype title|type|Type|name|Name |image |cover|Cover |border|Border |alt|Alt |caption|Caption |longtype|Longtype |artist|Artist |released|Released |recorded|Recorded |venue|Venue |studio|Studio |genre|Genre |length|Length |language|Language |label|Label |director|Director |producer|Producer |compiler|Compiler|last_album|Last album|next_album|Next album|chronology|Chronology|this_album|This album|prev_title|prev_year|next_title|next_year|chronology|year|misc|Misc}}{{#if:{{#invoke:String|match|1error_category=Music infoboxes with Module:String errors{{{prev_title|}!}}A|1={{{last_albumprev_title|}}}{{{Last albumlast_album|}}}{{{prev_year|}}}{{{next_title|}}}{{{next_album|}}}{{{Next album|}}}{{{next_year|}}}{{{italic_title|}}}{{{italic title|}}}{{{Italic title|}}}{{{type|}}}{{{Type|}}}{{{name|}}}{{{Name|}}}{{{image|}}}{{{cover|}}}{{{Cover|}}}{{{border|}}}{{{Border|}}}{{{alt|}}}{{{Alt|}}}{{{caption|}}}{{{Caption|}}}{{{longtype|}}}{{{Longtype|}}}{{{artist|}}}{{{Artist|}}}{{{released|}}}{{{Released|}}}{{{recorded|}}}{{{Recorded|}}}{{{venue|}}}{{{Venue|}}}{{{studio|}}}{{{Studio|}}}{{{genre|}}}{{{Genre|}}}{{{length|}}}{{{Length|}}}{{{language|}}}{{{Language|}}}{{{label|}}}{{{Label|}}}{{{director|}}}{{{Director|}}}{{{producer|}}}{{{Producer|}}}{{{compiler|}}}{{{Compiler|}}}{{{chronology|}}}{{{Chronology|}}}{{{this_album|}}}{{{This album|}}}{{{year|}}}x|2=</?t[drh][ >]|nomatch=}}|{{main other|[[Category:Music infoboxes with malformed table placement|A]]}}{{#if:{{{Italic title|}}}{{{Name|}}}{{{Type|}}}{{{Cover|}}}{{{Border|}}}{{{Alt|}}}{{{Caption|}}}{{{Longtype|}}}{{{Artist|}}}{{{Released|}}}{{{Recorded|}}}{{{Venue|}}}{{{Studio|}}}{{{Genre|}}}{{{Length|}}}{{{Language|}}}{{{Label|}}}{{{Director|}}}{{{Producer|}}}{{{Compiler|}}}{{{Chronology|}}}{{{Misc|}}}{{{last_album|}}}{{{Last album|}}}{{{this_album|}}}{{{This album|}}}{{{next_album|}}}{{{Next album|}}}|[[Category:Music infoboxes with deprecated parameters|A]]}}{{main other|{{#if:{{{length|{{{Length|}}}}}}|{{#if:{{#invoke:String|match|error_category=Music infoboxes with Module:String errors{{!}}A|1={{#invoke:hms|main|duration={{{length|{{{Length|}}}}}}}}|2=class="duration"|plain=true|nomatch=}}|[[Category:Articles with hAudio microformats]]}}}}}}}}<noinclude>
}}{{#if:{{#ifeq:{{str left|{{{last_album|{{{Last album|}}}}}}|22}}|<div class="plainlist"|1|}}{{#ifeq:{{str left|{{{this_album|{{{This album|}}}}}}|22}}|<div class="plainlist"|1|}}{{#ifeq:{{str left|{{{next_album|{{{Next album|}}}}}}|22}}|<div class="plainlist"|1|}}|[[Category:Pages using infobox chronology parameters with plainlists]]
}}{{#ifeq:{{{type|}}}{{{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|italic title|Italic title|type|Type|name|Name|image|cover|Cover|border|Border|alt|Alt|caption|Caption|longtype|Longtype|artist|Artist|released|Released|recorded|Recorded|venue|Venue|studio|Studio|genre|Genre|length|Length|language|Language|label|Label|director|Director|producer|Producer|compiler|Compiler|last_album|Last album|next_album|Next album|chronology|Chronology|this_album|This album|prev_title|prev_year|next_title|next_year|year|misc|Misc}}{{#if:{{#invoke:String|match|1={{{prev_title|}}}{{{last_album|}}}{{{Last album|}}}{{{prev_year|}}}{{{next_title|}}}{{{next_album|}}}{{{Next album|}}}{{{next_year|}}}{{{italic_title|}}}{{{italic title|}}}{{{Italic title|}}}{{{type|}}}{{{Type|}}}{{{name|}}}{{{Name|}}}{{{image|}}}{{{cover|}}}{{{Cover|}}}{{{border|}}}{{{Border|}}}{{{alt|}}}{{{Alt|}}}{{{caption|}}}{{{Caption|}}}{{{longtype|}}}{{{Longtype|}}}{{{artist|}}}{{{Artist|}}}{{{released|}}}{{{Released|}}}{{{recorded|}}}{{{Recorded|}}}{{{venue|}}}{{{Venue|}}}{{{studio|}}}{{{Studio|}}}{{{genre|}}}{{{Genre|}}}{{{length|}}}{{{Length|}}}{{{language|}}}{{{Language|}}}{{{label|}}}{{{Label|}}}{{{director|}}}{{{Director|}}}{{{producer|}}}{{{Producer|}}}{{{compiler|}}}{{{Compiler|}}}{{{chronology|}}}{{{Chronology|}}}{{{this_album|}}}{{{This album|}}}{{{year|}}}x|2=</?t[drh][ >]|nomatch=}}|[[Category:Music infoboxes with malformed table placement|A]]}}{{#if:{{{Italic title|}}}{{{Name|}}}{{{Type|}}}{{{Cover|}}}{{{Border|}}}{{{Alt|}}}{{{Caption|}}}{{{Longtype|}}}{{{Artist|}}}{{{Released|}}}{{{Recorded|}}}{{{Venue|}}}{{{Studio|}}}{{{Genre|}}}{{{Length|}}}{{{Language|}}}{{{Label|}}}{{{Director|}}}{{{Producer|}}}{{{Compiler|}}}{{{Chronology|}}}{{{Misc|}}}{{{last_album|}}}{{{Last album|}}}{{{this_album|}}}{{{This album|}}}{{{next_album|}}}{{{Next album|}}}|[[Category:Music infoboxes with deprecated parameters|A]]}}{{main other|{{#if:{{{length|{{{Length|}}}}}}|{{#if:{{#invoke:String|match|1={{#invoke:hms|main|duration={{{length|{{{Length|}}}}}}}}|2=class="duration"|plain=true|nomatch=}}|[[Category:Articles with hAudio microformats]]}}}}}}}}<noinclude>
{{Documentation}}
<!-- Add categories to the /doc subpage, not here. -->