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

(Difference between pages)
Jump to navigation Jump to search
Page 1
Page 2
No edit summary
 
m (1 revision imported)
 
Line 11: Line 11:
| caption      = {{{caption|}}}
| caption      = {{{caption|}}}
| label1      = Author
| label1      = Author
| data1        = {{{author|}}}
| data1        = {{#invoke:Wikidata|getValue|P50|{{{author|FETCH_WIKIDATA}}}}}
| label2      = Editor
| label2      = Editor
| data2        = {{{editor|}}}
| data2        = {{#invoke:Wikidata|getValue|P98|{{{editor|FETCH_WIKIDATA}}}}}
| label3      = Original title
| label3      = Original title
| data3        = {{#if:{{{title_orig|}}}|{{lang|{{{orig_lang_code|}}}|''{{{title_orig}}}''}}}}
| data3        = {{#if:{{{title_orig|}}}|{{lang|{{{orig_lang_code|}}}|''{{{title_orig}}}''}}}}
| label4      = Working title
| label4      = Working title
| data4        = {{#if:{{#property:p1638}}|<span{{#if:{{{italic title|no}}}|| style='font-style:italic'}}>{{{title_working|}}}</span>}}
| data4        = {{#if:{{#property:p1638}}|<span{{#if:{{{italic title|no}}}|| style='font-style:italic'}}>{{#invoke:Wikidata|getValue|P1638|{{{title_working|FETCH_WIKIDATA}}}}}</span>}}
| label5      = Translator
| label5      = Translator
| data5        = {{{translator|}}}
| data5        = {{#invoke:Wikidata|getValue|P655|{{{translator|FETCH_WIKIDATA}}}}}
| label6      = Illustrator
| label6      = Illustrator
| data6        = {{{illustrator|}}}
| data6        = {{#invoke:Wikidata|getValue|P110|{{{illustrator|FETCH_WIKIDATA}}}}}
| label7      = Cover artist
| label7      = Cover artist
| data7        = {{{cover_artist|}}}
| data7        = {{#invoke:Wikidata|getValue|P736|{{{cover_artist|FETCH_WIKIDATA}}}}}
| label8      = Country
| label8      = Country
| data8        = {{{country|}}}
| data8        = {{#invoke:Wikidata|getValue|P495|{{{country|FETCH_WIKIDATA}}}}}
| label9      = Language
| label9      = Language
| data9        = {{{language|}}}
| data9        = {{#invoke:Wikidata|getValue|P407|{{{language|FETCH_WIKIDATA}}}}}
| label10      = Series
| label10      = Series
| data10      = {{{series|}}}
| data10      = {{#invoke:Wikidata|getValue|P179|{{{series|FETCH_WIKIDATA}}}}}
| label11      = Subject
| label11      = Subject
| data11      = {{{subject|}}}
| data11      = {{#invoke:Wikidata|getValue|P921|{{{subject|FETCH_WIKIDATA}}}}}
| label12      = Genre
| label12      = Genre
| data12      = {{{genre|}}}
| data12      = {{#invoke:Wikidata|getValue|P136|{{{genre|FETCH_WIKIDATA}}}}}
| label13      = Set in
| label13      = Set in
| data13      = {{{set_in|}}
| 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| }}}|{{{dateformat|dmy}}} }}
| data14      = {{date| {{{published| {{#property:p577}}}}}|{{{dateformat|dmy}}} }}
| label15      = Publisher
| label15      = Publisher
| data15      = {{{publisher|}}}
| data15      = {{#invoke:Wikidata|getValue|P123|{{{publisher|FETCH_WIKIDATA}}}}}
| label16      = Media type
| label16      = Media type
| data16      = {{{media_type|}}}
| data16      = {{#invoke:Wikidata|getValue|P186|{{{media_type|FETCH_WIKIDATA}}}}}
| label17      = Pages
| label17      = Pages
| data17      = {{{pages|}}}
| data17      = {{#invoke:Wikidata|getValue|P1104|{{{pages|FETCH_WIKIDATA}}}}}
| label18      = Awards
| label18      = Awards
| data18       = {{#if:{{#property:p166}}|{{plainlist|<ul>{{#invoke:String|replace|{{{awards|}}}|,|<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}}]]|<noinclude>ISBN</noinclude>}}
| label19      = {{#if:{{#property:p957}}{{#property:p212}}|[[International Standard Book Number|{{abbr|ISBN|International Standard Book Number}}]]}}
| data19      = {{plainlist|<noinclude>ISBN|</noinclude>
| 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}}]}}
| label21      = {{longitem|[[Dewey Decimal Classification|Dewey Decimal]]<br />code}}
| label21      = {{longitem|[[Dewey Decimal Classification|Dewey Decimal]]<br />code}}
| data21      = {{{dewey|}}}
| data21      = {{#invoke:Wikidata|getValue|P1036|{{{dewey|FETCH_WIKIDATA}}}}}
| label22      = [[Library of Congress Classification|{{abbr|LCC|Library of Congress Classification}}]]
| label22      = [[Library of Congress Classification|{{abbr|LCC|Library of Congress Classification}}]]
| data22      = {{{congress|}}}
| data22      = {{#invoke:Wikidata|getValue|P1149|{{{congress|FETCH_WIKIDATA}}}}}
| label23      = Preceded by
| label23      = Preceded by
| data23      = {{{preceded_by|}}}
| data23      = {{#invoke:Wikidata|getValue|P155|{{{preceded_by|FETCH_WIKIDATA}}}}}
| label24      = Followed by
| label24      = Followed by
| data24      = {{{followed_by|}}}
| data24      = {{#invoke:Wikidata|getValue|P156|{{{followed_by|FETCH_WIKIDATA}}}}}
| belowstyle  = font-style:italic;text-align:right
| belowstyle  = font-style:italic;text-align:right
| below        = More on [[d:{{{wikidata| }}}|Wikidata]]
| below        = More on [[d:{{{wikidata| {{#invoke:Wikidata|pageId}} }}}|Wikidata]]
}}
}}