Template:MusicInfobox: Difference between revisions

From vaporwave.wiki
Jump to navigation Jump to search
m (Undo revision 355 by Pat (talk))
Tag: Undo
m (removed the nightmare of SortName for now)
Line 13: Line 13:
  | label4 = Release Type  
  | label4 = Release Type  
  |  data4 = {{#switch: {{{ReleaseType}}}
  |  data4 = {{#switch: {{{ReleaseType}}}
               |Album=[[:Category:Albums|Album]]{{#if:{{{SortName|}}}|[[Category:Albums|{{{SortName}}}]]|[[Category:Albums]]}}
               |Album=[[:Category:Albums|Album]][[Category:Albums]]
               |EP =[[:Category:EPs|EP]]{{#if:{{{SortName|}}}|[[Category:EPs|{{{SortName}}}]]|[[Category:EPs]]}}
               |EP =[[:Category:EPs|EP]][[Category:EPs]]
               |Single=[[:Category:Singles|Single]]{{#if:{{{SortName|}}}|[[Category:Singles|{{{SortName}}}]]|[[Category:Singles]]}}
               |Single=[[:Category:Singles|Single]][[Category:Singles]]
               |Mix= [[:Category:Mixes|Mix]]{{#if:{{{SortName|}}}|[[Category:Mixes|{{{SortName}}}]]|[[Category:Mixes]]}}
               |Mix= [[:Category:Mixes|Mix]][[Category:Mixes]]}}
               |Compilation=[[:Category:Albums|Album]] ([[:Category:Compilations|Compilation]]){{#if:{{{SortName|}}}|[[Category:Albums|{{{SortName}}}]]|[[Category:Albums]]}}{{#if:{{{SortName|}}}|[[Category:Compilations|{{{SortName}}}]]|[[Category:Compilations]]}}
               |Compilation=[[:Category:Albums|Album]][[Category:Albums]] ([[:Category:Compilations|Compilation]][[Category:Compilations]])
               |Album (Collaboration)=[[:Category:Albums|Album]] ([[:Category:Collaborations|Collaboration]]){{#if:{{{SortName|}}}|[[Category:Albums|{{{SortName}}}]]|[[Category:Albums]]}}{{#if:{{{SortName|}}}|[[Category:Collaborations|{{{SortName}}}]]|[[Category:Collaborations]]}}
               |Album (Collaboration)=[[:Category:Albums|Album]][[Category:Albums]] ([[:Category:Collaborations|Collaboration]][[Category:Collaborations]])
               |EP (Collaboration)=[[:Category:EPs|EP]] ([[:Category:Collaborations|Collaboration]]){{#if:{{{SortName|}}}|[[Category:EPs|{{{SortName}}}]]|[[Category:EPs]]}}{{#if:{{{SortName|}}}|[[Category:Collaborations|{{{SortName}}}]]|[[Category:Collaborations]]}}
               |EP (Collaboration)=[[:Category:EPs|EP]][[Category:EPs]] ([[:Category:Collaborations|Collaboration]][[Category:Collaborations]])
               |Single (Collaboration)=[[:Category:Singles|Single]] ([[:Category:Collaborations|Collaboration]]){{#if:{{{SortName|}}}|[[Category:Singles|{{{SortName}}}]]|[[Category:Singles]]}}{{#if:{{{SortName|}}}|[[Category:Collaborations|{{{SortName}}}]]|[[Category:Collaborations]]}}
               |Single (Collaboration)=[[:Category:Singles|Single]][[Category:Singles]] ([[:Category:Collaborations|Collaboration]][[Category:Collaborations]])
               |Album (Split)=[[:Category:Albums|Album]] ([[:Category:Splits|Split]]){{#if:{{{SortName|}}}|[[Category:Albums|{{{SortName}}}]]|[[Category:Albums]]}}{{#if:{{{SortName|}}}|[[Category:Splits|{{{SortName}}}]]|[[Category:Splits]]}}
               |Album (Split)=[[:Category:Albums|Album]][[Category:Albums]] ([[:Category:Splits|Split]][[Category:Splits]])
               |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:EPs]] ([[:Category:Splits|Split]][[Category:Splits]])
               |{{{ReleaseType}}}}}
               |{{{ReleaseType}}}}}
  | label5 = Label  
  | label5 = Label  
  |  data5 = {{#switch:{{{Label}}}|Self-published=[[:Category:Self-Published Releases|Self-published]]{{#if:{{{SortName|}}}|[[Category:Self-Published Releases|{{{SortName}}}]]|[[Category:Self-Published Releases]]}}|{{{Label}}}}}
  |  data5 = {{#switch:{{{Label}}}|Self-published=[[:Category:Self-Published Releases|Self-published]][[Category:Self-Published Releases]]|{{{Label}}}}}
  | label6 = Catalog Number  
  | label6 = Catalog Number  
  |  data6 = {{{CatalogNumber|}}}
  |  data6 = {{{CatalogNumber|}}}
Line 31: Line 31:
  |  data7 = {{{Formats}}}
  |  data7 = {{{Formats}}}
  | label8 = Release Date  
  | label8 = Release Date  
  |  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}}}}}
  |  data8 = {{#switch:{{{Date}}}|Unknown=[[:Category:Released at an Unknown Date|Unknown]][[Category:Released at an Unknown Date]]|{{{Date}}}}}
  | label9 = Tracks  
  | label9 = Tracks  
  |  data9 = {{{Tracks|}}}
  |  data9 = {{{Tracks|}}}

Revision as of 06:35, 15 December 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]]
}}