Template:Album: Difference between revisions
Template page
More actions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
{{#template_params:title (label=Title)|barcode (label=Barcode)|catalog_number (label=Catalog Number)|label (label=Label)|release_price (label=Release Price)}} | {{#template_params:image (label=Image)|title (label=Title)|barcode (label=Barcode)|catalog_number (label=Catalog Number)|label (label=Label)|release_price (label=Release Price)}} | ||
{{#cargo_declare:_table=albums|title=String|barcode=List (,) of String|catalog_number=List (,) of String|label=List (,) of Page|release_price=List (,) of String}} | {{#cargo_declare:_table=albums|image=List (,) of File|title=String|barcode=List (,) of String|catalog_number=List (,) of String|label=List (,) of Page|release_price=List (,) of String}} | ||
</noinclude><includeonly>{{#cargo_store:_table=albums}} | </noinclude><includeonly>{{#cargo_store:_table=albums}}<table class="infobox-table citizen-table-nowrap floatright"> | ||
{{# | <tr id="infobox-table-img-bg"> | ||
[[Category:Albums]] | <td width="100%" colspan="3" class="infobox-table-img">{{#if:{{{image|}}}|[[{{{image}}}|400px]]|[[File:Placeholderv2.png|400px]]}}</td> | ||
</includeonly> | </tr> | ||
<tr> | |||
<th width="100%" colspan="3" class="infobox-table-name"><b>{{{title}}}</b></th> | |||
</tr> | |||
{{#if:{{{catalog_number|}}}|<tr> | |||
<td width="40%" valign="top" colspan="2"><noinclude></noinclude>Catalog Number<noinclude></noinclude></td> | |||
<td width="60%">{{{catalog_number}}}</td> | |||
</tr>}} | |||
{{#if:{{{barcode|}}}|<tr> | |||
<td width="40%" valign="top" colspan="2"><noinclude></noinclude>Barcode<noinclude></noinclude></td> | |||
<td width="60%">{{{barcode}}}</td> | |||
</tr>}} | |||
{{#if:{{{label|}}}|<tr> | |||
<td width="40%" valign="top" colspan="2"><noinclude></noinclude>Label(s)<noinclude></noinclude></td> | |||
<td width="60%">{{#arraymap:{{{label}}}|,|x|[[x]]}}</td> | |||
</tr>}} | |||
{{#if:{{{release_price|}}}|<tr> | |||
<td width="40%" valign="top" colspan="2"><noinclude></noinclude>Release Price<noinclude></noinclude></td> | |||
<td width="60%">{{{release_price}}}</td> | |||
</tr>}} | |||
</table>[[Category:Albums]]<templatestyles src="Template:Game/styles.css" /></includeonly> | |||
Revision as of 06:18, 27 October 2025
This is the "Album" template.
It should be called in the following format:
{{Album
|image=
|title=
|barcode=
|catalog_number=
|label=
|release_price=
}}
Edit the page to see the template text.
This template defines the table "albums". View table.