Difference between revisions of "Template:Extra album cover/doc"
Jump to navigation
Jump to search
imported>George Ho (→TemplateData: fix typo) |
imported>Zackmann08 (removing support for deprecated params. All uses have been converted.) |
||
Line 5: | Line 5: | ||
'''Important''': When using this template, please ensure you comply with the [[WP:NFCC|non-free content criteria]]. This includes not using multiple non-free images when one would suffice. | '''Important''': When using this template, please ensure you comply with the [[WP:NFCC|non-free content criteria]]. This includes not using multiple non-free images when one would suffice. | ||
− | |||
− | |||
====Infobox album==== | ====Infobox album==== | ||
Line 14: | Line 12: | ||
<pre style="overflow:auto">{{Infobox album | <pre style="overflow:auto">{{Infobox album | ||
... | ... | ||
− | | misc = {{ | + | | misc = {{Extra album cover |
| header = | | header = | ||
| type = studio | | type = studio | ||
Line 30: | Line 28: | ||
<pre style="overflow:auto">{{Infobox single | <pre style="overflow:auto">{{Infobox single | ||
... | ... | ||
− | | misc = {{ | + | | misc = {{Extra album cover |
| header = | | header = | ||
| type = single | | type = single | ||
Line 46: | Line 44: | ||
"params": { | "params": { | ||
"header": { | "header": { | ||
− | |||
− | |||
− | |||
− | |||
"label": "Header", | "label": "Header", | ||
"description": "text for top of image", | "description": "text for top of image", | ||
Line 57: | Line 51: | ||
}, | }, | ||
"type": { | "type": { | ||
− | |||
− | |||
− | |||
"label": "Type", | "label": "Type", | ||
"description": "sets the header color", | "description": "sets the header color", | ||
Line 68: | Line 59: | ||
"cover": { | "cover": { | ||
"aliases": [ | "aliases": [ | ||
− | |||
"image" | "image" | ||
], | ], | ||
Line 78: | Line 68: | ||
}, | }, | ||
"cover_size": { | "cover_size": { | ||
− | |||
− | |||
− | |||
− | |||
"label": "Cover size", | "label": "Cover size", | ||
"description": "specifies the image size" | "description": "specifies the image size" | ||
}, | }, | ||
"alt": { | "alt": { | ||
− | |||
− | |||
− | |||
"label": "Alt", | "label": "Alt", | ||
"description": "alternative text for the visually impaired", | "description": "alternative text for the visually impaired", | ||
Line 94: | Line 77: | ||
}, | }, | ||
"border": { | "border": { | ||
− | |||
− | |||
− | |||
"label": "Border", | "label": "Border", | ||
"description": "type \"yes\" to add a 1px border to the image", | "description": "type \"yes\" to add a 1px border to the image", | ||
Line 102: | Line 82: | ||
}, | }, | ||
"caption": { | "caption": { | ||
− | |||
− | |||
− | |||
− | |||
− | |||
"label": "Caption", | "label": "Caption", | ||
"description": "adds a caption beneath the image", | "description": "adds a caption beneath the image", |
Revision as of 20:31, 13 November 2018
![]() | This is a documentation subpage for Template:Extra album cover. It contains usage information, categories and other content that is not part of the original template page. |
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 = }} }}
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
Parameter | Description | Type | Status | |
---|---|---|---|---|
Header | header | text for top of image
| String | suggested |
Type | type | sets the header color
| String | suggested |
Cover | cover image | the file name for the cover
| File | required |
Cover size | cover_size | specifies the image size | Unknown | optional |
Alt | alt | alternative text for the visually impaired | String | optional |
Border | border | type "yes" to add a 1px border to the image | String | optional |
Caption | caption | adds a caption beneath the image
| String | optional |