Difference between revisions of "Template:Infobox book/Wikidata/Filtered"

From blackwiki
Jump to navigation Jump to search
imported>RexxS
(getSourcedValue only)
imported>RexxS
(add qids for demo purposes)
Line 36: Line 36:
  
 
| label2  = Author{{#if:{{{authors|}}}|s}}
 
| label2  = Author{{#if:{{{authors|}}}|s}}
|  data2  = {{#invoke:WikidataIB |getSourcedValue |P50 |name=author |fetchwikidata={{{fetchwikidata|}}} |suppressfields={{{suppressfields|}}} |{{{authors|{{{author|}}}}}} }}
+
|  data2  = {{#invoke:WikidataIB |getSourcedValue |P50 |name=author |fetchwikidata={{{fetchwikidata|}}} |suppressfields={{{suppressfields|}}} |{{{authors|{{{author|}}}}}}  |qid={{{qid|}}} }}
  
 
| label3  = Audio read by
 
| label3  = Audio read by
Line 72: Line 72:
  
 
| label15 = Genre{{#if:{{{genres|}}}|s}}
 
| label15 = Genre{{#if:{{{genres|}}}|s}}
|  data15 = {{#invoke:WikidataIB |getSourcedValue |P136 |name=genre |fetchwikidata={{{fetchwikidata|}}} |suppressfields={{{suppressfields|}}} |{{{genres|{{{genre|}}}}}} }}
+
|  data15 = {{#invoke:WikidataIB |getSourcedValue |P136 |name=genre |fetchwikidata={{{fetchwikidata|}}} |suppressfields={{{suppressfields|}}} |{{{genres|{{{genre|}}}}}}  |qid={{{qid|}}} }}
  
 
| label16 = Set in
 
| label16 = Set in
Line 84: Line 84:
  
 
| label19 = {{longitem|Publication date}}
 
| label19 = {{longitem|Publication date}}
|  data19 = {{#invoke:WikidataIB |getSourcedValue |P577 |name=pub_date |fetchwikidata={{{fetchwikidata|}}} |suppressfields={{{suppressfields|}}} |{{{pub_date|{{{release_date|}}}}}} }}
+
|  data19 = {{#invoke:WikidataIB |getSourcedValue |P577 |name=pub_date |fetchwikidata={{{fetchwikidata|}}} |suppressfields={{{suppressfields|}}} |{{{pub_date|{{{release_date|}}}}}}  |qid={{{qid|}}} }}
  
 
| label20 = {{longitem|Published in English}}
 
| label20 = {{longitem|Published in English}}
Line 93: Line 93:
  
 
| label22 = Pages
 
| label22 = Pages
|  data22 = {{#invoke:WikidataIB |getSourcedValue |P1104 |name=pages |fetchwikidata={{{fetchwikidata|}}} |suppressfields={{{suppressfields|}}} |{{{pages|}}} }}
+
|  data22 = {{#invoke:WikidataIB |getSourcedValue |P1104 |name=pages |fetchwikidata={{{fetchwikidata|}}} |suppressfields={{{suppressfields|}}} |{{{pages|}}}  |qid={{{qid|}}} }}
  
 
| label23 = Award{{#if:{{{awards|}}}|s}}
 
| label23 = Award{{#if:{{{awards|}}}|s}}
Line 110: Line 110:
  
 
| label32 = {{longitem|[[Dewey Decimal Classification|Dewey Decimal]]}}
 
| label32 = {{longitem|[[Dewey Decimal Classification|Dewey Decimal]]}}
|  data32 = {{#invoke:WikidataIB |getSourcedValue |P1036 |name=dewey |fetchwikidata={{{fetchwikidata|}}} |suppressfields={{{suppressfields|}}} |{{{dewey|}}} }}
+
|  data32 = {{#invoke:WikidataIB |getSourcedValue |P1036 |name=dewey |fetchwikidata={{{fetchwikidata|}}} |suppressfields={{{suppressfields|}}} |{{{dewey|}}}  |qid={{{qid|}}} }}
  
 
| label33 = [[Library of Congress Classification|{{abbr|LC Class|Library of Congress Classification}}]]
 
| label33 = [[Library of Congress Classification|{{abbr|LC Class|Library of Congress Classification}}]]
|  data33 = {{#invoke:WikidataIB |getSourcedValue |P1149 |name=congress |fetchwikidata={{{fetchwikidata|}}} |suppressfields={{{suppressfields|}}} |{{{congress|}}} }}
+
|  data33 = {{#invoke:WikidataIB |getSourcedValue |P1149 |name=congress |fetchwikidata={{{fetchwikidata|}}} |suppressfields={{{suppressfields|}}} |{{{congress|}}}  |qid={{{qid|}}} }}
  
 
| label34 = Preceded by
 
| label34 = Preceded by
Line 152: Line 152:
  
 
| label38  = Website
 
| label38  = Website
| data38    = {{#invoke:WikidataIB |getSourcedValue |P856 |name=pages |fetchwikidata={{{fetchwikidata|}}} |suppressfields={{{suppressfields|}}} |{{{website|{{{homepage|{{{URL|}}}}}}}}} }}
+
| data38    = {{#invoke:WikidataIB |getSourcedValue |P856 |name=pages |fetchwikidata={{{fetchwikidata|}}} |suppressfields={{{suppressfields|}}} |{{{website|{{{homepage|{{{URL|}}}}}}}}}  |qid={{{qid|}}} }}
  
 
| belowstyle = border-top:#aaa 1px solid;font-size:90%;
 
| belowstyle = border-top:#aaa 1px solid;font-size:90%;

Revision as of 14:51, 20 June 2016

AuthorScript error: The function "getSourcedValue" does not exist.
GenreScript error: The function "getSourcedValue" does not exist.
Publication date
Script error: The function "getSourcedValue" does not exist.
PagesScript error: The function "getSourcedValue" does not exist.
Script error: The function "getSourcedValue" does not exist.
LC ClassScript error: The function "getSourcedValue" does not exist.
WebsiteScript error: The function "getSourcedValue" does not exist.