Difference between revisions of "Template:SongDetails"

From JoCopedia
Jump to navigation Jump to search
m ("More info / purchase" seems less crass than "Purchase / more info")
m (Reverted edits by JoCopedia is raped by MarioMario456's 6-inch cock! (talk) to last revision by AirCon)
Tag: Rollback
 
(99 intermediate revisions by 23 users not shown)
Line 1: Line 1:
<noinclude>Params are as follows:
+
<noinclude>== Template parameters==
* 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
** This param is no longer necessary, but is recommended.
+
: Name of image representing the song. The image will be resized to 200 pixels in width.
* songname = name of song (deprecated param)
+
: ''Example:'' <tt>ShopVac.jpg</tt>
* albumname = album
+
: Remember to use only the filename; we'll generate all the Wiki code to go around it.
* trackno = track number on album - preface with 0 if the tracks run into double digits, to preserve order in the category
+
: If no image is entered, the template will default to [[:File:Jonathan placeholder.jpg|this placeholder]].
* length = length in format mm:ss
+
; albumname
* release = release date of the song, preferably in the format mm-dd-yyyy (to keep our American friends happy)
+
: Name of album or EP
** Not a mandatory param.
+
: ''Example:'' <tt>Where Tradition Meets Tomorrow</tt>
* 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!
+
; length
** Note that for songs which do not appear on jonathancoulton.com, the link is no longer necessary.
+
: Length of song, in format m:ss (or mm:ss for songs over 10 minutes)
* 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.
+
: ''Example:'' <tt>3:49</tt>
** This param is not necessary, and may be removed if it's considered to be against the interests of the community.
+
: ''Another example:'' <tt>0:48</tt>
</noinclude><includeonly>{| align="right"
+
; release
|+ '''{{PAGENAME}}'''
+
: Release date of the song, preferably in the format mm-dd-yyyy (to keep our American friends happy)
|-
+
: ''Example:'' <tt>09-16-2005</tt>
{{#if|{{{img|}}}|
+
; songlink
{{!}} colspan="2" {{!}} [[Image:{{{img}}}{{!}}center{{!}}150px]]
+
: A link to song page on jonathancoulton.com. Just type in the name as it appears in the store, replacing each space with <tt>+</tt>. We'll add the "<nowiki>http://www.jonathancoulton.com/songdetails/</nowiki>" part.
{{!}}-
+
: ''Example:'' <tt>Shop+Vac</tt>
}}
+
: Note that for songs which do not appear on jonathancoulton.com, this link isn't necessary.
| Album: || [[:Category:{{{albumname}}}|{{{albumname}}}]]
+
; demosonglink
|-
+
: Like songlink, but with a demo version of the song.
| Length: || {{{length}}}
+
: ''Example:'' <tt>The+Future+Soon+(Demo)</tt>
|-
+
: Make sure the word "Demo" is capitalized!
{{#if|{{{release|}}}|
+
; bloglink
{{!}} Release date: {{!!}} {{{release}}}
+
: A link to the blog entry regarding this song, in the format ''2005/10/07/thing-a-week-4-shop-vac/''. We'll add the "<nowiki>http://www.jonathancoulton.com</nowiki>".
{{!}}-
+
: ''Example:'' <tt>2005/10/07/thing-a-week-4-shop-vac/</tt>
}}
+
; reduxlink
{{#if|{{{songlink|}}}|
+
: A link to the Thing A Week Redux entry regarding this song, in the format ''7385894801/thing-a-week-41-seahorse-i-was-thinking-about''. We'll add the "<nowiki>http://thingaweekredux.com/post/</nowiki>".
{{!}} colspan="2" align="center" {{!}} [http://www.jonathancoulton.com/songdetails/{{{songlink}}} More info / purchase]
+
: ''Example:'' <tt>7385894801/thing-a-week-41-seahorse-i-was-thinking-about</tt>
{{!}}-
+
 
}}
+
None of the parameters are strictly necessary, although of course including the template with none defined is pretty useless.
{{#if|{{{bloglink|}}}|
+
</noinclude><includeonly>
{{!}} colspan="2" align="center" {{!}} [http://www.jonathancoulton.com/{{{bloglink}}} Blog link]
+
 
{{!}}-
+
<table class="infobox" cellspacing="5" style="border: 1px dashed #000; background-color: #fafafa; color: black; margin: -2em 0 0.5em 1em; padding: 0.2em; float: right; clear: right; width: 22em; text-align: left; font-size: 88%; line-height: 1.5em;">
}}
+
<tr><td colspan="2" style="text-align:center;">
|}[[Category:{{{albumname}}}|{{{trackno}}} {{PAGENAME}}]][[Category:Songs]]</includeonly>
+
[[File:{{#if:{{{img|}}}|{{{img}}}|Jonathan placeholder.jpg}}{{!}}200px]]</td></tr>
 +
<tr><td colspan="2" style="vertical-align: top; text-align: center; background: #ff9;">'''{{#if:{{{title|}}}|{{{title}}}|{{PAGENAME}}}}'''</td></tr>
 +
 
 +
{{#if: {{{albumname|}}}| <tr><th style="vertical-align: top;">Release</th><td style="vertical-align: top;">[[{{{albumname}}}]]</td></tr>}}
 +
{{#if: {{{length|}}}|   <tr><th style="vertical-align: top;">Length</th><td style="vertical-align: top;">{{{length}}}</td></tr>}}
 +
{{#if: {{{release|}}}|   <tr><th style="vertical-align: top;">Release date</th><td style="vertical-align: top;">{{{release}}}</td></tr>}}
 +
<tr><th style="vertical-align:top;">Related Pages</th><td style="vertical-align: top;">
 +
{{Song Subpage Linker | basepage={{PAGENAME}} | subpage = Lyrics}}<br />
 +
{{Song Subpage Linker | basepage={{PAGENAME}} | subpage = Tabs}}<br />
 +
{{Song Subpage Linker | basepage={{PAGENAME}} | subpage = Videos}}<br />
 +
{{Song Subpage Linker | basepage={{PAGENAME}} | subpage = Concerts}}<br />
 +
{{Song Subpage Linker | basepage={{PAGENAME}} | subpage = Other media}}</td></tr>{{#if: {{{bloglink|}}}| <tr><td colspan="2" style="text-align:center">[[joco:{{{bloglink}}}|Blog entry]]</td></tr>}}{{#if: {{{reduxlink|}}}| <tr><td colspan="2" style="text-align:center">[http://jonathancoulton.tumblr.com/post/{{{reduxlink}}} Redux entry]</td></tr>}}</table>[[Category:Songs]]</includeonly>
 +
 
 +
{{#if: {{{songlink|}}}|<div style="margin:-24px 0 -12px 0;">{{#song:{{{songlink}}} }}</div> }}
 +
 
 +
{{#if: {{{demosonglink|}}}| <br/>Demo version: {{#song:{{{demosonglink}}} }} }}

Latest revision as of 09:49, 18 October 2021

Template parameters

img
Name of image representing the song. The image will be resized to 200 pixels in width.
Example: ShopVac.jpg
Remember to use only the filename; we'll generate all the Wiki code to go around it.
If no image is entered, the template will default to this placeholder.
albumname
Name of album or EP
Example: Where Tradition Meets Tomorrow
length
Length of song, in format m:ss (or mm:ss for songs over 10 minutes)
Example: 3:49
Another example: 0:48
release
Release date of the song, preferably in the format mm-dd-yyyy (to keep our American friends happy)
Example: 09-16-2005
songlink
A link to song page on jonathancoulton.com. Just type in the name as it appears in the store, replacing each space with +. We'll add the "http://www.jonathancoulton.com/songdetails/" part.
Example: Shop+Vac
Note that for songs which do not appear on jonathancoulton.com, this link isn't necessary.
demosonglink
Like songlink, but with a demo version of the song.
Example: The+Future+Soon+(Demo)
Make sure the word "Demo" is capitalized!
bloglink
A link to the blog entry regarding this song, in the format 2005/10/07/thing-a-week-4-shop-vac/. We'll add the "http://www.jonathancoulton.com".
Example: 2005/10/07/thing-a-week-4-shop-vac/
reduxlink
A link to the Thing A Week Redux entry regarding this song, in the format 7385894801/thing-a-week-41-seahorse-i-was-thinking-about. We'll add the "http://thingaweekredux.com/post/".
Example: 7385894801/thing-a-week-41-seahorse-i-was-thinking-about

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