Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Infobox album: Difference between revisions

Template page
No edit summary
Tag: Reverted
No edit summary
 
(5 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|}}}|&#32;{{{longtype|}}}}}{{#if:{{{artist|}}}|&#32;by {{{artist|}}}}}}}}}|noreplace}}}}<!--
{{<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|}}} }}|EP = EP|#default = {{lc:{{Infobox album/link|{{{type|}}} }}}}}}|{{Infobox album/link|{{{type|}}} }}}}{{#if:{{{longtype|}}}|&#32;{{{longtype|}}}}}{{#if:{{{artist|}}}|&#32;by {{{artist|}}}}}}}}}|noreplace}}}}<!--


-->{{Infobox
-->{{Infobox
Line 9: Line 9:
| above      = {{#if:{{{name|}}}|{{{name}}}|<includeonly><span style="font-style: normal">Untitled</span></includeonly>}}
| above      = {{#if:{{{name|}}}|{{{name}}}|<includeonly><span style="font-style: normal">Untitled</span></includeonly>}}


| image      = {{#invoke:InfoboxImage|InfoboxImage|image={{#switch:{{{image|{{{cover|}}}}}}|blank=|???=Nocover.png|#default={{{image|{{{cover|}}}}}}}}|border={{{border|}}}|alt={{{alt|}}}|title={{{alt|}}}}}
| image      = {{#invoke:InfoboxImage|InfoboxImage|image={{#switch:{{{image|{{{cover|}}}}}}|blank=|???=placeholder.jpg|#default={{{image|{{{cover|}}}}}}}}|border={{{border|}}}|alt={{{alt|}}}|title={{{alt|}}}}}
| caption    = {{{caption|}}}
| caption    = {{{caption|}}}


Line 16: Line 16:


| header1    = <includeonly>{{Infobox album/link|{{{type|}}} }}</includeonly>{{#if:{{{longtype|}}}|&#32;{{{longtype|}}}}}{{#if:{{{artist|}}}|&#32;by <div class="contributor" style="display:inline">{{{artist|}}}</div> }}
| header1    = <includeonly>{{Infobox album/link|{{{type|}}} }}</includeonly>{{#if:{{{longtype|}}}|&#32;{{{longtype|}}}}}{{#if:{{{artist|}}}|&#32;by <div class="contributor" style="display:inline">{{{artist|}}}</div> }}
| label2      = Released
| label2      = <span style="color:black">Released</span>
| data2      = {{{released|}}}
| data2      = {{{released|}}}
| class2      = published
| class2      = published
Line 27: Line 27:
| data5      = {{{studio|}}}
| data5      = {{{studio|}}}
| class5      = plainlist
| class5      = plainlist
| label6      = [[Music genre|Genre]]
| label6      = Genre
| data6      = {{{genre|}}}
| data6      = {{{genre|}}}
| class6      = category hlist
| class6      = category hlist
| label7      = Length
| label7      = <span style="color:black">Length</span>
| data7      = {{#invoke:duration|main|duration={{{length|}}}}}
| data7      = {{#invoke:duration|main|duration={{{length|}}}}}
| label8      = Language
| label8      = Language
| data8      = {{{language|}}}
| data8      = {{{language|}}}
| class8      = category
| class8      = category
| label9      = [[Record label|Label]]
| label9      = <span style="color:black">Label</span>
| data9      = {{{label|}}}
| data9      = {{{label|}}}
| class9      = hlist
| class9      = hlist
| label10    = [[Film director|Director]]
| label10    = Director
| data10      = {{{director|}}}
| data10      = {{{director|}}}
| class10    = hlist
| class10    = hlist
| label11    = [[Record producer|Producer]]
| label11    = <span style="color:black">Producer</span>
| data11      = {{{producer|}}}
| data11      = {{{producer|}}}
| class11    = hlist
| class11    = hlist
Line 50: Line 50:
| 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="color:inherit; background: transparent; width: 100%; min-width: 100%; border-collapse: collapse; float:right; display: inline-table;"
{{(!}} 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}}})}}|}}
Line 66: Line 66:
   |
   |
   |???
   |???
   |nocover.png = {{#ifeq:{{#invoke:Is infobox in lead|main|[Ii]nfobox [Aa]lbum}}|true|[[Category:Album infoboxes lacking a cover]]}}
   |placeholder.jpg = {{#ifeq:{{#invoke:Is infobox in lead|main|[Ii]nfobox [Aa]lbum}}|true|[[Category:Album infoboxes lacking a cover]]}}
  }}{{#switch:{{lc:{{{image|{{{alt|}}}}}}}}
  }}{{#switch:{{lc:{{{image|{{{alt|}}}}}}}}
   |
   |

Latest revision as of 17:28, 24 March 2025