Jump to content

Template:Extra track listing: Difference between revisions

combining old and new code
(center text (for now))
(combining old and new code)
Tag: Reverted
Line 1: Line 1:
{{#if:{{{Previous track|}}}{{{Next track|}}}|
{{#if:{{{Tracks|}}}
  <tr>
| <includeonly>{{{{{|safesubst:}}}#invoke:Unsubst-infobox||$params=album,type,tracks|$extra=chronology,tracks|$indent=1|$flags=override|$B={{Infobox
    <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>
| child        = yes | decat = yes
| 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 11: Line 19:
           <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>