Difference between revisions of "MusicBob"
From Sega Retro
Scarred Sun (talk | contribs) |
|||
(41 intermediate revisions by 5 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}}}}|}}{{ |
− | |style= | + | #if:{{{relatedto2|}}}|{{RelationStore|{{#titleparts:{{PAGENAME}}}}|{{{relatedto2|}}}|{{#ifeq:{{#var:musictype}}|audiobook|audiobook|music}}}}|}}{{#ifeq:{{#var:musictype}}|audiobook|{{#vardefine:type|7}}|{{#vardefine:type|3}}}}{{BobTablePlus| |
− | #if: {{{ | + | {{BobRowPlus |
− | + | | if={{{cover|}}} | |
− | #if | + | | align=center |
− | + | | default=[[File:Notavailable.svg]]{{#ifeq:{{NAMESPACE}}|Template||[[Category:No music cover]]}} | |
− | + | | content={{#if:{{{cover2|}}} | |
− | + | | {{tabs | |
− | {{{releases}}} | + | | icon1={{#if:{{{tab1|}}}|{{{tab1|}}}|{{{cover|}}}}} |
− | {{releasesEnd}} | + | | icon2={{#if:{{{tab2|}}}|{{{tab2|}}}|{{{cover2|}}}}} |
− | |} | + | | icon3={{#if:{{{tab3|}}}|{{{tab3|}}}|{{{cover3|}}}}} |
+ | | icon4={{#if:{{{tab4|}}}|{{{tab4|}}}|{{{cover4|}}}}} | ||
+ | | icon5={{#if:{{{tab5|}}}|{{{tab5|}}}|{{{cover5|}}}}} | ||
+ | | content1=[[File:{{{cover}}}|320x240px]] | ||
+ | | content2=[[File:{{{cover2}}}|320x240px]] | ||
+ | | content3={{#if:{{{cover3|}}}|[[File:{{{cover3}}}|320x240px]]}} | ||
+ | | content4={{#if:{{{cover4|}}}|[[File:{{{cover4}}}|320x240px]]}} | ||
+ | | content5={{#if:{{{cover5|}}}|[[File:{{{cover5}}}|320x240px]]}} | ||
+ | | orientation=horizontal | ||
+ | | hidetitle=yes | ||
+ | | width=auto | ||
+ | | tabliststyle=margin:2px; | ||
+ | }} | ||
+ | | [[File:{{{cover}}}|320x240px]]}} | ||
+ | }} | ||
+ | {{BobRowPlus | ||
+ | | if={{{title|}}} | ||
+ | | default=<span itemprop="name">{{PAGENAME}}</span> | ||
+ | | content=<span itemprop="name">{{{title|}}}</span> | ||
+ | | headline=yes | ||
+ | | align=center | ||
+ | | style={{#ifeq:{{{type|}}}|single||font-style:italic}} | ||
+ | }} | ||
+ | {{BobRowPlus | ||
+ | | if={{{format|}}} | ||
+ | | title=Format(s) | ||
+ | | content={{{format|}}}{{#vardefine:systemfull|{{{format|}}}}}{{#if:{{#pos:{{{format|}}}|,}}|{{#vardefine:multi|yes}}}} | ||
+ | }} | ||
+ | {{#vardefine:companyrole|Publisher}}{{BobRowPlus | ||
+ | | if={{{publisher|}}} | ||
+ | | title=Publisher | ||
+ | | content=<span itemprop="publisher">{{#if:{{#pos:{{{label|}}}|<div}}|{{{publisher}}}|{{company|{{{publisher|}}}|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|}}}|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|}}}||icons=no|inline=yes}}</span> | ||
+ | }} | ||
+ | {{BobRowPlus | ||
+ | | if={{{licensor|}}} | ||
+ | | title=Licensor | ||
+ | | content=<span itemprop="byLicensor">{{{licensor|}}}</span> | ||
+ | }} | ||
+ | {{BobRowPlus | ||
+ | | if={{{artist|}}} | ||
+ | | title=Artist | ||
+ | | content=<span itemprop="byArtist">{{{artist|}}}</span> | ||
+ | }} | ||
+ | {{BobRowPlus | ||
+ | | if={{{composer|}}} | ||
+ | | title=Composer | ||
+ | | content={{{composer|}}}[[Category:Old MusicBob field]] | ||
+ | }} | ||
+ | {{BobRowPlus | ||
+ | | if={{{arranger|}}} | ||
+ | | title=Arranger | ||
+ | | content={{{arranger|}}}[[Category:Old MusicBob field]] | ||
+ | }} | ||
+ | {{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: | {{#seo: | ||
− | | | + | |image={{filepath:{{{cover|}}}}} |
− | | | + | |site_name=Sega Retro |
− | | | + | |locale=en_GB |
− | |||
− | |||
− | |||
}} | }} | ||
− | + | </div><noinclude> | |
− | <noinclude> | ||
==Usage== | ==Usage== | ||
Line 29: | Line 102: | ||
<pre> | <pre> | ||
− | {{ | + | {{MusicBob |
| cover= | | cover= | ||
| title= | | title= | ||
− | | | + | | type= |
+ | | format= | ||
| artist= | | artist= | ||
− | | | + | | publisher= |
− | |||
| label= | | label= | ||
− | | releases={{ | + | | distributor= |
+ | | licensor= | ||
+ | | releases={{releasesMusic | ||
... | ... | ||
}} | }} | ||
+ | | relatedto= <!--for Omni templates--> | ||
}} | }} | ||
</pre> | </pre> | ||
− | + | [[Category:Breakout box templates]] | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | [[Category:Breakout box templates | ||
</noinclude> | </noinclude> |
Latest 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--> }}