Difference between revisions of "Template:Discobox"

MuseWiki, wiki for the band Muse
Jump to navigation Jump to search
(Nested logic. Hope it doesn't break anything.)
(Gave most vars *Refs)
 
(64 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| class="discobox {{{type}}}box" cellspacing="2"
{| class="discobox wikitable infbox"
! class="head" colspan="5" |
! colspan="2" | {{
    {{ #ifeq:{{{type}}} |  
#ifeq:{{{Type}}} |
          mixed promo compilation |  
mixed promo compilation |
          Mixed promo compilation |
Mixed promo compilation |
          {{ #ifeq:{{{type}}} |  
{{ #ifeq:{{{Type}}} |
              compilation |  
compilation |
              Compilation |
Compilation |
              Muse {{{type |release}}}
Muse {{{Type |release}}}
          }}
}}
    }}
}}{{#if:{{{DetailsSection |}}} |
<div>[[#Details |details]]</div>
}}
|-
|-
| '''Name'''
| Name
| colspan="5" | {{{Name|''Unknown''}}}{{{NameRef|}}}
| {{{Name |''Unknown''}}}{{{NameRef |}}}
|- class="even"
| '''Tracks'''
| colspan="5" | {{{Tracks|''Unknown''}}}
|-
|-
{{#ifeq:{{{Length}}}|-||
| Tracks
{{td}} '''Total length'''
| {{{Tracks |''Unknown''}}}{{{TracksRef |}}}
{{td}} colspan="5" {{td}} {{{Length|''Unknown''}}}
|-
{{tr}} class="even"
{{#ifeq:{{{Length}}} | - ||
{{vb}} Total length
{{vb}} {{{Length |''Unknown''}}}{{{LengthRef |}}}
{{vb}}-
}}
}}
| '''Recorded'''
| Recorded
| colspan="5" class="even" | {{{Recorded|''Unknown''}}}
| {{{Recorded |''Unknown''}}}{{{RecordedRef |}}}
|-
| Writer/composer
| {{{Writer |''Unknown''}}}{{{WriterRef |}}}
|-
|-
| '''Writer/composer'''
| Producer
| colspan="5" | {{{Writer|''Unknown''}}}
| {{{Producer |''Unknown''}}}{{{ProducerRef |}}}
|- class="even"
| '''Producer'''
| colspan="5" |{{{Producer|''Unknown''}}}
|-
|-
{{#ifeq:{{{Art}}}|-||
{{#ifeq:{{{Art}}} | - ||
{{td}}'''Art work'''
{{vb}}Art work
{{td}} colspan="5" {{td}}{{{Art|''Unknown''}}}
{{vb}} {{{Art |''Unknown''}}}{{{ArtRef |}}}
{{tr}} class="even"
{{vb}}-
}}
{{#ifeq:{{{Publisher}}} | - ||
{{vb}} Publisher
{{vb}} {{{Publisher |''Unknown''}}}{{{PublisherRef |}}}
{{vb}}-
}}
}}
{{#ifeq:{{{Publisher}}}|-||
{{#ifeq:{{{Format}}} | - ||
{{td}} '''Publisher'''
{{vb}} Format(s)
{{td}} colspan="5" {{td}}{{{Publisher|''Unknown''}}}
{{vb}} {{{Format |''Unknown''}}}{{{FormatRef |}}}
{{tr}}  
{{vb}}-
}}
}}
{{#ifeq:{{{Format}}}|-||
{{#ifeq:{{{CatNumber}}} | - ||
{{td}} '''Format(s)'''
{{vb}} Catalogue №
{{td}} colspan="5" {{td}}{{{Format|''Unknown''}}}
{{vb}} {{{CatNumber |''Unknown''}}}{{{CatNumberRef |}}}
{{tr}} class="even"
{{vb}}-
}}
}}
{{#ifeq:{{{CatNumber}}}|-||
{{#ifeq:{{{Release}}} | - ||
{{td}} '''Catalogue number'''
{{vb}} Release date
{{td}} colspan="5" {{td}}{{{CatNumber|''Unknown''}}}
{{vb}} {{{Release |''Unknown''}}}{{{ReleaseRef |}}}
{{tr}}  
{{vb}}-
}}
}}
{{#ifeq:{{{Release}}}|-||
{{#ifeq:{{{Chart}}} | - ||
{{td}}'''Release date'''
{{vb}} Chart position
{{td}} colspan="5" {{td}}{{{Release|''Unknown''}}}{{{ReleaseRef|}}}
{{vb}} {{{Chart |''Unknown''}}}{{{ChartRef |}}}
{{tr}} class="even"
{{vb}}-
}}
}}
{{#ifeq:{{{Chart Position}}}|-||
{{#ifeq:{{{Type}}} | single |
{{td}}'''Chart position'''
{{vb}} Album
{{td}} colspan="5" {{td}}{{{Chart Position|''Unknown''}}}
{{vb}} {{{Album |''Unknown''}}}
{{tr}}  
}}
}}
{{#ifeq:{{{type}}}|single
|{{td}} '''Album'''
{{td}} colspan="5" {{td}}{{{Album|''Unknown''}}}|-||
}}
|-
|-
! style="-moz-border-radius:.5em;" colspan="5" class="TextToUpper" |{{{type}}} chronology
! colspan="2" | {{{Type}}} chronology
|- style="text-align:center; font-size:small"
|-
| width="150" |{{#if:{{{Previous{{{type}}}|}}}|<small>[[{{{Previous{{{type}}}}}} ({{{type}}}){{vb}}{{{Previous{{{type}}}}}}]]</small>}}
| class="discobox-chron" colspan="2" |
|<small>'''<'''</small>
{{
| width="150" |<small>'''{{{Name|Insert current {{{type}}}}}}'''</small>
#if:{{{Previous |}}} |
|<small>'''>'''</small>
[[{{{PreviousLink}}} {{vb}} {{{Previous}}}]]
| width="150" |{{#if:{{{Next{{{type}}}|}}}|<small>[[{{{Next{{{type}}}}}} ({{{type}}}){{vb}}{{{Next{{{type}}}}}}]]</small>}}
}}<div>{{
|- style="color:#000;"
#if:{{{Previous |}}} |
|{{#if:{{{single1|}}}|style="text-align:center" colspan="5"{{vb}}<small>Singles:</small>
&#32;←&#32;
{{tr}} style="text-align:center"
}}</div><div class="discobox-chron-current">{{{Name |Insert current {{{Type}}}}}}</div><div>{{
{{td}} colspan="5" {{vb}}
#if:{{{Next |}}} |
{{#if:{{{single1 |}}} | [[Image:{{{image1}}} {{vb}} 70x70px {{vb}} link={{{single1}}} (single)]] }}
&#32;→&#32;
{{#if:{{{single2 |}}} | [[Image:{{{image2}}} {{vb}} 70x70px {{vb}} link={{{single2}}} (single)]] }}
}}</div>{{
{{#if:{{{single3 |}}} | [[Image:{{{image3}}} {{vb}} 70x70px {{vb}} link={{{single3}}} (single)]] }}
#if:{{{Next |}}} |
{{#if:{{{single4 |}}} | [[Image:{{{image4}}} {{vb}} 70x70px {{vb}} link={{{single4}}} (single)]] }}
[[{{{NextLink}}} {{vb}} {{{Next}}}]]
{{#if:{{{single5 |}}} | [[Image:{{{image5}}} {{vb}} 70x70px {{vb}} link={{{single5}}} (single)]] }}
}}
{{#if:{{{single6 |}}} | [[Image:{{{image6}}} {{vb}} 70x70px {{vb}} link={{{single6}}} (single)]] }}
{{
#if:{{{single1 |}}} |
{{vb}}-
! class="small" colspan="2" {{vb}} Singles
{{vb}}- style="text-align: center"
{{vb}} colspan="2" {{vb}} [[File:{{{image1}}} {{vb}} 70x70px {{vb}} link={{{single1}}} (single)]]{{
#if:{{{single2 |}}} |
[[File:{{{image2}}} {{vb}} 70x70px {{vb}} link={{{single2}}} (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 -->
<includeonly>[[Category:Discography]]{{
<includeonly>[[Category:Discography]]{{
    #ifeq:{{{type |}}} | live | [[Category:Live releases]] | {{
#ifeq:{{{Type |}}} | live |
          #if:{{{type |}}} | [[Category:{{{type}}}s]] }}
[[Category:Live releases]] | {{
    }}
#if:{{{Type |}}} |
[[Category:{{{Type}}}s]]
}}
}}




__TOC__</includeonly><noinclude>
__TOC__</includeonly><noinclude>


Need to sort out all the rest of the variables
== Usage ==
 
==Usage==
<pre>
<pre>
{{Discobox
{{Discobox
Line 102: Line 125:
| Total Length = mm:ss
| Total Length = mm:ss
| Recorded =  
| Recorded =  
| Writer =
| Writer =  
| Producer =
| Producer =  
| Mastered =
| Mastered =  
| Art =
| Art =  
| Publisher =
| Publisher =  
| Format =
| Format =  
| CatNumber =  
| CatNumber =  
| Release =  
| Release =  
| Chart Position =  
| 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)

Latest revision as of 00:38, 25 December 2011

Muse release
Name Unknown
Tracks Unknown
Total length Unknown
Recorded Unknown
Writer/composer Unknown
Producer Unknown
Art work Unknown
Publisher Unknown
Format(s) Unknown
Catalogue № Unknown
Release date Unknown
Chart position Unknown
{{{Type}}} chronology
Insert current {{{Type}}}


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!