Difference between revisions of "MusicBob"
From Sega Retro
Line 4: | Line 4: | ||
{{#switch:{{{type|}}}|album=[[Category:Albums]]{{#vardefine:musictype|album}}|ep=[[Category:EPs]]{{#vardefine:musictype|ep}}|single=[[Category:Singles]]{{#vardefine:musictype|single}}|audiobook=[[Category:Audiobooks]]{{#vardefine:musictype|audiobook}}|[[Category:Update audio releases]]}}{{ | {{#switch:{{{type|}}}|album=[[Category:Albums]]{{#vardefine:musictype|album}}|ep=[[Category:EPs]]{{#vardefine:musictype|ep}}|single=[[Category:Singles]]{{#vardefine:musictype|single}}|audiobook=[[Category:Audiobooks]]{{#vardefine:musictype|audiobook}}|[[Category:Update audio releases]]}}{{ | ||
#if:{{{relatedto|}}}|{{RelationStore|{{#titleparts:{{PAGENAME}}}}|{{{relatedto|}}}|{{#ifeq:{{#var:musictype}}|audiobook|audiobook|music}}}}|}}{{ | #if:{{{relatedto|}}}|{{RelationStore|{{#titleparts:{{PAGENAME}}}}|{{{relatedto|}}}|{{#ifeq:{{#var:musictype}}|audiobook|audiobook|music}}}}|}}{{ | ||
− | #if:{{{relatedto2|}}}|{{RelationStore|{{#titleparts:{{PAGENAME}}}}|{{{relatedto2|}}}|{{#ifeq:{{#var:musictype}}|audiobook|audiobook|music}}}}|}}{{#vardefine:type|3}}{{BobTablePlus| | + | #if:{{{relatedto2|}}}|{{RelationStore|{{#titleparts:{{PAGENAME}}}}|{{{relatedto2|}}}|{{#ifeq:{{#var:musictype}}|audiobook|audiobook|music}}}}|}}{{#ifeq:{{#var:musictype}}|audiobook|{{#vardefine:type|5}}|{{#vardefine:type|3}}}}{{BobTablePlus| |
{{BobRowPlus | {{BobRowPlus | ||
| if={{{cover|}}} | | if={{{cover|}}} |
Revision as of 06:19, 8 March 2023
Usage
This template is to be used on articles about albums. Place the following at the top of a page:
{{MusicBob | cover= | title= | type= | format= | artist= | publisher= | label= | distributor= | licensor= | releases={{releasesMusic ... }} | relatedto= <!--for Omni templates--> }}