Difference between revisions of "Template:Discobox"

MuseWiki, wiki for the band Muse
Jump to navigation Jump to search
m (Wehay, obfuscatus maximus)
(Meh, fubar it up for now. Simplified greatly)
Line 1: Line 1:
{| class="discobox {{{Type |{{{type |}}}}}}box wikitable infbox"
{| class="discobox {{{Type |}}}box wikitable infbox"
! colspan="5" | {{
! colspan="5" | {{
     #ifeq:{{{Type |{{{type}}}}}} |
     #ifeq:{{{Type}}} |
           mixed promo compilation |
           mixed promo compilation |
           Mixed promo compilation |
           Mixed promo compilation |
           {{ #ifeq:{{{Type |{{{type}}}}}} |
           {{ #ifeq:{{{Type}}} |
               compilation |
               compilation |
               Compilation |
               Compilation |
               Muse {{{Type {{{type |release}}}}}}
               Muse {{{Type |release}}}
           }}
           }}
     }}
     }}
Line 56: Line 56:
{{tr}}
{{tr}}
}}
}}
{{#ifeq:{{{Chart |{{{Chart Position}}}}}} | - ||
{{#ifeq:{{{Chart}}} | - ||
{{td}} Chart position
{{td}} Chart position
{{td}} colspan="5" {{td}}{{{Chart |{{{Chart Position |''Unknown''}}}}}}
{{td}} colspan="5" {{td}}{{{Chart |''Unknown''}}}
{{tr}}  
{{tr}}  
}}
}}
{{#ifeq:{{{Type |{{{type}}}}}} | single
{{#ifeq:{{{Type}}} | single
|{{td}} Album
|{{td}} Album
{{td}} colspan="5" {{td}}{{{Album |''Unknown''}}} | - ||
{{td}} colspan="5" {{td}}{{{Album |''Unknown''}}} | - ||
}}  
}}  
|-
|-
! colspan="5" class="TextToUpper" | {{{Type |{{{type}}}}}} chronology
! colspan="5" class="TextToUpper" | {{{Type}}} chronology
|- style="text-align: center;"
|- style="text-align: center;"
| width="150" | {{
| width="150" | {{
#if:{{{Previous{{{Type |{{{type}}}}}} |}}} |
#if:{{{Previous |}}} |
     <span class="normal small">[[{{{Previous{{{Type |{{{type}}}}}}}}} ({{{Type |{{{type}}}}}}){{vb}}{{{Previous{{{Type |{{{type}}}}}}}}}]]</span>
     <span class="normal small">[[{{{PreviousLink}}} {{vb}} {{{Previous}}}]]</span>
}}
}}
|<span class="small"><</span>
|<span class="small"><</span>
| width="150" | <span class="bold small">{{{Name |Insert current {{{Type |{{{type}}}}}}}}}</span>
| width="150" | <span class="bold small">{{{Name |Insert current {{{Type}}}}}}</span>
|<span class="small">></span>
|<span class="small">></span>
| width="150" |{{
| width="150" |{{
#if:{{{Next{{{Type |{{{type}}}}}} |}}} |
#if:{{{Next |}}} |
     <span class="small">[[{{{Next{{{Type |{{{type}}}}}}}}} ({{{Type |{{{type}}}}}}){{vb}}{{{Next{{{Type |{{{type}}}}}}}}}]]</span>
     <span class="small">[[{{{NextLink}}} {{vb}} {{{Next}}}]]</span>
}}
}}
{{
{{
Line 93: Line 93:
|}<!-- 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 -->
<includeonly>[[Category:Discography]]{{
<includeonly>[[Category:Discography]]{{
     #ifeq:{{{Type |{{{type |}}}}}} | live | [[Category:Live releases]] | {{
     #ifeq:{{{Type |}}}}}} | live | [[Category:Live releases]] | {{
           #if:{{{Type |{{{type |}}}}}} | [[Category:{{{Type |{{{type}}}}}}s]] }}
           #if:{{{Type |}}} | [[Category:{{{Type |}}}s]] }}
     }}
     }}


Line 119: Line 119:
| Chart =  
| Chart =  
| Type = type of release (album, EP, single ...)
| 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)
| singlen = single n (only for albums)
| imagen = image for single n (only for albums)
| imagen = image for single n (only for albums)

Revision as of 00:03, 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!