Template:LD-Album: Difference between revisions
Jump to navigation
Jump to search
Created page with "<includeonly>{{#if:{{{name|}}}| {{#tag:script| { "@context": "https://schema.org", "@type": "MusicAlbum", "name": "{{{name}}}"{{#if:{{{datePublished|}}}|, "datePublished": "{{{datePublished}}}"}} {{#if:{{{artistName|}}}|, "byArtist": { "@type": "{{{artistType|MusicGroup}}}", "name": "{{{artistName}}}" }}} {{#if:{{{genre1|}}}|, "genre": ["{{{genre1}}}"{{#if:{{{genre2|}}}|, "{{{genre2}}}"}}{{#if:{{{genre3|}}}|, "{{{genre3}}}"}}{{#if:{{{genre4|}}}|, "{{{genr..." |
mNo edit summary |
||
| Line 1: | Line 1: | ||
<includeonly>{{# | <includeonly>{{#invoke:LD|album}}</includeonly> | ||
}}</includeonly> | |||
<noinclude> | <noinclude> | ||
Emits JSON-LD for a Schema.org MusicAlbum via [[Module:LD]]. | |||
'''Params''' | |||
; name (req) : Album title | |||
; datePublished : YYYY-MM-DD | |||
; artistName : Display name | |||
; artistType : ''MusicGroup'' (default) or ''Person'' | |||
; genre / genre1..genre6 : One or many | |||
; recordLabel : Organization name | |||
; numTracks : Integer | |||
; image : Absolute URL | |||
; inLanguage : e.g., en | |||
; url : Canonical page URL (defaults to current page) | |||
; sameAs1..sameAs10 : External profile/streaming links | |||
; identifier : Optional ID string | |||
</noinclude> | </noinclude> | ||
Latest revision as of 03:21, 25 August 2025
Emits JSON-LD for a Schema.org MusicAlbum via Module:LD.
Params
- name (req)
- Album title
- datePublished
- YYYY-MM-DD
- artistName
- Display name
- artistType
- MusicGroup (default) or Person
- genre / genre1..genre6
- One or many
- recordLabel
- Organization name
- numTracks
- Integer
- image
- Absolute URL
- inLanguage
- e.g., en
- url
- Canonical page URL (defaults to current page)
- sameAs1..sameAs10
- External profile/streaming links
- identifier
- Optional ID string