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

From blackwiki
Jump to navigation Jump to search
imported>JJMC89
(→‎Infobox single: single → song)
imported>Ojorojo
(clarified Infobox song type)
 
(2 intermediate revisions by 2 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 27: Line 28:
 
For use with {{tl|Infobox song}}; use this template in {{para|misc}} like this:
 
For use with {{tl|Infobox song}}; use this template in {{para|misc}} like this:
 
<pre style="overflow:auto">{{Infobox song
 
<pre style="overflow:auto">{{Infobox song
| type          = sigle
+
| type          = single
 
...
 
...
 
| misc          = {{Extra album cover
 
| misc          = {{Extra album cover
Line 39: Line 40:
 
}}</pre>
 
}}</pre>
  
== Categories ==
+
'''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.
*{{clc|Category:Pages using extra album cover with unknown parameters}}
+
 
 +
== Tracking category ==
 +
* {{clc|Category:Pages using extra album cover with unknown parameters}}
  
 
==TemplateData==
 
==TemplateData==
Line 111: Line 114:
 
[[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

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

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}} or {{Infobox song}} – 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