Difference between revisions of "Template:Infobox album"

From The Wiki Camp 2
Jump to navigation Jump to search
 
(6 intermediate revisions by 2 users not shown)
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="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