Difference between revisions of "Template:Extra album cover/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zackmann08
(+Category:Pages using extra album cover with unknown parameters)
imported>JJMC89
(update template data)
Line 49: Line 49:
 
"label": "Header",
 
"label": "Header",
 
"description": "text for top of image",
 
"description": "text for top of image",
"example": "Alternative cover",
+
"example": "UK release",
 
"type": "string",
 
"type": "string",
"suggested": true
+
"suggested": true,
 +
"default": "Alternative cover"
 
},
 
},
 
"type": {
 
"type": {
 
"label": "Type",
 
"label": "Type",
 
"description": "sets the header color",
 
"description": "sets the header color",
"example": "song, single, for albums see types in {{Infobox album/color}}",
+
"example": "song",
 
"type": "string",
 
"type": "string",
 
"suggested": true
 
"suggested": true
Line 66: Line 67:
 
"label": "Cover",
 
"label": "Cover",
 
"description": "the file name for the cover",
 
"description": "the file name for the cover",
"example": "XXX.jpg (without File:)",
+
"example": "Example.jpg",
 
"type": "wiki-file-name",
 
"type": "wiki-file-name",
 
"required": true
 
"required": true
Line 100: Line 101:
 
"border",
 
"border",
 
"caption"
 
"caption"
]
+
],
 +
"format": "block"
 
}
 
}
 
</templatedata>
 
</templatedata>
  
 
+
<includeonly>{{sandbox other||
<includeonly>{{#ifeq: {{SUBPAGENAME}} | sandbox | |
 
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
[[Category:Music infobox templates]]
 
[[Category:Music infobox templates]]
 
[[Category:Embeddable templates]]
 
[[Category:Embeddable templates]]
 
}}</includeonly>
 
}}</includeonly>

Revision as of 00:33, 18 November 2018

Usage

Important: When using this template, please ensure you comply with the non-free content criteria. This includes not using multiple non-free images when one would suffice.

Infobox album

For use with {{Infobox album}}; use this template in |misc= like this:

{{Infobox album
...
| misc    = {{Extra album cover
 | header  = 
 | type    = studio
 | cover   = 
 | border  = <!-- optional parameter, type "yes" here to add a 1px border to the cover image -->
 | alt     = 
 | caption = 
}}
}}

Other values for |type= are at Template:Infobox album/color.

Infobox single

For use with {{Infobox single}}; use this template in |misc= like this:

{{Infobox single
...
| misc          = {{Extra album cover
 | header  = 
 | type    = single
 | cover   = 
 | border  = <!-- optional parameter, type "yes" here to add a 1px border to the cover image -->
 | alt     = 
 | caption = 
}}
}}

Categories

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Extra album cover

For use with {{Infobox album}}, {{Infobox song}}, or {{Infobox single}} – adds an extra album cover or image

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Headerheader

text for top of image

Default
Alternative cover
Example
UK release
Stringsuggested
Typetype

sets the header color

Example
song
Stringsuggested
Covercover image

the file name for the cover

Example
Example.jpg
Filerequired
Cover sizecover_size

specifies the image size

Unknownoptional
Altalt

alternative text for the visually impaired

Stringoptional
Borderborder

type "yes" to add a 1px border to the image

Stringoptional
Captioncaption

adds a caption beneath the image

Example
Later American release
Stringoptional