Difference between revisions of "MusicCreditsTable"

From Sega Retro

(Created page with "{|class="prettytable sortable" !ID !Name !Description !Credits !Used !Comments |- {{{1}}} |} <noinclude>Category:Templates</noinclude>")
 
 
(8 intermediate revisions by one other user not shown)
Line 1: Line 1:
{|class="prettytable sortable"
+
<includeonly>{{#vardefine:format|{{{format|}}}}}{|class="prettytable sortable"
!ID
+
{{#ifeq:{{{noid|}}}|yes|{{#vardefine:noid|{{{noid|}}}}}|!ID}}
!Name
+
{{#ifeq:{{{noname|}}}|yes|{{#vardefine:noname|{{{noname|}}}}}|!Name}}
!Description
+
!class="unsortable"|Description
 
!Credits
 
!Credits
 
!Used
 
!Used
!Comments
+
!class="unsortable"|Comments
 
|-
 
|-
 
{{{1}}}
 
{{{1}}}
|}
+
|}{{clearvar|format|noid|noname}}</includeonly><noinclude>This template is for displaying individual song credits. For use on [[:Category:Credits|production credits]] sub-pages.
<noinclude>[[Category:Templates]]</noinclude>
+
 
 +
==Usage==
 +
<pre>
 +
{{MusicCreditsTable|format=xx|
 +
{{MusicCreditsRow
 +
| ID= <!-- IDs from the sound test or in the game's data. -->
 +
| name= <!-- Song name, if applicable. -->
 +
| desc= <!-- What the song is typically used for, e.g. Level 1 -->
 +
| credits=
 +
* '''Role 1:''' Name
 +
* '''Role 2:''' Name
 +
| used=no <!-- Use this parameter if the song is not used in normal play, e.g. Song ID 10 from Sonic 2. -->
 +
| comments=
 +
}}
 +
}}
 +
</pre>
 +
 
 +
If there are no song IDs and/or names, use "<tt>noid=yes</tt>" and/or "<tt>noname=yes</tt>" respectively.
 +
 
 +
==Examples==
 +
{{MusicCreditsTable|
 +
{{MusicCreditsRow
 +
|ID=10
 +
|name=Bums
 +
|desc=A song about bums
 +
|credits=
 +
*'''Is a bum:''' [[Mr. Bums]]
 +
*'''May also be a bum:''' [[Mrs. Bums]]
 +
|comments=Samples "Bums Bums Bums" by Bums Inc.
 +
}}
 +
}}
 +
 
 +
{{MusicCreditsTable|format=MD|noid=yes|noname=yes|
 +
{{MusicCreditsRow
 +
|ID=10
 +
|name=Bums
 +
|desc=A song about bums
 +
|credits=
 +
*'''Is a bum:''' [[Mr. Bums]]
 +
*'''May also be a bum:''' [[Mrs. Bums]]
 +
|used=no
 +
|comments=Samples "Bums Bums Bums" by Bums Inc.
 +
}}
 +
}}
 +
 
 +
[[Category:Templates]]</noinclude>

Latest revision as of 15:48, 9 December 2022

This template is for displaying individual song credits. For use on production credits sub-pages.

Usage

{{MusicCreditsTable|format=xx|
{{MusicCreditsRow
| ID= <!-- IDs from the sound test or in the game's data. -->
| name= <!-- Song name, if applicable. -->
| desc= <!-- What the song is typically used for, e.g. Level 1 -->
| credits=
* '''Role 1:''' Name
* '''Role 2:''' Name
| used=no <!-- Use this parameter if the song is not used in normal play, e.g. Song ID 10 from Sonic 2. -->
| comments=
}}
}}

If there are no song IDs and/or names, use "noid=yes" and/or "noname=yes" respectively.

Examples

ID Name Description Credits Used Comments
10 Bums A song about bums Yes Samples "Bums Bums Bums" by Bums Inc.
Description Credits Used Comments
A song about bums No Samples "Bums Bums Bums" by Bums Inc.