Template:DiscogsAdditionalRelease: Difference between revisions
No edit summary |
No edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{#clear_external_data:}} | |||
{{#get_web_data: | {{#get_web_data: | ||
url=https://www.morrissey-solo.com/api-discogs.php?resource=releases&id={{trim| {{{1}}} }} | url=https://www.morrissey-solo.com/api-discogs.php?resource=releases&id={{trim| {{{1}}} }} | ||
|format=JSON | |format=JSON | ||
|use jsonpath | |use jsonpath | ||
|data= | |data=uri=$.uri, title=$.title, master_id=$.master_id, formats=$.formats[*], format_description0=$.formats[0].descriptions[0], format_description1=$.formats[0].descriptions[1], format_description2=$.formats[0].descriptions[2], format_description3=$.formats[0].descriptions[3], format_description4=$.formats[0].descriptions[4], format_description5=$.formats[0].descriptions[5], format_description6=$.formats[0].descriptions[6], format_text=$.formats[0].text, notes=$.notes, random_image=$.random_image, images=$.images[*], images0=$.images[0].uri150, images1=$.images[1].uri150, images2=$.images[2].uri150, images3=$.images[3].uri150, images4=$.images[4].uri150, images5=$.images[5].uri150, images6=$.images[6].uri150, images7=$.images[7].uri150, images8=$.images[8].uri150, images9=$.images[9].uri150, images10=$.images[10].uri150, images11=$.images[11].uri150 | ||
|cache seconds=3600 | |cache seconds=3600 | ||
|use stale cache | |use stale cache | ||
}} | }} | ||
==Discogs information (additional release)== | ==Discogs information (additional release)== | ||
===Notes=== | ===Notes=== | ||
{{#external_value: | {{#external_value:notes}} | ||
===Images=== | ===Images=== | ||
{{#ifeq:{{#len:{{#external_value: | {{#ifeq:{{#len:{{#external_value:images0}}}}|0||{{ #if:{{#external_value:images0}}| {{#external_value:images0}} }} | ||
{{ #if:{{#external_value: | {{ #if:{{#external_value:images1}}| {{#external_value:images1}} }} | ||
{{ #if:{{#external_value: | {{ #if:{{#external_value:images2}}| {{#external_value:images2}} }} | ||
{{ #if:{{#external_value: | {{ #if:{{#external_value:images3}}| {{#external_value:images3}} }} | ||
{{ #if:{{#external_value: | {{ #if:{{#external_value:images4}}| {{#external_value:images4}} }} | ||
{{ #if:{{#external_value: | {{ #if:{{#external_value:images5}}| {{#external_value:images5}} }} | ||
{{ #if:{{#external_value: | {{ #if:{{#external_value:images6}}| {{#external_value:images6}} }} | ||
{{ #if:{{#external_value: | {{ #if:{{#external_value:images7}}| {{#external_value:images7}} }} | ||
{{ #if:{{#external_value: | {{ #if:{{#external_value:images8}}| {{#external_value:images8}} }} | ||
{{ #if:{{#external_value: | {{ #if:{{#external_value:images9}}| {{#external_value:images9}} }} | ||
{{ #if:{{#external_value: | {{ #if:{{#external_value:images10}}| {{#external_value:images10}} }} | ||
{{ #if:{{#external_value: | {{ #if:{{#external_value:images11}}| {{#external_value:images11}} }} | ||
}} | }} | ||
* {{#external_value: | |||
* {{#external_value:title}} ({{#if:{{#external_value:format_description0}}|{{#external_value:format_description0}} }}{{#if:{{#external_value:format_description1}}| {{#external_value:format_description1}} }}{{#if:{{#external_value:format_description2}}| {{#external_value:format_description2}} }}{{#if:{{#external_value:format_description3}}| </code>{{#external_value:format_description3}} }}{{#if:{{#external_value:format_description4}}| </code>{{#external_value:format_description4}} }}{{#if:{{#external_value:format_description5}}| </code>{{#external_value:format_description5}} }}{{#if:{{#external_value:format_description6}}| </code>{{#external_value:format_description6}} }}{{#if:{{#external_value:format_text}}| </code>{{#external_value:format_text}} }}) - Discogs release: {{#external_value:uri}} |
Latest revision as of 13:52, 28 April 2021
Discogs information (additional release)
Notes
Images
- () - Discogs release: