Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:SongInfo: Difference between revisions

Template page
imported>Migration bot
Imported/generated during Bob Deluxe migration
 
Polish editable wiki layout and templates
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<noinclude>{{#cargo_declare:_table=Songs|Name=String|Composer=String|Length=String|BPM=String|Audio=Text|Icon=Text}}</noinclude><includeonly>{{#cargo_store:_table=Songs|Name={{{name|{{PAGENAME}}}}}|Composer={{{composer|}}}|Length={{{time|}}}|BPM={{{bpm|}}}|Audio={{{file|}}}|Icon={{{icon|}}}}}</includeonly>{| class="infobox" style="float:right;max-width:320px;width:28%;margin:0 0 1rem 1rem;border:1px solid #a2a9b1;background:#fff"
<noinclude>{{#cargo_declare:_table=Songs|Name=String|Composer=String|Length=String|BPM=String|Audio=Text|Instrumental=Text|Vocals=Text|Icon=Text}}
! colspan="2" style="background:{{{bordercolor|#222}}};color:#fff;font-size:120%;padding:.6rem" | {{{name|{{PAGENAME}}}}}
This template powers song infoboxes and the Cargo song table.
|-
</noinclude><includeonly>{{#cargo_store:_table=Songs|Name={{{name|{{PAGENAME}}}}}|Composer={{{composer|}}}|Length={{{time|}}}|BPM={{{bpm|}}}|Audio={{{file|}}}|Instrumental={{{inst|}}}|Vocals={{{vocal|}}}|Icon={{{icon|}}}}}{| class="bd-infobox bd-song-infobox"
| colspan="2" style="text-align:center" | {{#if:{{{icon|}}}|[[File:{{{icon}}}|96px]]}}
! colspan="2" style="background:{{{bordercolor|#1f2328}}};color:#fff" | {{{name|{{PAGENAME}}}}}
|-
{{#if:{{{icon|}}}|{{!}}-
{{!}} colspan="2" class="bd-infobox-media" {{!}} [[File:{{{icon}}}|120px]]}}
{{#if:{{{time|}}}|{{!}}-
! Length
! Length
| {{{time|}}}
{{!}} {{{time}}}}}
|-
{{#if:{{{bpm|}}}|{{!}}-
! BPM
! BPM
| {{{bpm|}}}
{{!}} {{{bpm}}}}}
|-
{{#if:{{{composer|}}}|{{!}}-
! Composer
! Composer
| {{{composer|}}}
{{!}} {{{composer}}}}}
|-
{{#if:{{{file|}}}|{{!}}-
! Audio
! Main audio
| {{#if:{{{file|}}}|[[Media:{{{file}}}|{{{file}}}]]}}
{{!}} [[File:{{{file}}}|300px]]<br><span class="bd-file-note">[[Media:{{{file}}}|Open media file]]</span>}}
{{#if:{{{inst|}}}|{{!}}-
! Instrumental
{{!}} [[Media:{{{inst}}}|{{{inst}}}]]}}
{{#if:{{{vocal|}}}|{{!}}-
! Voices
{{!}} [[Media:{{{vocal}}}|{{{vocal}}}]]}}
|}
|}
[[Category:Songs]]
[[Category:Songs]]</includeonly>

Latest revision as of 23:27, 21 May 2026

This template defines the table "Songs". View table. This template powers song infoboxes and the Cargo song table.