Difference between revisions of "Template:Infobox book"

From Monoskop
Jump to navigation Jump to search
(Created page with "{{Infobox | italic title = {{{italic title|}}} | bodyclass = vcard | bodystyle = {{#if:{{{infoboxwidth|{{{width|}}}}}} |width:{{{infoboxwidth|{{{width}}}}}} }} <!------------...")
 
Line 24: Line 24:
 
<!---------------Image----------------->
 
<!---------------Image----------------->
 
| imagestyle = {{#if:{{{image|}}}||display:none}}
 
| imagestyle = {{#if:{{{image|}}}||display:none}}
| image = {{#if:{{{image|}}} <!--
+
| image = {{#if:{{{image|}}}|[[File:{{{image}}}|{{px|{{{imagesize|{{{image_size|}}}}}}|frameless}}|alt={{{alt|}}}]]}}
  then:-->| {{#invoke:InfoboxImage|InfoboxImage |image={{{image|}}} |size={{{image_size|}}} |sizedefault=frameless |upright=1 |alt={{{alt|}}} |border={{{border|}}} |suppressplaceholder=yes}}<!--
 
  else:-->| {{#ifeq:{{yesno|{{lc:{{{exclude_cover|no}}}}}}}|yes | |{{main other|[[Category:Books with missing cover]]}} }}
 
          }}
 
 
| caption = {{{caption|{{{image_caption|}}}}}}
 
| caption = {{{caption|{{{image_caption|}}}}}}
  
Line 41: Line 38:
  
 
| label4  = Original&nbsp;title
 
| label4  = Original&nbsp;title
|  data4  = {{#if:{{{title_orig|}}} |{{#if:{{{orig_lang_code|}}}|{{lang|{{{orig_lang_code|}}} |{{{title_orig}}}  |italics={{#invoke:lang/utilities|set_italics|{{{orig_lang_code|}}}|{{{title_orig}}}}}}}|''{{{title_orig}}}''}} }}
+
|  data4  = {{{title_orig|}}}
  
 
| label5  = Working&nbsp;title
 
| label5  = Working&nbsp;title
Line 74: Line 71:
  
 
| label15 = Genre{{#if:{{{genres|}}}|s}}
 
| label15 = Genre{{#if:{{{genres|}}}|s}}
|  data15 = {{#invoke:Wikidata|getValue|P136|{{{genres|{{{genre|}}}}}}}}
+
|  data15 = {{{genres|}}}
  
 
| label16 = Set&nbsp;in
 
| label16 = Set&nbsp;in
Line 86: Line 83:
  
 
| label19 = {{longitem|Publication date}}
 
| label19 = {{longitem|Publication date}}
|  data19 = {{#invoke:Wikidata|getValue|P577|{{{pub_date|{{{release_date|}}}}}}}}
+
|  data19 = {{{pub_date|{{{release_date|}}}}}}
  
 
| label20 = {{longitem|Published&nbsp;in English}}
 
| label20 = {{longitem|Published&nbsp;in English}}
Line 95: Line 92:
  
 
| label22 = Pages
 
| label22 = Pages
|  data22 = {{#invoke:Wikidata|getValue|P1104|{{{pages|}}}}}
+
|  data22 = {{{pages|}}}
  
 
| label23 = Award{{#if:{{{awards|}}}|s}}
 
| label23 = Award{{#if:{{{awards|}}}|s}}
Line 101: Line 98:
  
 
| label30 = [[International Standard Book Number|ISBN]]
 
| label30 = [[International Standard Book Number|ISBN]]
|  data30 = {{#if:{{{isbn|{{{ISBN|}}}}}}
+
|  data30 = {{{isbn|{{{ISBN|}}}}}} {{{isbn_note|{{{ISBN_note|}}}}}}
            | {{#ifeq:{{{isbn|{{{ISBN|}}}}}}|FETCH_WIKIDATA
 
              | {{#invoke:ISBNT|link|{{#property:P212}}}}[[Category:Pages using isbn values obtained from wikidata]]
 
              | {{ISBNT|1={{{isbn|{{{ISBN}}}}}}}} {{{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 112: Line 104:
  
 
| label32 = {{longitem|[[Dewey Decimal Classification|Dewey Decimal]]}}
 
| label32 = {{longitem|[[Dewey Decimal Classification|Dewey Decimal]]}}
|  data32 = {{#invoke:Wikidata|getValue|P1036|{{{dewey|}}}}}
+
|  data32 = {{{dewey|}}}
  
 
| label33 = [[Library of Congress Classification|{{abbr|LC&nbsp;Class|Library of Congress Classification}}]]
 
| label33 = [[Library of Congress Classification|{{abbr|LC&nbsp;Class|Library of Congress Classification}}]]
|  data33 = {{#invoke:Wikidata|getValue|P1149|{{{congress|}}}}}
+
|  data33 = {{{congress|}}}
  
 
| label34 = Preceded&nbsp;by
 
| label34 = Preceded&nbsp;by
Line 128: Line 120:
  
 
| label36 = {{longitem|Original text}}
 
| label36 = {{longitem|Original text}}
|  data36 = {{#if:{{both|{{{native_wikisource|}}}|{{{orig_lang_code|}}}}} <!--
+
|  data36 = {{#if:{{both|{{{native_external_url|}}}|{{{orig_lang_code|}}}}}
    then:-->| ''{{lang |{{{orig_lang_code|}}}
 
                  | [[s:{{#if:{{{orig_lang_code|}}}|{{{orig_lang_code|}}}:}}{{{native_wikisource|}}}|{{{title_orig|{{{name|{{PAGENAME}}}}}}}}]]<!--
 
              -->}}'' at <!--
 
              -->{{#if:{{#invoke:lang|is_ietf_code|{{{orig_lang_code}}}}}|{{#invoke:lang|name_from_code|{{{orig_lang_code}}}}}}} [[Wikisource]]<!--
 
              -->{{main other|[[Category:Articles that link to foreign-language Wikisources]]}} <!--(create hidden category to be monitored by WikiProject:Wikisource)
 
    else:-->| {{#if:{{both|{{{native_external_url|}}}|{{{orig_lang_code|}}}}}
 
 
                 | ''{{lang |{{{orig_lang_code|}}}
 
                 | ''{{lang |{{{orig_lang_code|}}}
 
                     | [{{{native_external_url|}}} {{{title_orig|{{{name|{{PAGENAME}}}}}}}}]<!--
 
                     | [{{{native_external_url|}}} {{{title_orig|{{{name|{{PAGENAME}}}}}}}}]<!--
 
                 -->}}'' <!--
 
                 -->}}'' <!--
 
                 -->{{#if:{{{native_external_host|}}} |at {{{native_external_host|}}} |online}}
 
                 -->{{#if:{{{native_external_host|}}} |at {{{native_external_host|}}} |online}}
             }} }}
+
             }}  
  
 
| label37 = {{#if:{{{native_wikisource|}}} |Translation |{{#if:{{{native_external_url|}}}|Translation|Text}} }}
 
| label37 = {{#if:{{{native_wikisource|}}} |Translation |{{#if:{{{native_external_url|}}}|Translation|Text}} }}
Line 152: Line 138:
  
 
| label38  = Website
 
| label38  = Website
| data38    = {{{website|{{{homepage|{{{URL|{{#ifeq:{{{website|{{{homepage|{{{URL|}}}}}}}}}
+
| data38    = {{{website|{{{homepage|{{{URL|{{#ifeq:{{{website|{{{homepage|{{{URL|}}}}}}}}}}}|}}}}}}}}}}}
    | FETCH_WIKIDATA
 
    | {{#if:{{#property:P856}}|{{Url|1={{#invoke:Wikidata|getValue|P856|FETCH_WIKIDATA}} }} }}
 
    |}}}}}}}}}}}
 
  
 
| label38b  = Electronic version
 
| label38b  = Electronic version
Line 163: Line 146:
 
| below = {{{notes|{{{note|}}}}}}
 
| below = {{{notes|{{{note|}}}}}}
  
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox book with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox book]] with unknown parameter "_VALUE_"|ignoreblank=y| alt | audio_read_by | author | authors | award | awards | border | caption | city | congress | country | cover_artist | dewey | editor | editors | electronic_version | english_pub_date | english_release_date | exclude_cover | external_host | external_url | first | followed_by | followed_by_quotation_marks | genre | genres | homepage | illustrator | illustrators | image | image_caption | image_size | infoboxwidth | isbn | ISBN  | isbn_note | ISBN_note | italic title | language | last | location | media_type | name | native_external_host | native_external_url | native_wikisource | nocat_wdimage | note | notes | oclc | orig_lang_code | pages | preceded_by | preceded_by_quotation_marks | pub_date | published | publisher | publisher2 | release_date | release_number | series | set_in | subject | subjects | title_orig | title_working | translator | translators | URL | website | width | wikisource
 
}}{{Wikidata image |1={{{image|}}} |2={{{nocat_wdimage|}}}
 
}}{{#if:{{{image|}}}|{{#if:{{#property:P18}}||[[Category:Pages to import images to Wikidata]]}}
 
 
}}<noinclude>
 
}}<noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 16:13, 10 December 2018

Original text
Template:Lang online

{{{1}}}

| label38b = Electronic version | data38b =

| belowstyle = border-top:#aaa 1px solid;font-size:90%; | below =

}}

[create] 50px Template documentation