Difference between pages "Template:Infobox book/wikidata" and "Template:Infobox book/wikidata/sandbox"

(Difference between pages)
Jump to navigation Jump to search
Page 1
Page 2
imported>Footlessmouse
(Undid revision 986762756 by Footlessmouse (talk))
 
imported>Jonesey95
(always helps to preview...)
 
Line 35: Line 35:
 
| data12      = {{#invoke:Wikidata|getValue|P136|{{{genre|FETCH_WIKIDATA}}}}}
 
| data12      = {{#invoke:Wikidata|getValue|P136|{{{genre|FETCH_WIKIDATA}}}}}
 
| label13      = Set in
 
| label13      = Set in
| data13      = {{{set_in|{{#invoke:Wikidata|getValue|P2408|FETCH_WIKIDATA}} {{#invoke:Wikidata|getValue|P1434|FETCH_WIKIDATA}} {{#invoke:Wikidata|getValue|P840|FETCH_WIKIDATA}}}}}
+
| data13       = {{{set_in|{{#invoke:Wikidata|getValue|P2408|FETCH_WIKIDATA}} {{#invoke:Wikidata|getValue|P1434|FETCH_WIKIDATA}} {{#invoke:Wikidata|getValue|P840|FETCH_WIKIDATA}}}}}
 
| label14      = Published
 
| label14      = Published
 
| data14      = {{date| {{{published| {{#property:p577}}}}}|{{{dateformat|dmy}}} }}
 
| data14      = {{date| {{{published| {{#property:p577}}}}}|{{{dateformat|dmy}}} }}
Line 45: Line 45:
 
| data17      = {{#invoke:Wikidata|getValue|P1104|{{{pages|FETCH_WIKIDATA}}}}}
 
| data17      = {{#invoke:Wikidata|getValue|P1104|{{{pages|FETCH_WIKIDATA}}}}}
 
| label18      = Awards
 
| label18      = Awards
| data18       = {{#if:{{#property:p166}}|{{plainlist|<ul>{{#invoke:String|replace|{{#invoke:Wikidata|getValue|P166|{{{awards|FETCH_WIKIDATA}}}}}|,|<li>%1</li>|plain=false}}</ul>}}}}
+
| data18       = {{#if:{{#property:p166}}|{{plainlist|{{#invoke:listify|input|,| {{#invoke:Wikidata|getValue|P166|{{{awards|FETCH_WIKIDATA}}}}}}}}}}}
 
| label19      = {{#if:{{#property:p957}}{{#property:p212}}|[[International Standard Book Number|{{abbr|ISBN|International Standard Book Number}}]]}}
 
| label19      = {{#if:{{#property:p957}}{{#property:p212}}|[[International Standard Book Number|{{abbr|ISBN|International Standard Book Number}}]]}}
| data19      = {{plainlist|
+
| data19      = {{#if:{{#property:p957}}{{#property:p212}}|{{plainlist|
{{#if:{{#property:p957}}|*{{nowrap|ISBN-10: [[Special:Booksources/{{#property:p957}}|{{#property:p957}}]]}}}}
+
{{#if:{{#property:p957}}|*{{nowrap|{{ISBN|{{#property:p957}}}}}}}}
{{#if:{{#property:p212}}|*{{nowrap|ISBN-13: [[Special:Booksources/{{#property:p212}}|{{#property:p212}}]]}}}}
+
{{#if:{{#property:p212}}|*{{nowrap|{{ISBN|{{#property:p212}}}}}}}}
}}
+
}}}}
 
| label20      = [[OCLC#Control Numbers|{{abbr|OCLC|Online Computer Library Center number}}]]
 
| label20      = [[OCLC#Control Numbers|{{abbr|OCLC|Online Computer Library Center number}}]]
 
| data20      = {{#if:{{#property:p243}}|[http://worldcat.org/oclc/{{urlencode:{{#property:p243}}}} {{#property:p243}}]}}
 
| data20      = {{#if:{{#property:p243}}|[http://worldcat.org/oclc/{{urlencode:{{#property:p243}}}} {{#property:p243}}]}}