Actions

Template

Difference between revisions of "TrackBob"

From Sonic Retro

(32 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{|cellpadding="0" cellspacing="0" style="padding: 0.1em; float:right; margin-left:15px; border: 1px solid #98C0FF; border-right-width: 1px; border-bottom-width: 1px; text-align:left; color: #000; background-color: #FFFFFF;" width="210"
+
{{BobTable|
| [[Image:{{{cover}}}|275px]]
+
{{BobRow||{{{cover|}}}|align=center|default=[[File:Notavailable.svg]]<includeonly>[[Category:No cover]]</includeonly>|content=[[File:{{{cover}}}|{{ #if: {{{coverwidth|}}} | {{{coverwidth}}} | 275px}}]]}}
|-
+
{{BobRow||{{{title|}}}|default=" {{PAGENAME}} "|content=" {{{title}}} "{{ #if: {{{description|}}} |<br/>{{{description}}}}}|headline=yes|align=center}}
|style="padding: 0.3em; font-family: sans-serif; font-size: 0.9em; background-color: #98C0FF; text-align: center;"| '''''{{PAGENAME}}'''''<br/>{{ #if: {{{description|}}} | {{{description}}}<br> | }}
+
{{BobRow||{{{album|}}}|content='''Album''': ''{{{album}}}''}}
|-
+
{{BobRow||{{{artist|}}}|content='''Artist''': {{{artist}}}}}
|style="padding: 0.3em; line-height: 1.5em" |
+
{{BobRow||{{{compose|}}}|content='''Composed by''': {{{compose}}}[[Category:Move to production credits section]]}}
{{ #if: {{{album|}}} | '''Album''': {{{album}}}<br> | }}{{
+
{{BobRow||{{{arrange|}}}|content='''Arrangement by''': {{{arrange}}}[[Category:Move to production credits section]]}}
#if: {{{arrange|}}} | '''Arrangement and Music by''': {{{arrange}}}<br> | }}{{
+
{{BobRow||{{{lyrics|}}}|content='''Lyrics by''': {{{lyrics}}}[[Category:Move to production credits section]]}}
#if: {{{lyrics|}}} | '''Lyrics by''': {{{lyrics}}}<br> | }}{{
+
{{BobRow||{{{vocals|}}}|content='''Vocals''': {{{vocals}}}[[Category:Move to production credits section]]}}
#if: {{{vocals|}}} | '''Vocals''': {{{vocals}}}<br> | }}{{
+
{{BobRow||{{{guitar|}}}|content='''Guitar''': {{{guitar}}}[[Category:Move to production credits section]]}}
#if: {{{guitar|}}} | '''Guitar''': {{{guitar}}}<br> | }}{{
+
{{BobRow||{{{bass|}}}|content='''Bass''': {{{bass}}}[[Category:Move to production credits section]]}}
#if: {{{bass|}}} | '''Bass''': {{{bass}}}<br> | }}{{
+
{{BobRow||{{{drums|}}}|content='''Drums''': {{{drums}}}[[Category:Move to production credits section]]}}
#if: {{{drums|}}} | '''Drums''': {{{drums}}}<br> | }}{{
+
{{BobRow||{{{additional|}}}|content='''Additional credits''': {{{additional}}}[[Category:Move to production credits section]]}}
#if: {{{additional|}}} | '''Additional Credits''': {{{additional}}}<br> | }}{{
+
{{BobRow||{{{bpm|}}}|content='''Beats per minute''': {{{bpm}}}}}
#if: {{{download|}}} | {{{download}}} | }}
+
}}<includeonly>[[Category:Tracks]]</includeonly><noinclude>
|}
 
  
<noinclude>
 
 
==Usage==
 
==Usage==
 
This template is to be used on articles about specific [[:Category:Tracks|music tracks]]. Place the following at the top of a page:
 
This template is to be used on articles about specific [[:Category:Tracks|music tracks]]. Place the following at the top of a page:
  
 
<pre>
 
<pre>
{{Track
+
{{TrackBob
 
| cover=
 
| cover=
 +
| coverwidth=
 +
| title=
 
| description=
 
| description=
 
| album=
 
| album=
| arrange=
+
| artist=
| lyrics=
+
| bpm=
| vocals=
 
| guitar=
 
| bass=
 
| drums=
 
| additional=
 
| download=
 
 
}}
 
}}
 
</pre>
 
</pre>
  
All fields except "cover" are optional. If using the download function (i.e., the song is in the OSV or the [http://www.albums.sonicretro.org AlbumDump]), use the FlashMP3 extension--<nowiki><flashmp3>http://file.url|download</flashmp3></nowiki>.
+
All fields except "cover" are optional.
  
[[Category:Sonic Retro Templates]]</noinclude>
+
===Example===
 +
{{TrackBob
 +
| cover=Hedgehog.jpg
 +
| title=Hedgehog's Theme
 +
| description=Main Theme, Hedgehog
 +
| album=[[Sonic the Hedgehog]]
 +
| label=[[Sega]]
 +
}}
 +
<pre>
 +
{{TrackBob
 +
| cover=Hedgehog.jpg
 +
| title=Hedgehog's Theme
 +
| description=Main Theme, Hedgehog
 +
| album=[[Sonic the Hedgehog]]
 +
| label=[[Sega]]
 +
}}
 +
</pre>
 +
 
 +
[[Category:Breakout box templates]]</noinclude>

Revision as of 16:20, 4 October 2019

Notavailable.svg
" TrackBob "

Usage

This template is to be used on articles about specific music tracks. Place the following at the top of a page:

{{TrackBob
| cover=
| coverwidth=
| title=
| description=
| album=
| artist=
| bpm=
}}

All fields except "cover" are optional.

Example

Hedgehog.jpg
"Hedgehog's Theme"
Main Theme, Hedgehog
Album: Sonic the Hedgehog
{{TrackBob
| cover=Hedgehog.jpg
| title=Hedgehog's Theme
| description=Main Theme, Hedgehog
| album=[[Sonic the Hedgehog]]
| label=[[Sega]]
}}