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}}}}}} }} <!------------...")
 
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{Infobox
 
{{Infobox
| italic title = {{{italic title|}}}
+
| italic title = {{{name|}}}
 
| bodyclass = vcard
 
| bodyclass = vcard
 
| bodystyle = {{#if:{{{infoboxwidth|{{{width|}}}}}} |width:{{{infoboxwidth|{{{width}}}}}} }}
 
| bodystyle = {{#if:{{{infoboxwidth|{{{width|}}}}}} |width:{{{infoboxwidth|{{{width}}}}}} }}
Line 6: Line 6:
 
<!---------------Title----------------->
 
<!---------------Title----------------->
 
| titlestyle = font-style:italic;padding-bottom:0.2em<!--(so title doesn't touch border)-->;
 
| titlestyle = font-style:italic;padding-bottom:0.2em<!--(so title doesn't touch border)-->;
| title = <includeonly>{{#if:{{{name|}}}{{{caption|{{{image_caption|}}}}}}{{{editors|{{{editor|}}}}}}{{{authors|{{{author|}}}}}}{{{audio_read_by|}}}{{{title_orig|}}}{{{title_working|}}}{{{translators|{{{translator|}}}}}}{{{illustrators|{{{illustrator|}}}}}}{{{cover_artist|}}}{{{city|}}}{{{country|}}}{{{language|}}}{{{series|}}}{{{release_number|}}}{{{subjects|{{{subject|}}}}}}{{{genres|{{{genre|}}}}}}{{{set_in|}}}{{{published|}}}{{{publisher|}}}{{{publisher2|}}}{{{pub_date|{{{release_date|}}}}}}{{{english_pub_date|{{{english_release_date|}}}}}}{{{media_type|}}}{{{pages|}}}{{{awards|{{{award|}}}}}}{{{isbn_note|{{{ISBN_note|}}}}}}{{{dewey|}}}{{{congress|}}}{{{website|}}}{{{electronic_version|}}}| }}<!-- hack for ref ordering
+
| title = <includeonly>{{#if:{{{name|}}}{{{caption|{{{image_caption|}}}}}}{{{authors|{{{author|}}}}}}{{{editors|{{{editor|}}}}}}{{{audio_read_by|}}}{{{title_orig|}}}{{{title_working|}}}{{{translators|{{{translator|}}}}}}{{{illustrators|{{{illustrator|}}}}}}{{{cover_artist|}}}{{{design|}}}{{{texts|{{{text|}}}}}}{{{country|}}}{{{language|}}}{{{series|}}}{{{release_number|}}}{{{subjects|{{{subject|}}}}}}{{{genres|{{{genre|}}}}}}{{{set_in|}}}{{{published|}}}{{{publisher|}}}{{{publisher2|}}}{{{pub_city|}}}{{{pub_date|{{{release_date|}}}}}}{{{english_pub_date|{{{english_release_date|}}}}}}{{{format|}}}{{{fabrication|}}}{{{reprint|}}}{{{media_type|}}}{{{pages|}}}{{{awards|{{{award|}}}}}}{{{isbn_note|{{{ISBN_note|}}}}}}{{{dewey|}}}{{{congress|}}}{{{website|}}}{{{ebook|}}}| }}<!-- hack for ref ordering
 
  -->{{{name|{{PAGENAMEBASE}}}}} <!--
 
  -->{{{name|{{PAGENAMEBASE}}}}} <!--
 
  --><span class="Z3988"
 
  --><span class="Z3988"
Line 15: Line 15:
 
                 -->{{#if:{{{pub_date|{{{release_date|}}}}}} |&rft.date={{urlencode:{{{pub_date|{{{release_date}}}}}}}}}}<!--
 
                 -->{{#if:{{{pub_date|{{{release_date|}}}}}} |&rft.date={{urlencode:{{{pub_date|{{{release_date}}}}}}}}}}<!--
 
                 -->{{#if:{{{publisher|}}} |&rft.pub={{urlencode:{{{publisher}}}}}}}<!--
 
                 -->{{#if:{{{publisher|}}} |&rft.pub={{urlencode:{{{publisher}}}}}}}<!--
 +
                -->{{#if:{{{city|}}}      |&rft.city={{urlencode:{{{city}}}}}}}<!--
 
                 -->{{#if:{{{location|}}}  |&rft.place={{urlencode:{{{location}}}}}}}<!--
 
                 -->{{#if:{{{location|}}}  |&rft.place={{urlencode:{{{location}}}}}}}<!--
 
                 -->{{#if:{{{pages|}}}    |&rft.pages={{urlencode:{{{pages}}}}}}}<!--
 
                 -->{{#if:{{{pages|}}}    |&rft.pages={{urlencode:{{{pages}}}}}}}<!--
Line 24: Line 25:
 
<!---------------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|}}}}}}
  
 
<!---------------Data------------------>
 
<!---------------Data------------------>
| label1 = Editor{{#if:{{{editors|}}}|s}}
+
| label0 = Name
data1 = {{{editors|{{{editor|}}}}}}
+
data0 = {{{name|}}}
  
| label2 = Author{{#if:{{{authors|}}}|s}}
+
| label1 = Author{{#if:{{{authors|}}}|s}}
data2 = {{{authors|{{{author|}}}}}}
+
data1 = {{{authors|{{{author|}}}}}}
 +
 
 +
| label2  = Editor{{#if:{{{editors|}}}|s}}
 +
|  data2  = {{{editors|{{{editor|}}}}}}
  
 
| label3  = Audio&nbsp;read&nbsp;by
 
| label3  = Audio&nbsp;read&nbsp;by
Line 41: Line 42:
  
 
| 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 55: Line 56:
 
|  data8  = {{{cover_artist|}}}
 
|  data8  = {{{cover_artist|}}}
  
| label9a = City
+
| label10  = Design
data9a = {{{city|}}}
+
|  data10  = {{{design|}}}
 +
 
 +
| label11  = Text{{#if:{{{texts|}}}|s}}
 +
|  data11  = {{{texts|{{{text|}}}}}}
 +
 
 +
| label12 = Country
 +
data12 = {{{country|}}}
  
| label10 = Country
+
| label13 = Language
data10 = {{{country|}}}
+
data13 = {{{language|}}}
  
| label11 = Language
+
| label14 = Series
data11 = {{{language|}}}
+
data14 = {{{series|}}}
  
| label12 = Series
+
| label15 = {{longitem|Release number}}
data12 = {{{series|}}}
+
data15 = {{{release_number|}}}
  
| label13 = {{longitem|Release number}}
+
| label16 = Subject{{#if:{{{subjects|}}}|s}}
data13 = {{{release_number|}}}
+
data16 = {{{subjects|{{{subject|}}}}}}
  
| label14 = Subject{{#if:{{{subjects|}}}|s}}
+
| label17 = Genre{{#if:{{{genres|}}}|s}}
data14 = {{{subjects|{{{subject|}}}}}}
+
data17 = {{{genres|}}}
  
| label15 = Genre{{#if:{{{genres|}}}|s}}
+
| label18 = Set&nbsp;in
data15 = {{#invoke:Wikidata|getValue|P136|{{{genres|{{{genre|}}}}}}}}
+
data18 = {{{set_in|}}}
  
| label16 = Set&nbsp;in
+
| label19 = Published
data16 = {{{set_in|}}}
+
data19 = {{{published|}}}
  
| label17 = Published
+
| label20 = Publisher
data17 = {{{published|}}}
+
data20 = {{{publisher|}}}{{#if:{{{publisher2|}}} |, {{{publisher2}}} }}
  
| label18 = Publisher
+
| label21 = City
data18 = {{{publisher|}}}{{#if:{{{publisher2|}}} |, {{{publisher2}}} }}
+
data21 = {{{pub_city|}}}
  
| label19 = {{longitem|Publication date}}
+
| label22 = Date
data19 = {{#invoke:Wikidata|getValue|P577|{{{pub_date|{{{release_date|}}}}}}}}
+
data22 = {{{pub_date|{{{release_date|}}}}}}
  
| label20 = {{longitem|Published&nbsp;in English}}
+
| label23 = {{longitem|Published&nbsp;in English}}
data20 = {{{english_pub_date|{{{english_release_date|}}}}}}
+
data23 = {{{english_pub_date|{{{english_release_date|}}}}}}
  
| label21 = Media&nbsp;type
+
| label24  = Reprint
data21 = {{{media_type|}}}
+
data24  = {{{reprint|}}}
  
| label22 = Pages
+
| label25 = Media&nbsp;type
data22 = {{#invoke:Wikidata|getValue|P1104|{{{pages|}}}}}
+
data25 = {{{media_type|}}}
  
| label23 = Award{{#if:{{{awards|}}}|s}}
+
| label26 = Pages
data23 = {{{awards|{{{award|}}}}}}
+
|  data26 = {{{pages|}}}
 +
 
 +
| label27 = Format
 +
|  data27 = {{{format|}}}
 +
 
 +
| label28 = Fabrication
 +
|  data28 = {{{fabrication|}}}
 +
 
 +
| label29 = Award{{#if:{{{awards|}}}|s}}
 +
data29 = {{{awards|{{{award|}}}}}}
  
 
| 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 123:
  
 
| 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 126: Line 137:
 
             | {{#if:{{{followed_by_quotation_marks|}}} |"{{{followed_by_quotation_marks|}}}"}}
 
             | {{#if:{{{followed_by_quotation_marks|}}} |"{{{followed_by_quotation_marks|}}}"}}
 
             }}
 
             }}
 
| label36 = {{longitem|Original text}}
 
|  data36 = {{#if:{{both|{{{native_wikisource|}}}|{{{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|}}}
 
                    | [{{{native_external_url|}}} {{{title_orig|{{{name|{{PAGENAME}}}}}}}}]<!--
 
                -->}}'' <!--
 
                -->{{#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}} }}
|  data37 = {{#if:{{{wikisource|}}} <!--
+
|  data37 = {{#if:{{{external_url|}}}
    then:-->| ''[[s:{{{wikisource|}}}|{{{name|{{PAGENAME}}}}}]]'' at <!--
 
              -->{{#if:{{{native_wikisource|}}} |Wikisource |[[Wikisource]]}}<!--
 
              -->{{main other|[[Category:Articles that link to Wikisource]]}} <!--(create hidden category to be monitored by WikiProject:Wikisource)
 
    else:-->| {{#if:{{{external_url|}}}
 
 
                 | ''[{{{external_url|}}} {{{name|{{PAGENAME}}}}}]'' <!--
 
                 | ''[{{{external_url|}}} {{{name|{{PAGENAME}}}}}]'' <!--
 
                 -->{{#if:{{{external_host|}}} |at {{{external_host|}}} |online}}
 
                 -->{{#if:{{{external_host|}}} |at {{{external_host|}}} |online}}
             }} }}
+
             }}  
  
 
| label38  = Website
 
| label38  = Website
| data38    = {{{website|{{{homepage|{{{URL|{{#ifeq:{{{website|{{{homepage|{{{URL|}}}}}}}}}
+
| data38    = {{{website|}}}
    | FETCH_WIKIDATA
 
    | {{#if:{{#property:P856}}|{{Url|1={{#invoke:Wikidata|getValue|P856|FETCH_WIKIDATA}} }} }}
 
    |}}}}}}}}}}}
 
  
| label38b   = Electronic version
+
| label39   = E-book
| data38b   = {{{electronic_version|}}}
+
| data39   = {{{ebook|}}}
  
 
| belowstyle = border-top:#aaa 1px solid;font-size:90%;
 
| belowstyle = border-top:#aaa 1px solid;font-size:90%;
 
| 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}}
+
[https://en.wikipedia.org/wiki/Template:Infobox_book Documentation]
 
</noinclude>
 
</noinclude>

Latest revision as of 21:32, 8 December 2023

{{{1}}}

Documentation