Template:Extra track listing: Difference between revisions

didn't work, needs more testing first
(combining old and new code)
Tag: Reverted
(didn't work, needs more testing first)
Tag: Undo
Line 1: Line 1:
{{#if:{{{Tracks|}}}
{{#if:{{{Previous track|}}}{{{Next track|}}}|
| <includeonly>{{{{{|safesubst:}}}#invoke:Unsubst-infobox||$params=album,type,tracks|$extra=chronology,tracks|$indent=1|$flags=override|$B={{Infobox
  <tr>
| child        = yes | decat = yes
    <th colspan="3" scope="col" style="text-align: center; background: {{#ifeq:{{Template:Infobox Album/color|{{{Album type|}}}}}|khaki|{{Template:Infobox Album/color}}|{{Template:Infobox Album/color|{{{Album type|}}}}}}};">{{#if:{{{Track listing|}}}|{{{Track listing}}}|'''''[[{{{Album}}}]]'''''}}{{#ifeq:{{{Type|}}}|video|&#32;video}}&#32;track listing</th>
| headerstyle  = background: {{Template:Infobox album/color|{{{type|}}}}}
 
| header2      = {{#if:{{{Tracks|}}}|{{#if:{{{Album|}}}{{{Chronology|}}}|''{{{Album|}}}{{{Chronology|}}}'' track listing}} }}
| rowcellstyle3 = {{#if:{{{Tracks|}}}|text-align:left}}
| data3        = {{{Tracks|}}}
}}{{#ifeq:{{Template:Infobox album/color|{{{Type|}}}|Test}}|Test|[[Category:Song articles with infoboxes with non-standard extra track listings|{{PAGENAME}}]]}}{{#if:{{#invoke:String|match|1={{{Type|}}}{{{Tracks|}}}{{{Album|}}}{{{Chronology|}}}x|2=</?t[drh][ >]|nomatch=}}|[[Category:Music infoboxes with malformed table placement|T]]}}{{#if:{{{Tracks|}}}||[[Category:Pages using extra track listing with no tracks]]}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using extra track listing with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Extra track listing]] with unknown parameter "_VALUE_"|ignoreblank=y| Album | Chronology | Tracks | Type }}}</includeonly>
| <tr>
  <th colspan="3" scope="col" style="text-align: center; background: {{#ifeq:{{Template:Infobox Album/color|{{{Album type|}}}}}|khaki|{{Template:Infobox Album/color}}|{{Template:Infobox Album/color|{{{Album type|}}}}}}};">{{#if:{{{Track listing|}}}|{{{Track listing}}}|'''''[[{{{Album}}}]]'''''}}{{#ifeq:{{{Type|}}}|video|&#32;video}}&#32;track listing</th>
   </tr>
   </tr>
   <tr>
   <tr>
Line 19: Line 11:
           <td style="width: 33%; text-align: center; vertical-align: top; padding: 0.2em 0 0.2em 0.1em;">{{{Next track|}}}</td>
           <td style="width: 33%; text-align: center; vertical-align: top; padding: 0.2em 0 0.2em 0.1em;">{{{Next track|}}}</td>
         </tr>
         </tr>
       </table>
       </table>}}
  </td>
  </tr>
}}
<noinclude>{{Documentation}}</noinclude>
<noinclude>{{Documentation}}</noinclude>