Template:Cover box: Difference between revisions
Content added Content deleted
(move responsive styles from global MediaWiki:Common.css to local templatestyles) |
(reduce header height by 0.5em) |
||
Line 2: | Line 2: | ||
{| class="wikitable responsive-width" align="center" width="100%" style="text-align:left;" |
{| class="wikitable responsive-width" align="center" width="100%" style="text-align:left;" |
||
|- |
|- |
||
! colspan="2" style="text-align:center;height: |
! colspan="2" style="text-align:center;height:2em;{{{Headerstyle|background-color:{{#ifexist:Template:{{PAGENAME}}/background-color2|{{{{PAGENAME}}/background-color2}}|<nowiki>#27c7fe</nowiki>}};color:{{#ifexist:Template:{{PAGENAME}}/color2|{{{{PAGENAME}}/color2}}|<nowiki>#ffffff</nowiki>}};}}}" | {{{Title}}} |
||
|-<!-- the Image cell spans 2 or 3 rows depending if {{{Sung by}}} is defined --> |
|-<!-- the Image cell spans 2 or 3 rows depending if {{{Sung by}}} is defined --> |
||
| width="240px" rowspan="{{#if:{{{Sung by|}}}|3|2}}" | [[File:{{{Image|Logo - hololive (Textless).png}}}|{{{Size|{{#if:{{{Image|}}}|240x140px|100x100px}}}}}|center|link={{{Main Link|}}}]] |
| width="240px" rowspan="{{#if:{{{Sung by|}}}|3|2}}" | [[File:{{{Image|Logo - hololive (Textless).png}}}|{{{Size|{{#if:{{{Image|}}}|240x140px|100x100px}}}}}|center|link={{{Main Link|}}}]] |
Revision as of 14:29, 5 January 2022
{{{Title}}} | |
---|---|
Original by: | |
Credits:
|
Usage
{{Cover box | Title = | Main Link = | Original by = | Sung by = (optional) | Credits = | Image = (optional) | Size = (optional) | Headerstyle = (optional) }}
Required parameters
Title
= the title of the song being covered. Alternate names or romanizations may be put in parentheses.Main Link
= the URL that the user will be directed to when the user clicks on the imageOriginal by
= the creator(s) of the original song that is being covered. Please also provide a link to the original song here as a courtesy.Credits
= those who worked on the cover
Optional parameters
Sung by
= the singer(s) featured in the cover. Mainly used for collab covers.Image
= the filename of the image to display, e.g. a thumbnail of the cover. Just the filename only. Do not surround the filename with[[File:...]]
. A placeholder will be shown if no image is specified.Size
= the size to display the file. Defaults to 240x140px (or 100x100px if the placeholder is used)Headerstyle
= see #Headerstyle below
Headerstyle
Which headerstyle is displayed is determined in this order:
- whatever is specified in the
|Headerstyle=
parameter (if defined) background-color:{{Template:{{PAGENAME}}/background-color2}};color:{{Template:{{PAGENAME}}/color2}}
- In other words, the template reads the values in Template:{{PAGENAME}}/background-color2 and Template:{{PAGENAME}}/color2 via transclusion
- If either page does not exist, the colors
#27c7fe
and#ffffff
will be used respectively.
Credits order
See the box project page and discussion page: