Actions

Template

Difference between revisions of "Album"

From Sonic Retro

Line 1: Line 1:
 +
<div itemscope itemtype='http://schema.org/MusicRelease'>
 +
<meta itemprop="image" content="{{{cover}}}">
 
{|cellpadding="0" cellspacing="0" style="padding: 0.1em; float:right; margin-left:15px; max-width:275px;" width="210" class="breakout"
 
{|cellpadding="0" cellspacing="0" style="padding: 0.1em; float:right; margin-left:15px; max-width:275px;" width="210" class="breakout"
 
| [[Image:{{ #if: {{{cover|}}} | {{{cover}}} | Notavailable.svg }}|275px]]
 
| [[Image:{{ #if: {{{cover|}}} | {{{cover}}} | Notavailable.svg }}|275px]]
 
|-
 
|-
! '''''{{ #if: {{{title|}}} | {{{title}}} | {{PAGENAME}} }}'''''
+
! '''''{{ #if: {{{title|}}} | <span itemprop="name">{{{title}}}</span> | <span itemprop="name">{{PAGENAME}}</span> }}'''''
 
|-
 
|-
 
|style="padding: 0.3em; line-height: 1.5em" |
 
|style="padding: 0.3em; line-height: 1.5em" |
 
{{ #if: {{{released|}}} | '''Release Date:''' {{{released}}}<br/> | }}{{
 
{{ #if: {{{released|}}} | '''Release Date:''' {{{released}}}<br/> | }}{{
#if: {{{madeby|}}} | '''Artist:''' {{{madeby}}}<br/> | }}{{
+
#if: {{{madeby|}}} | '''Artist:''' <span itemprop="byArtist">{{{madeby}}}</span><br/> | }}{{
#if: {{{artist|}}} | '''Artist:''' {{{artist}}}<br/> | }}{{
+
#if: {{{artist|}}} | '''Artist:''' <span itemprop="byArtist">{{{artist}}}</span><br/> | }}{{
#if: {{{label|}}} | '''Record Label:''' {{{label}}}<br/> | <includeonly>[[Category:Albums with missing catalog or label]]</includeonly> }}{{
+
#if: {{{label|}}} | '''Record Label:''' <span itemprop="recordLabel">{{{label}}}</span><br/> | <includeonly>[[Category:Albums with missing catalog or label]]</includeonly> }}{{
#if: {{{catalog|}}} | '''Catalog No.:''' {{{catalog}}}<br/> | <includeonly>[[Category:Albums with missing catalog or label]]</includeonly> }}
+
#if: {{{catalog|}}} | '''Catalog No.:'''<span itemprop="catalogNumber"> {{{catalog}}}</span><br/> | <includeonly>[[Category:Albums with missing catalog or label]]</includeonly> }}
|}<noinclude>
+
|}</div><noinclude>
  
 
==Usage==
 
==Usage==

Revision as of 10:45, 1 September 2015

Notavailable.svg
Album

Usage

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

{{Album
| cover=
| title=
| released=
| artist=
| catalog=
| label=
}}

Example

Hedgehog.jpg
Mr. Hedgehog's Greatest Hits
Record label: Sonic Retro
Artist: Hivebrain
{{Album
| cover= Hedgehog.jpg
| title= Mr. Hedgehog's Greatest Hits
| released= 2007
| artist= [[Hivebrain]]
| catalog= 123
| label= [[Sonic Retro]]
}}