Difference between revisions of "MusicBob"

From Sega Retro

(adding relatedto2 field as a test)
(Undo revision 720157 by SorachiJirachi (talk): didn't seem to work as I'd hoped)
Tag: Undo
Line 2: Line 2:
 
<meta itemprop="image" content="{{{cover}}}">
 
<meta itemprop="image" content="{{{cover}}}">
 
<meta itemprop="name" content="{{PAGENAME}}">
 
<meta itemprop="name" content="{{PAGENAME}}">
{{#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|}}}{{#if:{{{relatedto2|}}}|{{RelationStore|{{#titleparts:{{PAGENAME}}}}|{{{relatedto2|}}}|{{#ifeq:{{#var:musictype}}|audiobook|audiobook|music}}}}|}}{{#vardefine:type|3}}{{BobTablePlus|
+
{{#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}}}}|}}{{#vardefine:type|3}}{{BobTablePlus|
 
{{BobRowPlus
 
{{BobRowPlus
 
| if={{{cover|}}}
 
| if={{{cover|}}}

Revision as of 14:50, 18 October 2021

Notavailable.svg
MusicBob

Usage

This template is to be used on articles about albums. Place the following at the top of a page:

{{MusicBob
| cover=
| title=
| type=
| artist=
| composer=
| arranger=
| publisher=
| label=
| distributor=
| licensor=
| releases={{releasesMusic
...
}}
| relatedto= <!--for Omni templates-->
}}