Difference between revisions of "Template:Songbox"

MuseWiki, wiki for the band Muse
Jump to navigation Jump to search
(+Track var & logic)
(Moved help to Help:Templates/Songbox, with improvements. +{{{Helpbox}}})
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{| id="songbox" class="infbox wikitable" cellspacing="2"
<noinclude>{{Helpbox}}
 
</noinclude>{| id="songbox" class="infbox wikitable" cellspacing="2"
! colspan="2" | Muse song
! colspan="2" | Muse song
|-
|-
Line 7: Line 9:
| Album/single
| Album/single
| {{{Album |<span class="unknown">Unknown</span>}}}{{
| {{{Album |<span class="unknown">Unknown</span>}}}{{
#if:{{{Track |}}} |
#if:{{{Track |}}}
<span class="small">({{{Track}}})</span>
| <span class="small">&#32;({{{Track}}})</span>
}}
}}
|-
|-
Line 31: Line 33:
| Producer
| Producer
| {{{Producer |<span class="unknown">Unknown</span>}}}
| {{{Producer |<span class="unknown">Unknown</span>}}}
|-
{{
| Chart position
#switch:{{{Chart position}}}
| {{{Chart position |<span class="unknown">Unknown</span>}}}{{#if:{{{Cover |}}} | [[Category:Covers]] | [[Category:Songs]] }}__NOTOC__
| - =
|}</includeonly><noinclude>
| #default =
 
{{vb}}-
This is, hopefully, an adequate temporary box to put on all the song articles.  I wrote this in about 5 minutes, and I know nothing about making templates other than 5 minutes reading Wikipedia's tutorials, so anyone who can make it look nicer or thinks of anything to add to it please do, I think some feature for international chart positions would be nice... :-)
{{vb}} Chart position
 
{{vb}} {{{Chart position |<span class="unknown">Unknown</span>}}}
Thanks to some template wizardry, this template now automatically adds articles it is added to <nowiki>[[Category:Songs]]</nowiki>
 
== Usage ==
<pre>
{{Songbox
| Name =
| Album =
| Length = mm:ss
| AltTitles =
| First =
| Recorded =
| Writer =
| Producer =
| Chart position =
}}
}}
 
{{
 
#if:{{{Cover |}}}
Which means...
| [[Category:Covers]]
 
| [[Category:Songs]]
{{Songbox
}}__NOTOC__
| Name = (The name of the song)
|}<noinclude>
| Album = (The album, single or EP the track is taken from)
| Length = mm:ss (The length of the track, duh!)
| AltTitles = (Unofficial, pre-release titles of the song)
| First = (First known gig the song was performed live, eg 'Crying Shame' would be '19th December 2004'
| Latest = (Latest known performance if greater than one month ago)
| Recorded = (Year of the first and subsequent recordings)
| Writer = (The songwriter, in most cases Sir Bellamy)
| Producer = (The producer)
| Chart position = (The highest UK chart position, other countries may be added to the template later)
}}
</pre>
 
Happy editing!


[[Category:Templates]]
[[Category:Templates]]


</noinclude>
</noinclude>

Latest revision as of 23:13, 1 September 2011

Help for using this template

Muse song
Name Unknown
Album/single Unknown
Length Unknown
Alternative titles Unknown
First live performance Unknown
Latest live performance Unknown
Recorded Unknown
Writer/composer Unknown
Producer Unknown
Chart position Unknown