Difference between revisions of "Template:Extra album cover/doc"
imported>Zackmann08 (removing support for deprecated params. All uses have been converted.) |
imported>Ojorojo (clarified Infobox song type) |
||
(6 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. --> | <!-- Categories go at the bottom of this page and interwikis go in Wikidata. --> | ||
+ | {{Lua|Module:Check for unknown parameters}} | ||
===Usage=== | ===Usage=== | ||
Line 24: | Line 25: | ||
Other values for {{para|type}} are at [[Template:Infobox album/color]]. | Other values for {{para|type}} are at [[Template:Infobox album/color]]. | ||
− | ====Infobox | + | ====Infobox song==== |
− | For use with {{tl|Infobox | + | For use with {{tl|Infobox song}}; use this template in {{para|misc}} like this: |
− | <pre style="overflow:auto">{{Infobox single | + | <pre style="overflow:auto">{{Infobox song |
+ | | type = single | ||
... | ... | ||
| misc = {{Extra album cover | | misc = {{Extra album cover | ||
Line 37: | Line 39: | ||
}} | }} | ||
}}</pre> | }}</pre> | ||
+ | |||
+ | '''Note''': In the event that {{para|type|single}} is ''not'' used in Infobox song, specify <code>song</code> in the {{para|type}} for this subtemplate, so that a light blue color will be produced. | ||
+ | |||
+ | == Tracking category == | ||
+ | * {{clc|Category:Pages using extra album cover with unknown parameters}} | ||
==TemplateData== | ==TemplateData== | ||
Line 46: | Line 53: | ||
"label": "Header", | "label": "Header", | ||
"description": "text for top of image", | "description": "text for top of image", | ||
− | "example": " | + | "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 | + | "example": "song", |
"type": "string", | "type": "string", | ||
"suggested": true | "suggested": true | ||
Line 63: | Line 71: | ||
"label": "Cover", | "label": "Cover", | ||
"description": "the file name for the cover", | "description": "the file name for the cover", | ||
− | "example": " | + | "example": "Example.jpg", |
"type": "wiki-file-name", | "type": "wiki-file-name", | ||
"required": true | "required": true | ||
Line 88: | Line 96: | ||
} | } | ||
}, | }, | ||
− | "description": "For use with {{Infobox album}} | + | "description": "For use with {{Infobox album}} or {{Infobox song}} – adds an extra album cover or image", |
"paramOrder": [ | "paramOrder": [ | ||
"header", | "header", | ||
Line 97: | Line 105: | ||
"border", | "border", | ||
"caption" | "caption" | ||
− | ] | + | ], |
+ | "format": "block" | ||
} | } | ||
</templatedata> | </templatedata> | ||
− | + | <includeonly>{{sandbox other|| | |
− | <includeonly>{{ | ||
<!-- 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]] | ||
+ | [[Category:Templates that add a tracking category]] | ||
}}</includeonly> | }}</includeonly> |
Latest revision as of 15:52, 25 May 2019
![]() | 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. |
![]() | This template uses Lua: |
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 song
For use with {{Infobox song}}; use this template in |misc=
like this:
{{Infobox song | type = 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 = }} }}
Note: In the event that |type=single
is not used in Infobox song, specify song
in the |type=
for this subtemplate, so that a light blue color will be produced.
Tracking category
TemplateData
TemplateData for Extra album cover
For use with {{Infobox album}} or {{Infobox song}} – 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 |