Difference between revisions of "Template:SongDetails"

From JoCopedia
Jump to navigation Jump to search
(removed album category link at bottom of page - mason, now album page is on nav on right)
m (simplification of album link, also made length non-required)
Line 1: Line 1:
 
<noinclude>Params are as follows:
 
<noinclude>Params are as follows:
 
* img = name of Len or other image representing the song. 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 Len or other image representing the song. 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.
 
* songname = name of song (deprecated param)
 
 
* albumname = album
 
* albumname = album
** No longer required, for non-album tracks
 
* trackno = track number on album - preface with 0 if the tracks run into double digits, to preserve order in the category
 
** No longer required, for non-album tracks
 
 
* length = length in format mm:ss
 
* length = length in format mm:ss
 
* release = release date of the song, preferably in the format mm-dd-yyyy (to keep our American friends happy)
 
* release = release date of the song, preferably in the format mm-dd-yyyy (to keep our American friends happy)
** Not a mandatory param.
 
 
* songlink = link to song page on jonathancoulton.com, eg Shop%20Vac (NOT the full URL eg http://www.jonathancoulton.com/songdetails/Shop%20Vac) Be sure NOT to include any spaces in songlink, use %20 as shown instead!
 
* songlink = link to song page on jonathancoulton.com, eg Shop%20Vac (NOT the full URL eg http://www.jonathancoulton.com/songdetails/Shop%20Vac) Be sure NOT to include any spaces in songlink, use %20 as shown instead!
 
** Note that for songs which do not appear on jonathancoulton.com, the link is no longer necessary.
 
** Note that for songs which do not appear on jonathancoulton.com, the link is no longer necessary.
 
* bloglink = link to the blog entry regarding this song, in the format 2005/10/07/thing-a-week-4-shop-vac/ ie leaving off the jonathancoulton.com domain.
 
* bloglink = link to the blog entry regarding this song, in the format 2005/10/07/thing-a-week-4-shop-vac/ ie leaving off the jonathancoulton.com domain.
** This param is not necessary, and may be removed if it's considered to be against the interests of the community.
+
 
 +
None of the params are strictly necessary, although of course including the template with none defined is pretty useless.
 
</noinclude><includeonly>{| align="right"
 
</noinclude><includeonly>{| align="right"
 
|+ '''{{PAGENAME}}'''
 
|+ '''{{PAGENAME}}'''
Line 22: Line 17:
 
}}
 
}}
 
{{#if: {{{albumname|}}} |
 
{{#if: {{{albumname|}}} |
{{!}} Album: {{!!}} [[:{{{albumname}}}{{!}}{{{albumname}}}]]
+
{{!}} Album: {{!!}} [[{{{albumname}}}]]
 +
{{!}}-
 +
}}
 +
{{#if: {{{length|}}} |
 +
{{!}} Length: {{!!}} {{{length}}}
 
{{!}}-
 
{{!}}-
 
}}
 
}}
| Length: || {{{length}}}
 
|-
 
 
{{#if: {{{release|}}} |
 
{{#if: {{{release|}}} |
 
{{!}} Release date: {{!!}} {{{release}}}
 
{{!}} Release date: {{!!}} {{{release}}}

Revision as of 21:56, 28 March 2008

Params are as follows:

  • img = name of Len or other image representing the song. Will be resized to 150 pixels width. Use the image name, eg ShopVac.jpg, NOT the image command eg Image:ShopVac.jpg.
  • albumname = album
  • length = length in format mm:ss
  • release = release date of the song, preferably in the format mm-dd-yyyy (to keep our American friends happy)
  • songlink = link to song page on jonathancoulton.com, eg Shop%20Vac (NOT the full URL eg http://www.jonathancoulton.com/songdetails/Shop%20Vac) Be sure NOT to include any spaces in songlink, use %20 as shown instead!
    • Note that for songs which do not appear on jonathancoulton.com, the link is no longer necessary.
  • bloglink = link to the blog entry regarding this song, in the format 2005/10/07/thing-a-week-4-shop-vac/ ie leaving off the jonathancoulton.com domain.

None of the params are strictly necessary, although of course including the template with none defined is pretty useless.