Template:Infobox album: Difference between revisions
Appearance
NeonWabbit (talk | contribs) Created page with "{{<includeonly>safesubst:</includeonly>#invoke:Unsubst-infobox||$params=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|$extra=italic_title,longtype,border,caption,language,director,compiler,chronology,year,misc|$aliases=italic title>italic_title,Italic title>italic_title,Name>name,Type>type,image>cover,Cover..." Tags: Mobile edit Mobile web edit Advanced mobile edit |
NeonWabbit (talk | contribs) No edit summary |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{<includeonly>safesubst:</includeonly>#invoke:Unsubst-infobox||$params=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|$extra=italic_title,longtype,border,caption,language,director,compiler,chronology,year,misc|$aliases=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|$flags=override|$B={{#ifeq:{{#invoke:Is infobox in lead|main|[Ii]nfobox [Aa]lbum}}|true|{{#if:{{Has short description}} |<!--Do nothing--> |{{short description|{{#invoke:Plain text|main|{{#if:{{#invoke:string|match|{{{released|}}}|%d%d%d%d|ignore_errors = true}}|{{#invoke:string|match|{{{released|}}}|%d%d%d%d|ignore_errors = true}} {{#switch:{{Infobox album/link|{{{type|}}} }}|[[Extended play|EP]] = EP|#default = {{lc:{{Infobox album/link|{{{type|}}} }}}}}}|{{Infobox album/link|{{{type|}}} }}}}{{#if:{{{longtype|}}}| {{{longtype|}}}}}{{#if:{{{artist|}}}| by {{{artist|}}}}}}}}} | {{<includeonly>safesubst:</includeonly>#invoke:Unsubst-infobox||$params=italic_title,name,type,longtype,artist,cover,imageclass,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|$extra=italic_title,longtype,border,caption,language,director,compiler,chronology,year,misc|$aliases=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|$flags=override|$B={{#ifeq:{{#invoke:Is infobox in lead|main|[Ii]nfobox [Aa]lbum}}|true|{{#if:{{Has short description}} |<!--Do nothing--> |{{#if: {{{released|}}} | {{short description|{{#invoke:Plain text|main|{{#if:{{#invoke:string|match|{{{released|}}}|%d%d%d%d|ignore_errors = true}}|{{#invoke:string|match|{{{released|}}}|%d%d%d%d|ignore_errors = true}} {{#switch:{{Infobox album/link|{{{type|}}} }}|[[Extended play|EP]] = EP|#default = {{lc:{{Infobox album/link|{{{type|}}} }}}}}}|{{Infobox album/link|{{{type|}}} }}}}{{#if:{{{longtype|}}}| {{{longtype|}}}}}{{#if:{{{artist|}}}| by {{{artist|}}}}}}}|noreplace}}}}}}}}<!-- | ||
-->{{Infobox | -->{{Infobox | ||
| italic title= {{{italic_title|<noinclude>no</noinclude> | | italic title= {{if empty|{{{italic_title|}}}|<noinclude>no</noinclude>}} | ||
| bodyclass = vevent haudio | | bodyclass = vevent haudio | ||
| aboveclass = summary album | | aboveclass = summary album | ||
| abovestyle = | | abovestyle = font-style: italic; color: inherit; background-color: {{#ifeq:{{Infobox album/color|{{{type|}}}}}|khaki|{{Infobox album/color}}|{{Infobox album/color|{{{type|}}} }} }}; font-size: 125%; | ||
| above = {{ | | above = {{if empty|{{encodefirst|1={{{name|}}}}}|<includeonly><span style="font-style: normal">Untitled</span></includeonly>}} | ||
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{#switch:{{{image|{{{cover| | | image = {{#invoke:InfoboxImage|InfoboxImage|image={{#switch:{{if empty|{{{image|}}}|{{{cover|}}}}}|blank=|???=Nocover.png|#default={{if empty|{{{image|}}}|{{{cover|}}}}}}}|border={{{border|}}}|alt={{{alt|}}}|title={{{alt|}}}}} | ||
| imageclass = {{{imageclass|}}} | |||
| caption = {{{caption|}}} | | caption = {{{caption|}}} | ||
| headerstyle = background-color: {{#ifeq:{{Infobox album/color|{{{type|}}}}}|khaki|{{Infobox album/color}}|{{Infobox album/color|{{{type|}}}}}}} | | headerstyle = color: #202122;background-color: {{#ifeq:{{Infobox album/color|{{{type|}}}}}|khaki|{{Infobox album/color}}|{{Infobox album/color|{{{type|}}}}}}} | ||
| headerclass = description | | headerclass = description | ||
| Line 27: | Line 28: | ||
| data5 = {{{studio|}}} | | data5 = {{{studio|}}} | ||
| class5 = plainlist | | class5 = plainlist | ||
| label6 = | | label6 = Genre | ||
| data6 = {{{genre|}}} | | data6 = {{{genre|}}} | ||
| class6 = category hlist | | class6 = category hlist | ||
| Line 35: | Line 36: | ||
| data8 = {{{language|}}} | | data8 = {{{language|}}} | ||
| class8 = category | | class8 = category | ||
| label9 = | | label9 = Label | ||
| data9 = {{{label|}}} | | data9 = {{{label|}}} | ||
| class9 = hlist | | class9 = hlist | ||
| label10 = | | label10 = Director | ||
| data10 = {{{director|}}} | | data10 = {{{director|}}} | ||
| class10 = hlist | | class10 = hlist | ||
| label11 = | | label11 = Producer | ||
| data11 = {{{producer|}}} | | data11 = {{{producer|}}} | ||
| class11 = hlist | | class11 = hlist | ||
| Line 50: | Line 51: | ||
| header13 = {{#if:{{{prev_title|}}}{{{next_title|}}}|{{#if:{{{chronology|}}}|{{{chronology|}}}|{{#ifeq: {{str letter|{{delink| {{{artist|}}} }}}}|0|{{{artist|}}}|{{#invoke:String2 | ucfirst |{{{artist|}}}}}}}}} chronology }} | | header13 = {{#if:{{{prev_title|}}}{{{next_title|}}}|{{#if:{{{chronology|}}}|{{{chronology|}}}|{{#ifeq: {{str letter|{{delink| {{{artist|}}} }}}}|0|{{{artist|}}}|{{#invoke:String2 | ucfirst |{{{artist|}}}}}}}}} chronology }} | ||
| data14 = {{#if:{{{prev_title|}}}{{{next_title|}}}| | | data14 = {{#if:{{{prev_title|}}}{{{next_title|}}}| | ||
{{(!}} style="background: transparent; width: 100%; min-width: 100%; border-collapse: collapse; display: inline-table;" | {{(!}} role="presentation" style="color:inherit; background: transparent; width: 100%; min-width: 100%; border-collapse: collapse; display: inline-table;" | ||
{{!}}- style="line-height: 1.4em;" | {{!}}- 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}}})}}|}} | {{!}} 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}}})}}|}} | ||
{{!}} style="width: 33%; text-align: center; vertical-align: top; padding: .2em .1em" {{!}} '''''{{{name|{{PAGENAMEBASE | {{!}} style="width: 33%; text-align: center; vertical-align: top; padding: .2em .1em" {{!}} '''''{{if empty|{{encodefirst|1={{{name|}}}}}|{{PAGENAMEBASE}}}}'''''{{#if:{{{next_year|}}}{{{prev_year|}}}|<br />({{{year|{{#invoke:String|match|error_category=Music infoboxes with Module:String errors{{!}}A|{{{released|}}}|%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}}})}}|}} | {{!}} 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}}})}}|}} | ||
{{!)}} | {{!)}} | ||
| Line 63: | Line 64: | ||
}}{{#ifeq:{{Infobox album/color|{{{type|}}}}}|khaki | }}{{#ifeq:{{Infobox album/color|{{{type|}}}}}|khaki | ||
|[[Category:Album articles with non-standard infoboxes]][[Category:Song articles needing single infobox conversion]] | |[[Category:Album articles with non-standard infoboxes]][[Category:Song articles needing single infobox conversion]] | ||
}}[[Category:Articles with hAudio microformats]]{{#switch:{{lc:{{{image|{{{cover| | }}[[Category:Articles with hAudio microformats]]{{#switch:{{lc:{{if empty|{{{image|}}}|{{{cover|}}}}}}} | ||
| | | | ||
|??? | |??? | ||
|nocover.png = [[Category:Album infoboxes lacking a cover]] | |nocover.png = {{#ifeq:{{#invoke:Is infobox in lead|main|[Ii]nfobox [Aa]lbum}}|true|[[Category:Album infoboxes lacking a cover]]}} | ||
}}{{#switch:{{lc:{{{image|{{{alt| | }}{{#switch:{{lc:{{if empty|{{{image|}}}|{{{alt|}}}}}}} | ||
| | | | ||
|??? = {{main other|[[Category:Album articles lacking alt text for covers]]}} | |??? = {{main other|[[Category:Album articles lacking alt text for covers]]}} | ||
}} | }} | ||
}}{{main other|{{#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 |compiler |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|}}}{{{prev_year|}}}{{{next_title|}}}{{{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|}}}{{{compiler|}}}{{{chronology|}}}{{{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]]}}}}}}}} | }}{{main other|{{#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 |imageclass |border |alt |caption |longtype |artist |released |recorded |venue |studio |genre |length |language |label |director |producer |compiler |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|}}}{{{prev_year|}}}{{{next_title|}}}{{{next_year|}}}{{{italic_title|}}}{{{italic title|}}}{{{type|}}}{{{name|}}}{{{image|}}}{{{imageclass|}}}{{{cover|}}}{{{border|}}}{{{alt|}}}{{{caption|}}}{{{longtype|}}}{{{artist|}}}{{{released|}}}{{{recorded|}}}{{{venue|}}}{{{studio|}}}{{{genre|}}}{{{length|}}}{{{language|}}}{{{label|}}}{{{director|}}}{{{producer|}}}{{{compiler|}}}{{{chronology|}}}{{{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]]}}}}}}}}{{#invoke:Check for conflicting parameters|check | ||
| template = [[Template:Infobox album]] | |||
| cat = {{main other|Category:Pages using infobox album with conflicting parameters}} | |||
| image; cover | |||
}} | |||