Template:MusicInfobox: Difference between revisions

From vaporwave.wiki
Jump to navigation Jump to search
mNo edit summary
m (please only let this break things a little bit)
Line 1: Line 1:
<includeonly>{{Infobox
<includeonly>{{Infobox
  |name        = MusicInfobox
  |name        = MusicInfobox
|bodystyle    =
|titlestyle  =
  |abovestyle = background:#cfc;
  |abovestyle = background:#cfc;
|subheaderstyle =
  |above        = {{#if: {{{Title|}}} | {{{Title}}} | {{TOPLEVELPAGE}} }}
  |above        = {{#if: {{{Title|}}} | {{{Title}}} | {{TOPLEVELPAGE}} }}
|imagestyle  =
|captionstyle =
  |  image      = [[File:{{{Cover}}}|300px]]
  |  image      = [[File:{{{Cover}}}|300px]]
  |headerstyle  = background:#ccf;
  |headerstyle  = background:#ccf;
  |labelstyle  = background:#ddf; white-space: nowrap; padding-right: 15px;
  |labelstyle  = background:#ddf; white-space: nowrap; padding-right: 15px;
|datastyle    =
  |header1 = Information{{#if:{{{SortName|}}}|[[Category:Releases|{{{SortName}}}]]|[[Category:Releases]]}}
  |header1 = Information
| label1 =
| data1 =
|header2 =
  | label2 = Artist
  | label2 = Artist
  |  data2 = {{#if:{{{SortName|}}}|[[Category:Releases|{{{SortName}}}]]|[[Category:Releases]]}}{{#switch: {{{Artist}}}|Various Artists=[[:Category:Releases by Various Artists|{{{Artist}}}]]{{#if:{{{SortName|}}}|[[Category:Releases by Various Artists|{{{SortName}}}]]|[[Category:Releases by Various Artists]]}}|{{{Artist}}}}}
  |  data2 = {{#if:{{{Artist|}}}|{{#switch: {{{Artist|}}}|Various Artists=[[:Category:Releases by Various Artists|{{{Artist|}}}]]{{#if:{{{SortName|}}}|[[Category:Releases by Various Artists|{{{SortName}}}]]|[[Category:Releases by Various Artists]]}}|{{Artist|{{{Artist|}}}|C}}}}}}
  |header3 =
  | label3 = Artists
  | label3 = Additional Credits
|  data3 = {{#if:{{{Artists|}}}|{{Artists|{{{Artists|}}}}}}}
  |  data3 = {{{AdditionalCredits|}}}
  | label4 = Artist
  |header4 =
  |  data4 = {{{ArtistRaw|}}}
  | label4 = Release Type  
  | label5 = Additional Credits
  |  data4 = {{#switch: {{{ReleaseType}}}
  | data5 = {{{AdditionalCredits|}}}
| label6 = Release Type  
  |  data6 = {{#switch: {{{ReleaseType}}}
               |Album=[[:Category:Albums|Album]]{{#if:{{{SortName|}}}|[[Category:Albums|{{{SortName}}}]]|[[Category:Albums]]}}
               |Album=[[:Category:Albums|Album]]{{#if:{{{SortName|}}}|[[Category:Albums|{{{SortName}}}]]|[[Category:Albums]]}}
               |EP =[[:Category:EPs|EP]]{{#if:{{{SortName|}}}|[[Category:EPs|{{{SortName}}}]]|[[Category:EPs]]}}
               |EP =[[:Category:EPs|EP]]{{#if:{{{SortName|}}}|[[Category:EPs|{{{SortName}}}]]|[[Category:EPs]]}}
Line 35: Line 28:
               |EP (Split)=[[:Category:EPs|EP]] ([[:Category:Splits|Split]]){{#if:{{{SortName|}}}|[[Category:EPs|{{{SortName}}}]]|[[Category:EPs]]}}{{#if:{{{SortName|}}}|[[Category:Splits|{{{SortName}}}]]|[[Category:Splits]]}}
               |EP (Split)=[[:Category:EPs|EP]] ([[:Category:Splits|Split]]){{#if:{{{SortName|}}}|[[Category:EPs|{{{SortName}}}]]|[[Category:EPs]]}}{{#if:{{{SortName|}}}|[[Category:Splits|{{{SortName}}}]]|[[Category:Splits]]}}
               |{{{ReleaseType}}}}}
               |{{{ReleaseType}}}}}
  | label5 = Label  
  | label7 = Label  
  |  data5 = {{#switch:{{{Label}}}|Self-published=[[:Category:Self-Published Releases|Self-published]]{{#if:{{{SortName|}}}|[[Category:Self-Published Releases|{{{SortName}}}]]|[[Category:Self-Published Releases]]}}|{{{Label}}}}}
  |  data7 = {{#switch:{{{Label}}}|Self-published=[[:Category:Self-Published Releases|Self-published]]{{#if:{{{SortName|}}}|[[Category:Self-Published Releases|{{{SortName}}}]]|[[Category:Self-Published Releases]]}}|{{{Label}}}}}
  |header6 =
  | label8 = Catalog Number  
| label6 = Catalog Number  
  |  data8 = {{{CatalogNumber|}}}
  |  data6 = {{{CatalogNumber|}}}
  | label9 = Formats
  |header7 =
  |  data9 = {{{Formats}}}
| label7 = Formats
  | label10 = Release Date  
  |  data7 = {{{Formats}}}
  |  data10 = {{#switch:{{{Date}}}|Unknown=[[:Category:Released at an Unknown Date|Unknown]]{{#if:{{{SortName|}}}|[[Category:Released at an Unknown Date|{{{SortName}}}]]|[[Category:Released at an Unknown Date]]}}|{{{Date}}}}}
  |header8 =
  | label11 = Tracks  
| label8 = Release Date  
  |  data11 = {{{Tracks|}}}
  |  data8 = {{#switch:{{{Date}}}|Unknown=[[:Category:Released at an Unknown Date|Unknown]]{{#if:{{{SortName|}}}|[[Category:Released at an Unknown Date|{{{SortName}}}]]|[[Category:Released at an Unknown Date]]}}|{{{Date}}}}}
  | label12 = Length  
  |header9 =
  |  data12 = {{{Length}}}
| label9 = Tracks  
  | label13 = Tags  
  |  data9 = {{{Tracks|}}}
  |  data13 = {{{Tags|}}}
  |header10 =
  |header14 = {{#ifeq:{{{Artist}}}|Various Artists|{{{Artist2|}}}|{{#if:{{{Artist2|}}}|{{{Artist2}}}|{{{Artist}}}}}}}
| label10 = Length  
  | label15 = Previous Release  
  |  data10 = {{{Length}}}
  |  data15 = {{{PrevRelease|}}}
  |header12 =
  | label16 = Next Release  
| label12 = Tags  
  |  data16 = {{{NextRelease|}}}
  |  data12 = {{{Tags|}}}
  |header17 = {{{Artist2B|}}}
  |header13 = {{#ifeq:{{{Artist}}}|Various Artists|{{{Artist2|}}}|{{#if:{{{Artist2|}}}|{{{Artist2}}}|{{{Artist}}}}}}}
  | label18 = Previous Release  
  | label13 =
  |  data18 = {{{PrevReleaseB|}}}
|  data13 =
  | label19 = Next Release  
|header14 =
  |  data19 = {{{NextReleaseB|}}}
| label14 = Previous Release  
  |header20 = {{{Artist2C|}}}
  |  data14 = {{{PrevRelease|}}}
  | label21 = Previous Release  
  |header15 =
  |  data21 = {{{PrevReleaseC|}}}
| label15 = Next Release  
  | label22 = Next Release  
  |  data15 = {{{NextRelease|}}}
  |  data22 = {{{NextReleaseC|}}}
  |header16 = {{{Artist2B|}}}
  |header23 = {{{Artist2D|}}}
  | label16 =
  | label24 = Previous Release  
|  data16 =
  |  data24 = {{{PrevReleaseD|}}}
|header17 =
  | label25 = Next Release  
| label17 = Previous Release  
  |  data25 = {{{NextReleaseD|}}}
  |  data17 = {{{PrevReleaseB|}}}
  |header18 =
| label18 = Next Release  
  |  data18 = {{{NextReleaseB|}}}
  |header19 = {{{Artist2C|}}}
  | label19 =
|  data19 =
|header20 =
| label20 = Previous Release  
  |  data20 = {{{PrevReleaseC|}}}
  |header21 =
| label21 = Next Release  
  |  data21 = {{{NextReleaseC|}}}
  |header22 = {{{Artist2D|}}}
  | label22 =
|  data22 =
|header23 =
| label23 = Previous Release  
  |  data23 = {{{PrevReleaseD|}}}
  |header24 =
| label24 = Next Release  
  |  data24 = {{{NextReleaseD|}}}
}}</includeonly><noinclude>
}}</includeonly><noinclude>
==Usage==
==Usage==

Revision as of 20:36, 23 July 2019

Usage

{{MusicInfobox
|Title = update this only when non-title data is in page name!
|Cover = cover.png (or jpg)
|Artist = {{Artist|artist name|artist rendering}}
|ReleaseType = release type
|Label = {{Label|label}}
|SortName = use this for when releases need to be specially alphabetized!
|CatalogNumber = cat #
|Formats = places online and offline
|Date = {{ReleaseDate|XXXX-XX-XX}}
|Tracks = XX
|Length = X:XX:XX
|Tags = bandcamp; or; soundcloud; separated; by; semicolons (except country-based tags)
|Artist2 = {{Artist|this should match the artist field}}
|PrevRelease = [[unless this is a v/a release in this case skip this]]
|NextRelease = [[unless that's part of a series in that case u can use this]]
|Artist2B = {{Artist|for use in splits/collaborative releases! or if an artist's album is part of a series}}
|PrevReleaseB = [[you can skip "PrevRelease"s if this is the first release]]
|NextReleaseB = [[or "NextRelease"s if this is the latest!]] (there are C and D sets in case of emergency)
}}

Example

{{MusicInfobox
|Title = Test Release
|Cover = VektroidPhoto.jpg
|Artist = {{Artist|Vektroid|Test Artist}} & {{Artist|Vektroid|Also Test Artist}}
|ReleaseType = [[:Category:Albums|Album]]
|Label = {{Label|fortune 500}} (Removed)
|CatalogNumber = TEST001
|Formats = [[File:BandcampIcon.png|left]] Bandcamp Album<br>(Test)<br>
[[File:SoundCloudIcon.png|left]] SoundCloud Single<br>(Test Track 780)<br>
[[:Category:Releases on Cassette|Cassette]]
|Date = {{ReleaseDate|2011-06-09}}
|Tracks = 12
|Length = 4:20:20 (Digital)<br>
4:20  (Cassette)
|Tags = a; b; c; test
|Artist2 = {{Artist|Vektroid|Test Artist}}
|PrevRelease = [[the music of the now age|Release One]]
|Artist2B = {{Artist|Vektroid|Also Test Artist}}
|NextReleaseB = [[the music of the now age|Release Two]]
|Artist2C = "Test Release" Series
|PrevReleaseC = [[the music of the now age|not a test release]]
|NextReleaseC = [[the music of the now age|TEST RELEASE II]]
}}