Difference between revisions of "Template:Discobox"

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


Need to sort out all the rest of the variables
__TOC__</includeonly><noinclude>


==Usage==
== Usage ==
<pre>
<pre>
{{Discobox |
{{Discobox
| Name =  
| Name =  
| Tracks =  
| Tracks =  
| 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!