Template:Infobox book: Difference between revisions
From Vigyanwiki
Template>Frietjes (simplify, just use the main template:ISBNT which includes error checking and tracking) |
Template>Frietjes (add wikidata, to enable, omit the corresponding parameter, otherwise uses parameters provided in infobox directly (see template:infobox telescope for another example)) |
||
| Line 72: | Line 72: | ||
| label15 = Genre{{#if:{{{genres|}}}|s}} | | label15 = Genre{{#if:{{{genres|}}}|s}} | ||
| data15 = {{{genres|{{{genre|}}}}}} | | data15 = {{#invoke:Wikidata|getValue|P136|{{{genres|{{{genre|FETCH_WIKIDATA}}}}}}}} | ||
| label16 = Set in | | label16 = Set in | ||
| Line 84: | Line 84: | ||
| label19 = {{longitem|Publication date}} | | label19 = {{longitem|Publication date}} | ||
| data19 = {{{pub_date|{{{release_date|}}}}}} | | data19 = {{#invoke:Wikidata|getValue|P577|{{{pub_date|{{{release_date|FETCH_WIKIDATA}}}}}}}} | ||
| label20 = {{longitem|Published in English}} | | label20 = {{longitem|Published in English}} | ||
| Line 93: | Line 93: | ||
| label22 = Pages | | label22 = Pages | ||
| data22 = {{{pages|}}} | | data22 = {{#invoke:Wikidata|getValue|P1104|{{{pages|FETCH_WIKIDATA}}}}} | ||
| label23 = Award{{#if:{{{awards|}}}|s}} | | label23 = Award{{#if:{{{awards|}}}|s}} | ||
| Line 99: | Line 99: | ||
| label30 = [[International Standard Book Number|ISBN]] | | label30 = [[International Standard Book Number|ISBN]] | ||
| data30 = {{#if:{{{isbn|{{{ISBN|}}}}}} | | data30 = {{#if:{{{isbn|{{{ISBN|{{#property:P212}}}}}}}} | ||
| {{ISBNT|1={{{isbn|{{{ISBN}}}}}}}} {{{isbn_note|{{{ISBN_note|}}}}}} }} | | {{ISBNT|1={{{isbn|{{{ISBN|{{#property:P212}}}}}}}}}} {{{isbn_note|{{{ISBN_note|}}}}}} }} | ||
| label31 = [[OCLC#Identifiers and linked data|{{abbr|OCLC|Online Computer Library Center number}}]] | | label31 = [[OCLC#Identifiers and linked data|{{abbr|OCLC|Online Computer Library Center number}}]] | ||
| Line 106: | Line 106: | ||
| label32 = {{longitem|[[Dewey Decimal Classification|Dewey Decimal]]}} | | label32 = {{longitem|[[Dewey Decimal Classification|Dewey Decimal]]}} | ||
| data32 = {{{dewey|}}} | | data32 = {{#invoke:Wikidata|getValue|P1036|{{{dewey|FETCH_WIKIDATA}}}}} | ||
| 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 = {{{congress|}}} | | data33 = {{#invoke:Wikidata|getValue|P1149|{{{congress|FETCH_WIKIDATA}}}}} | ||
| label34 = Preceded by | | label34 = Preceded by | ||
| Line 148: | Line 148: | ||
| label38 = Website | | label38 = Website | ||
| data38 = {{{website|{{{homepage|{{{URL|}}}}}}}}} | | data38 = {{{website|{{{homepage|{{{URL|{{#if:{{#property:P856}}|{{Url|1={{#invoke:Wikidata|getValue|P856|FETCH_WIKIDATA}} }} }} }}}}}}}}} | ||
| belowstyle = border-top:#aaa 1px solid;font-size:90%; | | belowstyle = border-top:#aaa 1px solid;font-size:90%; | ||
Revision as of 19:51, 28 March 2016
Lua error in Module:TNT at line 182: Missing Commons dataset I18n/Module:TNT.tab.