Template:Song: Difference between revisions

From JamiroWiki
Jump to navigation Jump to search
m (Brumlesten moved page Template:Single to Template:Song without leaving a redirect: Make it work for every song)
(Add optional fields)
Line 1: Line 1:
{| class="songInfobox" style="float:right; clear:right; margin:0 15px 15px 0; width:250px; border:1px solid #aaa; background:#f9f9f9;"
{| class="songInfobox" style="float:right; clear:right; margin:0 15px 15px 0; width:300px; border:1px solid #aaa; background:#f9f9f9;"
! colspan="2" style="text-align:center; font-size:125%; font-weight:bold;" | {{{name|}}}
! colspan="2" style="text-align:center; font-size:125%; font-weight:bold;" | "{{{name|}}}"
|-
|-
| colspan="2" style="text-align:center;" | [[File:{{{cover|}}}|250px]]
| colspan="2" style="text-align:center;" | [[File:{{{cover|Placeholder buffy.png}}}|250px]]
|-
|-
! Artist
! Artist
| {{{artist|}}}
| {{{artist|}}}
|-
 
{{#if:{{{album|}}}|{{!}}-
! Album
! Album
| {{{album|}}}
{{!}} {{{album|}}}
|-
}}
 
{{#if:{{{released|}}}|{{!}}-
! Released
! Released
| {{{released|}}}
{{!}} {{{released|}}}
|-
}}
 
{{#if:{{{genre|}}}|{{!}}-
! Genre
! Genre
| {{{genre|}}}
{{!}} {{{genre|}}}
|-
}}
 
{{#if:{{{length|}}}|{{!}}-
! Length
! Length
| {{{length|}}}
{{!}} {{{length|}}}
|-
}}
 
{{#if:{{{label|}}}|{{!}}-
! Label
! Label
| {{{label|}}}
{{!}} {{{label|}}}
|-
}}
 
{{#if:{{{writer|}}}|{{!}}-
! Songwriter
! Songwriter
| {{{writer|}}}
{{!}} {{{writer|}}}
|-
}}
 
 
{{#if:{{{producer|}}}|{{!}}-
! Producer
! Producer
| {{{producer|}}}
{{!}} {{{producer|}}}
}}
|}
|}
<noinclude>
<noinclude>
<templatedata>
<templatedata>
Line 33: Line 50:
"params": {
"params": {
"name": {
"name": {
"type": "string"
"type": "string",
"required": true
},
},
"cover": {
"cover": {
"type": "wiki-file-name"
"type": "wiki-file-name",
"default": "PlaceholderBuffy"
},
},
"artist": {
"artist": {
"type": "string"
"type": "string",
"required": true
},
},
"album": {
"album": {

Revision as of 17:01, 27 February 2026

""
Artist









No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
namename

no description

Stringrequired
covercover

no description

Default
PlaceholderBuffy
Fileoptional
artistartist

no description

Stringrequired
albumalbum

no description

Stringoptional
releasedreleased

no description

Dateoptional
genregenre

no description

Stringoptional
lengthlength

no description

Stringoptional
labellabel

no description

Stringoptional
writerwriter

no description

Stringoptional
producerproducer

no description

Stringoptional