Template:Cover box: Difference between revisions

From Hololive Fan Wiki
Content added Content deleted
No edit summary
(Undo revision 45064 by H2232 (talk))
Tag: Undo
 
(3 intermediate revisions by the same user not shown)
Line 4: Line 4:
! 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}}}
! 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|}}}]]{{#if:{{{Main Link|}}}|<small style="clear:both;">{{{Main Link}}}</small>|<!--No link-->}}
| width="240px" rowspan="{{#if:{{{Sung by|}}}|3|2}}" style="text-align:center;" | [[File:{{{Image|Logo - hololive (Textless).png}}}|{{{Size|{{#if:{{{Image|}}}|240x140px|100x100px}}}}}|center|link={{{Main Link|}}}]]{{#if:{{{Main Link|}}}|<small style="clear:both;">[{{{Main Link}}} Listen to cover]</small>|<!--No link-->}}
| '''Original by:''' {{{Original by|}}}
| '''Original by:''' {{{Original by|}}}
|-
|-

Latest revision as of 06:16, 23 December 2023

{{{Title}}}
Original by:
Credits:


Usage[edit]

{{Cover box
| Title       = 
| Main Link   = 
| Original by = 
| Sung by     = (optional)
| Credits     = 
| Image       = (optional)
| Size        = (optional)
| Headerstyle = (optional)
}}

Required parameters[edit]

  • 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 image
  • Original 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[edit]

  • 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[edit]

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[edit]

See the box project page and discussion page: