Template:Song: Difference between revisions
Jump to navigation
Jump to search
Brumlesten (talk | contribs) m (Brumlesten moved page Template:Single to Template:Song without leaving a redirect: Make it work for every song) |
Brumlesten (talk | contribs) (Add optional fields) |
||
| Line 1: | Line 1: | ||
{| class="songInfobox" style="float:right; clear:right; margin:0 15px 15px 0; width: | {| 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|}}} | |||
|- | }} | ||
{{#if:{{{released|}}}|{{!}}- | |||
! Released | ! Released | ||
{{!}} {{{released|}}} | |||
|- | }} | ||
{{#if:{{{genre|}}}|{{!}}- | |||
! Genre | ! Genre | ||
{{!}} {{{genre|}}} | |||
|- | }} | ||
{{#if:{{{length|}}}|{{!}}- | |||
! Length | ! Length | ||
{{!}} {{{length|}}} | |||
|- | }} | ||
{{#if:{{{label|}}}|{{!}}- | |||
! Label | ! Label | ||
{{!}} {{{label|}}} | |||
|- | }} | ||
{{#if:{{{writer|}}}|{{!}}- | |||
! Songwriter | ! Songwriter | ||
{{!}} {{{writer|}}} | |||
|- | }} | ||
{{#if:{{{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.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| name | name | no description | String | required |
| cover | cover | no description
| File | optional |
| artist | artist | no description | String | required |
| album | album | no description | String | optional |
| released | released | no description | Date | optional |
| genre | genre | no description | String | optional |
| length | length | no description | String | optional |
| label | label | no description | String | optional |
| writer | writer | no description | String | optional |
| producer | producer | no description | String | optional |