Difference between revisions of "MusicBob"
From Sega Retro
(33 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | {{ | + | <div itemscope itemtype='http://schema.org/MusicRelease'> |
− | | | + | <meta itemprop="image" content="{{{cover}}}"> |
− | | | + | <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|}}}|{{#ifeq:{{#var:musictype}}|audiobook|audiobook|music}}}}|}}{{#vardefine:type|3}}{{BobTablePlus| | |
− | | | + | {{BobRowPlus |
− | | | + | | if={{{cover|}}} |
− | #if: {{{ | + | | align=center |
− | + | | default=[[File:Notavailable.svg]]{{#ifeq:{{NAMESPACE}}|Template||[[Category:No music cover]]}} | |
− | + | | content=[[File:{{{cover|}}}|320x240px]] | |
− | + | }} | |
− | + | {{BobRowPlus | |
− | + | | if={{{title|}}} | |
− | |}<noinclude> | + | | default=<span itemprop="name">{{PAGENAME}}</span> |
+ | | content=<span itemprop="name">{{{title|}}}</span> | ||
+ | | headline=yes | ||
+ | | align=center | ||
+ | | style={{#ifeq:{{{type|}}}|single||font-style:italic}} | ||
+ | }} | ||
+ | {{#vardefine:companyrole|Publisher}}{{BobRowPlus | ||
+ | | if={{{publisher|}}} | ||
+ | | title=Publisher | ||
+ | | content=<span itemprop="publisher">{{#if:{{#pos:{{{label|}}}|<div}}|{{{publisher}}}|{{company|{{{publisher|}}}|system=MUSIC|icons=no|inline=yes}}}}</span> | ||
+ | }} | ||
+ | {{#vardefine:companyrole|RecordLabel}}{{BobRowPlus | ||
+ | | if={{{label|}}} | ||
+ | | title=Record label | ||
+ | | content=<span itemprop="recordLabel">{{#if:{{#pos:{{{label|}}}|<div}}|{{{label}}}|{{company|{{{label|}}}|system=MUSIC|icons=no|inline=yes}}}}</span> | ||
+ | }}{{#if:{{{publisher|}}}{{{label|}}}||[[Category:Music missing record label]]}} | ||
+ | {{#vardefine:companyrole|Distributor}}{{BobRowPlus | ||
+ | | if={{{distributor|}}} | ||
+ | | title=Distributor | ||
+ | | content=<span itemprop="distributor">{{company|{{{distributor|}}}|system=MUSIC||icons=no|inline=yes}}</span> | ||
+ | }} | ||
+ | {{BobRowPlus | ||
+ | | if={{{artist|}}} | ||
+ | | title=Artist | ||
+ | | content=<span itemprop="byArtist">{{{artist|}}}</span> | ||
+ | }} | ||
+ | {{BobRowPlus | ||
+ | | if={{{composer|}}} | ||
+ | | title=Composer | ||
+ | | content={{{composer|}}} | ||
+ | }} | ||
+ | {{BobRowPlus | ||
+ | | if={{{arranger|}}} | ||
+ | | title=Arranger | ||
+ | | content={{{arranger|}}} | ||
+ | }} | ||
+ | {{BobRowPlus | ||
+ | | if={{{releases|}}} | ||
+ | | content={{releasesHeader}} | ||
+ | {{{releases|}}} | ||
+ | {{releasesEnd}} | ||
+ | }} | ||
+ | }} | ||
+ | </div>{{#if:{{{artist|}}}|{{StoreCreditsLine | ||
+ | | role=Artist | ||
+ | | nameList={{{artist|}}} | ||
+ | | game={{PAGENAME}} | ||
+ | | console={{#if:{{#var:cd}}{{#var:cddvd}}{{#var:cdbr}}{{#var:cddvdbr}}|CD|{{#if:{{#var:cassette}}|Cassette|{{#if:{{#var:vinyl}}|Vinyl|Digital}}}}}} | ||
+ | | date= | ||
+ | }}}} | ||
+ | <div style="display:none;"> | ||
+ | {{#seo: | ||
+ | |image={{filepath:{{{cover|}}}}} | ||
+ | |site_name=Sega Retro | ||
+ | |locale=en_GB | ||
+ | }} | ||
+ | </div><noinclude> | ||
==Usage== | ==Usage== | ||
Line 17: | Line 73: | ||
<pre> | <pre> | ||
− | {{ | + | {{MusicBob |
| cover= | | cover= | ||
| title= | | title= | ||
− | | | + | | type= |
| artist= | | artist= | ||
| composer= | | composer= | ||
| arranger= | | arranger= | ||
+ | | publisher= | ||
| label= | | label= | ||
− | | releases={{ | + | | distributor= |
+ | | releases={{releasesMusic | ||
... | ... | ||
}} | }} | ||
+ | | relatedto= <!--for Omni templates--> | ||
}} | }} | ||
</pre> | </pre> | ||
− | + | [[Category:Breakout box templates]] | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | [[Category:Breakout box templates | ||
</noinclude> | </noinclude> |
Revision as of 07:03, 30 June 2021
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= | releases={{releasesMusic ... }} | relatedto= <!--for Omni templates--> }}