Difference between revisions of "Template:Discobox"

MuseWiki, wiki for the band Muse
Jump to navigation Jump to search
m (Used tabs to indent conditions)
m (Mooar tabbed indentation, because sanity isn't always a bad thing)
Line 18: Line 18:
|-
|-
{{#ifeq:{{{Length}}} | - ||
{{#ifeq:{{{Length}}} | - ||
{{td}} Total length
{{td}} Total length
{{td}} colspan="5" {{td}} {{{Length |''Unknown''}}}
{{td}} colspan="5" {{td}} {{{Length |''Unknown''}}}
{{tr}}
{{tr}}
}}
}}
| Recorded
| Recorded
Line 32: Line 32:
|-
|-
{{#ifeq:{{{Art}}} | - ||
{{#ifeq:{{{Art}}} | - ||
{{td}}Art work
{{td}}Art work
{{td}} colspan="5" {{td}}{{{Art |''Unknown''}}}
{{td}} colspan="5" {{td}}{{{Art |''Unknown''}}}
{{tr}}
{{tr}}
}}
}}
{{#ifeq:{{{Publisher}}} | - ||
{{#ifeq:{{{Publisher}}} | - ||
{{td}} Publisher
{{td}} Publisher
{{td}} colspan="5" {{td}}{{{Publisher |''Unknown''}}}
{{td}} colspan="5" {{td}}{{{Publisher |''Unknown''}}}
{{tr}}  
{{tr}}  
}}
}}
{{#ifeq:{{{Format}}} | - ||
{{#ifeq:{{{Format}}} | - ||
{{td}} Format(s)
{{td}} Format(s)
{{td}} colspan="5" {{td}}{{{Format |''Unknown''}}}
{{td}} colspan="5" {{td}}{{{Format |''Unknown''}}}
{{tr}}
{{tr}}
}}
}}
{{#ifeq:{{{CatNumber}}} | - ||
{{#ifeq:{{{CatNumber}}} | - ||
{{td}} Catalogue number
{{td}} Catalogue number
{{td}} colspan="5" {{td}}{{{CatNumber |''Unknown''}}}
{{td}} colspan="5" {{td}}{{{CatNumber |''Unknown''}}}
{{tr}}  
{{tr}}  
}}
}}
{{#ifeq:{{{Release}}} | - ||
{{#ifeq:{{{Release}}} | - ||
{{td}} Release date
{{td}} Release date
{{td}} colspan="5" {{td}}{{{Release |''Unknown''}}}{{{ReleaseRef |}}}
{{td}} colspan="5" {{td}}{{{Release |''Unknown''}}}{{{ReleaseRef |}}}
{{tr}}
{{tr}}
}}
}}
{{#ifeq:{{{Chart}}} | - ||
{{#ifeq:{{{Chart}}} | - ||
{{td}} Chart position
{{td}} Chart position
{{td}} colspan="5" {{td}}{{{Chart |''Unknown''}}}
{{td}} colspan="5" {{td}}{{{Chart |''Unknown''}}}
{{tr}}  
{{tr}}  
}}
}}
{{#ifeq:{{{Type}}} | single
{{#ifeq:{{{Type}}} | single |
|{{td}} Album
{{td}} Album
{{td}} colspan="5" {{td}}{{{Album |''Unknown''}}} | - ||
{{td}} colspan="5" {{td}}{{{Album |''Unknown''}}} | - ||
}}  
}}  
|-
|-
Line 80: Line 80:
}}
}}
{{
{{
#if:{{{single1 |}}} | {{vb}}-
#if:{{{single1 |}}} |
{{vb}}-
! colspan="5" {{vb}}<span class="small">Singles:</span>
! colspan="5" {{vb}}<span class="small">Singles:</span>
{{tr}} style="text-align: center"
{{tr}} style="text-align: center"
{{td}} colspan="5" {{vb}}
{{td}} colspan="5" {{vb}}
{{#if:{{{single1 |}}} | [[File:{{{image1}}} {{vb}} 70x70px {{vb}} link={{{single1}}} (single)]] }}
{{#if:{{{single1 |}}} |
{{#if:{{{single2 |}}} | [[File:{{{image2}}} {{vb}} 70x70px {{vb}} link={{{single2}}} (single)]] }}
[[File:{{{image1}}} {{vb}} 70x70px {{vb}} link={{{single1}}} (single)]]
{{#if:{{{single3 |}}} | [[File:{{{image3}}} {{vb}} 70x70px {{vb}} link={{{single3}}} (single)]] }}
}}
{{#if:{{{single4 |}}} | [[File:{{{image4}}} {{vb}} 70x70px {{vb}} link={{{single4}}} (single)]] }}
{{#if:{{{single2 |}}} |
{{#if:{{{single5 |}}} | [[File:{{{image5}}} {{vb}} 70x70px {{vb}} link={{{single5}}} (single)]] }}
[[File:{{{image2}}} {{vb}} 70x70px {{vb}} link={{{single2}}} (single)]]
{{#if:{{{single6 |}}} | [[File:{{{image6}}} {{vb}} 70x70px {{vb}} link={{{single6}}} (single)]] }}
}}
{{#if:{{{single3 |}}} |
[[File:{{{image3}}} {{vb}} 70x70px {{vb}} link={{{single3}}} (single)]]
}}
{{#if:{{{single4 |}}} |
[[File:{{{image4}}} {{vb}} 70x70px {{vb}} link={{{single4}}} (single)]]
}}
{{#if:{{{single5 |}}} |
[[File:{{{image5}}} {{vb}} 70x70px {{vb}} link={{{single5}}} (single)]]
}}
{{#if:{{{single6 |}}} |
[[File:{{{image6}}} {{vb}} 70x70px {{vb}} link={{{single6}}} (single)]]
}}
}}
}}
|}<!-- remove the conditional and Cat:Disc once all existing discography pages have type defined -->
|}<!-- remove the conditional and Cat:Disc once all existing discography pages have type defined -->

Revision as of 02:58, 9 September 2011

Template:Td Total length Template:Td colspan="5" Template:TdUnknownTemplate:TrTemplate:TdArt work Template:Td colspan="5" Template:TdUnknownTemplate:TrTemplate:Td Publisher Template:Td colspan="5" Template:TdUnknownTemplate:TrTemplate:Td Format(s) Template:Td colspan="5" Template:TdUnknownTemplate:TrTemplate:Td Catalogue number Template:Td colspan="5" Template:TdUnknownTemplate:TrTemplate:Td Release date Template:Td colspan="5" Template:TdUnknownTemplate:TrTemplate:Td Chart position Template:Td colspan="5" Template:TdUnknownTemplate:Tr -
Muse release
Name Unknown
Tracks Unknown
Recorded Unknown
Writer/composer Unknown
Producer Unknown
{{{Type}}} chronology
< Insert current {{{Type}}} >


Need to sort out all the rest of the variables

Usage

{{Discobox
| Name = 
| Tracks = 
| Total Length = mm:ss
| Recorded = 
| Writer =
| Producer =
| Mastered =
| Art =
| Publisher =
| Format =
| CatNumber = 
| Release = 
| Chart = 
| Type = type of release (album, EP, single ...)
| Previous = Previous release
| PreviousLink = Page name of previous release
| Next = Next release
| NextLink = Page name of next release
| singlen = single n (only for albums)
| imagen = image for single n (only for albums)
}}

Happy editing!