Difference between revisions of "Template:Music Infobox"
From A3! Wiki
Fimbulvetr (talk | contribs) |
|||
(22 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly> | + | <noinclude>{{:Template:Music Infobox/Docs}} |
− | {| class="infobox musicinfo {{{troupe|}}}music" style="padding: 1em; margin-left: 1em; margin-bottom: 1em; float:right; border-radius:15px; cellpadding=3 | + | [[Category:Templates]]</noinclude> |
+ | <includeonly>[[Category:Music]] | ||
+ | <div id="contentSub"><span class="subpages">< [[Music]]</span></div> | ||
+ | {{#css: | ||
+ | .springmusic {background: #ffeff4; border: 1px solid #FF91B2} | ||
+ | .summermusic {background: #fff9e5; border: 1px solid #ffc800} | ||
+ | .autumnmusic {background: #fff0e8; border: 1px solid #ff9b63} | ||
+ | .wintermusic {background: #e9f6ff; border: 1px solid #6ac1ff} | ||
+ | .mankaimusic {background: #ffd4df; border: 1px solid #fd678f} | ||
+ | |||
+ | .lyrictoggle-h tr:nth-of-type(2) td { | ||
+ | width: 33%; | ||
+ | } | ||
+ | |||
+ | @media only screen and (min-width: 80em) { | ||
+ | .musicinfo-h {display: none;} | ||
+ | } | ||
+ | @media only screen and (max-width: 80em) { | ||
+ | .musicinfo {display: none; float: none; padding: 0;} | ||
+ | } | ||
+ | |||
+ | }} | ||
+ | <div class="list {{#if: {{{troupe|}}} | {{{troupe}}}music |}} flex-container musicinfo-h" style="width:100%; min-width: 22em; justify-content: center; font-size: 90%; {{#if: {{{color|}} | background: var(--{{{color}}}-light); border: 1px solid var(--{{{color}}})|}}"> | ||
+ | <div style="flex-basis: 150px; flex-grow: 1; max-width: 300px;">[[File:{{{albumcover|}}}|center]]</div> | ||
+ | <div style="flex-basis: 150px; flex-grow: 3;"> | ||
+ | {| cellpadding=3 style="width:100%" | ||
+ | |- | ||
+ | ! colspan="2" class="{{{troupe|}}}music musicinfo-title" | {{SUBPAGENAME}} | ||
+ | |- | ||
+ | ! Vocals | ||
+ | | {{{character|}}} | ||
+ | |- | ||
+ | ! CV | ||
+ | | {{{cv|}}} | ||
+ | |- | ||
+ | ! Lyrics | ||
+ | | {{{lyricist|}}} | ||
+ | |- | ||
+ | ! Composition | ||
+ | | {{{composition|}}} | ||
+ | |- | ||
+ | ! Arrangement | ||
+ | | {{{arrangement|}}} | ||
+ | |- | ||
+ | ! Album | ||
+ | | [[Music#{{{album}}}|{{{album}}}]] | ||
+ | |- | ||
+ | |} | ||
+ | {| class="lyrictoggle-h" cellpadding=3 style="width:100%" | ||
+ | ! colspan="3" class="{{{troupe|}}}music musicinfo-title" | Lyrics Toggles | ||
+ | |- | ||
+ | |<span class="mw-customtoggle-Kanji">Show/Hide Kanji</span> | ||
+ | |<span class="mw-customtoggle-Romaji">Show/Hide Romaji</span> | ||
+ | |<span class="mw-customtoggle-English">Show/Hide English</span> | ||
+ | |} | ||
+ | </div> | ||
+ | </div> | ||
+ | |||
+ | {| class="infobox musicinfo {{{troupe|}}}music" style="width:24em; padding: 1em; margin-left: 1em; margin-bottom: 1em; float:right; border-radius:15px;" cellpadding=3 | ||
|- | |- | ||
| colspan="2" | [[File:{{{albumcover|}}}|300px|center]] | | colspan="2" | [[File:{{{albumcover|}}}|300px|center]] | ||
Line 32: | Line 90: | ||
|colspan="2" align="center"|<span class="mw-customtoggle-English">Show/Hide English</span> | |colspan="2" align="center"|<span class="mw-customtoggle-English">Show/Hide English</span> | ||
|} | |} | ||
− | |||
</includeonly> | </includeonly> | ||
− | |||
− |
Latest revision as of 21:30, 12 November 2024
Creates a music infobox for use on lyric pages. This template automatically adds the page it's on to Category:Music.
How to Use[edit]
Add the template to lyric pages by using this template:
{{Music Infobox |troupe= |albumcover= |character= |cv= |lyricist= |composition= |arrangement= |album= }}
troupe should be in lowercase. This defines the colour scheme of the infobox.
albumcover should be the file name of the image, without the preceding "File:" but including the extension, eg. .png
character should be the CHARACTER's name in Western order (Name Surname) as a link, eg. [[Sakuya Sakuma]].
For cv, lyricist, composition and arrangement, it should be self-explanatory. This should also follow Western order. Refer to Wiki_Guide#Names.
If there are multiple characters, voice actors, composers, etc. separate each name with a comma.