Template:SongInfo: Difference between revisions
Template page
More actions
Migration QA: repair source page, embed, or helper template |
Polish editable wiki layout and templates |
||
| 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|}}}}} | <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|# | 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="background:{{{bordercolor|#1f2328}}};color:#fff" | {{{name|{{PAGENAME}}}}} | |||
|- | {{#if:{{{icon|}}}|{{!}}- | ||
{{!}} colspan="2" class="bd-infobox-media" {{!}} [[File:{{{icon}}}|120px]]}} | |||
{{#if:{{{time|}}}|{{!}}- | |||
! Length | ! Length | ||
{{!}} {{{time}}}}} | |||
|- | {{#if:{{{bpm|}}}|{{!}}- | ||
! BPM | ! BPM | ||
{{!}} {{{bpm}}}}} | |||
|- | {{#if:{{{composer|}}}|{{!}}- | ||
! Composer | ! Composer | ||
{{!}} {{{composer}}}}} | |||
{{#if:{{{file|}}}|{{!}}- | |||
! Main audio | |||
{{!}} [[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.