Template:MusicInfobox: Difference between revisions
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 | ||
|abovestyle = background:#cfc; | |abovestyle = background:#cfc; | ||
|above = {{#if: {{{Title|}}} | {{{Title}}} | {{TOPLEVELPAGE}} }} | |above = {{#if: {{{Title|}}} | {{{Title}}} | {{TOPLEVELPAGE}} }} | ||
| 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; | ||
|header1 = Information{{#if:{{{SortName|}}}|[[Category:Releases|{{{SortName}}}]]|[[Category:Releases]]}} | |||
|header1 = Information | |||
| label2 = Artist | | label2 = Artist | ||
| data2 = {{#if:{{{ | | 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}}}}}} | ||
| | | label3 = Artists | ||
| | | data3 = {{#if:{{{Artists|}}}|{{Artists|{{{Artists|}}}}}}} | ||
| | | label4 = Artist | ||
| | | data4 = {{{ArtistRaw|}}} | ||
| | | label5 = Additional Credits | ||
| | | 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}}}}} | ||
| | | label7 = Label | ||
| | | data7 = {{#switch:{{{Label}}}|Self-published=[[:Category:Self-Published Releases|Self-published]]{{#if:{{{SortName|}}}|[[Category:Self-Published Releases|{{{SortName}}}]]|[[Category:Self-Published Releases]]}}|{{{Label}}}}} | ||
| | | label8 = Catalog Number | ||
| data8 = {{{CatalogNumber|}}} | |||
| | | label9 = Formats | ||
| | | data9 = {{{Formats}}} | ||
| label10 = Release Date | |||
| | | 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}}}}} | ||
| | | label11 = Tracks | ||
| data11 = {{{Tracks|}}} | |||
| | | label12 = Length | ||
| | | data12 = {{{Length}}} | ||
| label13 = Tags | |||
| | | data13 = {{{Tags|}}} | ||
| | |header14 = {{#ifeq:{{{Artist}}}|Various Artists|{{{Artist2|}}}|{{#if:{{{Artist2|}}}|{{{Artist2}}}|{{{Artist}}}}}}} | ||
| label15 = Previous Release | |||
| | | data15 = {{{PrevRelease|}}} | ||
| | | label16 = Next Release | ||
| data16 = {{{NextRelease|}}} | |||
| | |header17 = {{{Artist2B|}}} | ||
| | | label18 = Previous Release | ||
| | | data18 = {{{PrevReleaseB|}}} | ||
| label19 = Next Release | |||
| data19 = {{{NextReleaseB|}}} | |||
|header20 = {{{Artist2C|}}} | |||
| | | label21 = Previous Release | ||
| | | data21 = {{{PrevReleaseC|}}} | ||
| label22 = Next Release | |||
| | | data22 = {{{NextReleaseC|}}} | ||
| | |header23 = {{{Artist2D|}}} | ||
| | | label24 = Previous Release | ||
| data24 = {{{PrevReleaseD|}}} | |||
| label25 = Next Release | |||
| data25 = {{{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]] }}