Difference between revisions of "Template:Infobox album"

From The Wiki Camp 2
Jump to navigation Jump to search
 
(13 intermediate revisions by 3 users not shown)
Line 29: Line 29:
 
| label6      = [[Music genre|Genre]]
 
| label6      = [[Music genre|Genre]]
 
| data6      = {{{genre|}}}
 
| data6      = {{{genre|}}}
| class6      = category hlist hlist-separated
+
| class6      = category hlist
 
| label7      = Length
 
| label7      = Length
| data7      = {{#invoke:Hms|main|duration={{{length|}}}}}
+
| data7      = {{#invoke:hms|main|duration={{{length|}}}}}
 
| label8      = Language
 
| label8      = Language
 
| data8      = {{{language|}}}
 
| data8      = {{{language|}}}
Line 37: Line 37:
 
| label9      = [[Record label|Label]]
 
| label9      = [[Record label|Label]]
 
| data9      = {{{label|}}}
 
| data9      = {{{label|}}}
| class9      = hlist hlist-separated
+
| class9      = hlist
 
| label10    = [[Film director|Director]]
 
| label10    = [[Film director|Director]]
 
| data10      = {{{director|}}}
 
| data10      = {{{director|}}}
| class10    = hlist hlist-separated
+
| class10    = hlist
 
| label11    = [[Record producer|Producer]]
 
| label11    = [[Record producer|Producer]]
 
| data11      = {{{producer|}}}
 
| data11      = {{{producer|}}}
| class11    = hlist hlist-separated
+
| class11    = hlist
 
| label12    = Compiler
 
| label12    = Compiler
 
| data12      = {{{compiler|}}}
 
| data12      = {{{compiler|}}}
| class12    = hlist hlist-separated
+
| class12    = hlist
  
 
| 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;"
+
<div style="display:flex;">
{{!}}- style="line-height: 1.4em;"
+
<div style="line-height: 1.4em;"></div>
{{!}} 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}}})}}|}}
+
<div 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}}})}}|}}</div>
{{!}} style="width: 33%; text-align: center; vertical-align: top; padding: .2em .1em" {{!}} '''''{{{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+}}}}})}}
+
<div style="width: 33%; text-align: center; vertical-align: top; padding: .2em .1em"> '''''{{{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+}}}}})}}</div>
{{!}} 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}}})}}|}}
+
<div 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}}})}}|}}</div>
{{!)}}
+
</div>
 
}}
 
}}
 
| below      = {{{misc|}}}
 
| below      = {{{misc|}}}
Line 63: Line 63:
 
  }}{{#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|}}}}}}}}
+
  }}{{#switch:{{lc:{{{image|{{{cover|}}}}}}}}
 
   |
 
   |
 
   |???
 
   |???
Line 71: Line 71:
 
   |??? = {{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]]}}}}}}}}<noinclude>
+
}}{{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=}}|}}}}}}}}<noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
<!-- Add categories to the /doc subpage, not here. -->
 
<!-- Add categories to the /doc subpage, not here. -->
 
</noinclude>
 
</noinclude>

Latest revision as of 07:17, 1 May 2023