Template:Track: Difference between revisions
Template page
More actions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
{{#template_params:title (label=Title)|key (label=Key)|duration (label=Duration)|bpm (label=BPM)|camelot (label=Camelot)|time_signature (label=Time Signature)}} | {{#template_params:title (label=Title)|key (label=Key)|image (label=Image)|duration (label=Duration)|bpm (label=BPM)|camelot (label=Camelot)|time_signature (label=Time Signature)}} | ||
{{#cargo_declare:_table=tracks|title=String|music_key=List (,) of String|duration=Integer|bpm=Integer|camelot=String|time_signature=String}} | {{#cargo_declare:_table=tracks|title=String|image=File|music_key=List (,) of String|duration=Integer|bpm=Integer|camelot=String|time_signature=String}} | ||
</noinclude><includeonly>{{#cargo_store:_table=tracks}} | </noinclude><includeonly>{{#cargo_store:_table=tracks}}<table class="infobox-table citizen-table-nowrap floatright"> | ||
{{# | <tr id="infobox-table-img-bg"> | ||
[[Category: | <td width="100%" colspan="3" class="infobox-table-img">{{#if:{{{image|}}}|[[{{{image}}}|400px]]|[[File:AlbumArt_Placeholder.jpg|400px]]}}</td> | ||
</includeonly> | </tr> | ||
<tr> | |||
<th width="100%" colspan="3" class="infobox-table-name"><b>''{{{title}}}''</b></th> | |||
</tr> | |||
{{#if:{{{music_key|}}}|<tr> | |||
<td width="40%" valign="top" colspan="2"><noinclude></noinclude>Key<noinclude></noinclude></td> | |||
<td width="60%">{{{music_key}}}</td> | |||
</tr>}} | |||
{{#if:{{{camelot|}}}|<tr> | |||
<td width="40%" valign="top" colspan="2"><noinclude></noinclude>Camelot<noinclude></noinclude></td> | |||
<td width="60%">{{{camelot}}}</td> | |||
</tr>}} | |||
{{#if:{{{time_signature|}}}|<tr> | |||
<td width="40%" valign="top" colspan="2"><noinclude></noinclude>Time Signature<noinclude></noinclude></td> | |||
<td width="60%">{{{time_signature}}}</td> | |||
</tr>}} | |||
{{#if:{{{bpm|}}}|<tr> | |||
<td width="40%" valign="top" colspan="2"><noinclude></noinclude>BPM<noinclude></noinclude></td> | |||
<td width="60%">{{{bpm}}}</td> | |||
</tr>}} | |||
{{#if:{{{duration|}}}|<tr> | |||
<td width="40%" valign="top" colspan="2"><noinclude></noinclude>Duration<noinclude></noinclude></td> | |||
<td width="60%">{{{duration}}}</td> | |||
</tr>}} | |||
</table>[[Category:{{FULLPAGENAME}}]] [[Category:Games]] {{DISPLAYTITLE:''{{{title}}}''}}<templatestyles src="Template:Game/styles.css" /></includeonly> | |||
Revision as of 09:03, 27 October 2025
This is the "Track" template.
It should be called in the following format:
{{Track
|title=
|key=
|image=
|duration=
|bpm=
|camelot=
|time_signature=
}}
Edit the page to see the template text.
This template defines the table "tracks". View table.