Difference between revisions of "Template:AlbumDetails"

From JoCopedia
Jump to navigation Jump to search
m (floating)
 
(29 intermediate revisions by 9 users not shown)
Line 1: Line 1:
 
<noinclude>Params are as follows:
 
<noinclude>Params are as follows:
 +
* type = the type of release. If the release is an album, this parameter is not necessary. Other options follow:
 +
**EP for an extended play release
 +
**comp for a compilation
 +
**live for a live album
 
* img = name of image of the album cover. Will be resized to 150 pixels width. Use the image name, eg ShopVac.jpg, NOT the image command eg Image:ShopVac.jpg.
 
* img = name of image of the album cover. Will be resized to 150 pixels width. Use the image name, eg ShopVac.jpg, NOT the image command eg Image:ShopVac.jpg.
 
** This param is no longer necessary, but is recommended.
 
** This param is no longer necessary, but is recommended.
Line 5: Line 9:
 
* release = release date of the album, preferably in the format mm-dd-yyyy (to keep our American friends happy)
 
* release = release date of the album, preferably in the format mm-dd-yyyy (to keep our American friends happy)
 
** Not a mandatory param.
 
** Not a mandatory param.
* albumlink = link to song page on jonathancoulton.com, eg thing-a-week-i (NOT the full URL eg http://www.jonathancoulton.com/albums/thing-a-week-i) Be sure NOT to include any spaces in songlink, use %20 instead!
+
* catalog = the album's catalog number
 +
** very very non-mandatory
 +
* albumlink = link to album page on jonathancoulton.com, eg thing-a-week-i (NOT the full URL eg http://www.jonathancoulton.com/albums/thing-a-week-i) Be sure NOT to include any spaces in albumlink, use %20 instead!
 
** Note that for albums which do not appear on jonathancoulton.com, the link is not necessary.
 
** Note that for albums which do not appear on jonathancoulton.com, the link is not necessary.
</noinclude><includeonly>{| align="right" style="text-align:center;border:1px solid grey;padding:10px;margin:30px"
+
</noinclude><includeonly>
 
+
{| style="border:1px dashed #000;padding:10px;margin-left:30px;margin-bottom:30px;float:right;width:256px;"
|-
+
| colspan="2" align="center" style="background: #{{#switch:{{{type|}}}|EP=f66|comp=fdf|live=eee|ccf}};" |'''{{PAGENAME}}'''  
| colspan="2" align="center" '''{{PAGENAME}}'''  
 
 
|-
 
|-
 
{{#if: {{{img|}}} |
 
{{#if: {{{img|}}} |
{{!}} colspan="2" align="center" padding="20" {{!}} [[Image:{{{img}}}{{!}}150px]]
+
{{!}} colspan="2" align="center" padding="20" {{!}} [[Image:{{{img}}}{{!}}250px|alt={{PAGENAME}} album cover]]
{{!}}-
+
{{!}}
 
}}
 
}}
| Tracks: {{!!}} {{{tracks}}}
+
|- valign="top"
|-
+
{{#if: {{{artist|}}} |
 +
{{!}} width="35%" {{!}} '''Artist:''' {{!!}} {{{artist}}}
 +
{{!}}- valign="top"
 +
}}
 +
{{!}} width="35%" {{!}} '''Tracks:''' {{!!}} {{{tracks}}}
 +
{{!}}- valign="top"
 
{{#if: {{{release|}}} |
 
{{#if: {{{release|}}} |
{{!}} Release date: {{!!}} {{{release}}}
+
{{!}} width="35%" {{!}} '''Release date:''' {{!!}} {{{release}}}
{{!}}-
+
{{!}}- valign="top"
 +
}}
 +
{{#if: {{{catalog|}}} |
 +
{{!}}  width="35%" {{!}} '''Catalog:''' {{!!}} {{{catalog}}}
 +
{{!}}- valign="top"
 
}}
 
}}
 
{{#if: {{{albumlink|}}} |
 
{{#if: {{{albumlink|}}} |
{{!}} colspan="2" align="center" [http://www.jonathancoulton.com/albums/{{{albumlink}}} More info / purchase]
+
{{!}} colspan="2" align="center" {{!}} [http://www.jonathancoulton.com/albums/{{{albumlink}}} More info]
 
{{!}}
 
{{!}}
 
}}
 
}}
 
|}[[Category:Albums]]</includeonly>
 
|}[[Category:Albums]]</includeonly>

Latest revision as of 14:57, 15 April 2013

Params are as follows:

  • type = the type of release. If the release is an album, this parameter is not necessary. Other options follow:
    • EP for an extended play release
    • comp for a compilation
    • live for a live album
  • img = name of image of the album cover. Will be resized to 150 pixels width. Use the image name, eg ShopVac.jpg, NOT the image command eg Image:ShopVac.jpg.
    • This param is no longer necessary, but is recommended.
  • tracks = number of tracks
  • release = release date of the album, preferably in the format mm-dd-yyyy (to keep our American friends happy)
    • Not a mandatory param.
  • catalog = the album's catalog number
    • very very non-mandatory
  • albumlink = link to album page on jonathancoulton.com, eg thing-a-week-i (NOT the full URL eg http://www.jonathancoulton.com/albums/thing-a-week-i) Be sure NOT to include any spaces in albumlink, use %20 instead!
    • Note that for albums which do not appear on jonathancoulton.com, the link is not necessary.