Difference between revisions of "Template:Infobox book"

From Monoskop
Jump to navigation Jump to search
(12 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 28: Line 29:
  
 
<!---------------Data------------------>
 
<!---------------Data------------------>
| label1  = Editor{{#if:{{{editors|}}}|s}}
+
| label1  = Author{{#if:{{{authors|}}}|s}}
|  data1  = {{{editors|{{{editor|}}}}}}
+
|  data1  = {{{authors|{{{author|}}}}}}
  
| label2  = Author{{#if:{{{authors|}}}|s}}
+
| label2  = Editor{{#if:{{{editors|}}}|s}}
|  data2  = {{{authors|{{{author|}}}}}}
+
|  data2  = {{{editors|{{{editor|}}}}}}
  
 
| label3  = Audio&nbsp;read&nbsp;by
 
| label3  = Audio&nbsp;read&nbsp;by
Line 52: Line 53:
 
|  data8  = {{{cover_artist|}}}
 
|  data8  = {{{cover_artist|}}}
  
| label9a = City
+
| label10  = Design
data9a = {{{city|}}}
+
data10  = {{{design|}}}
  
| label10 = Country
+
| label11  = Text{{#if:{{{texts|}}}|s}}
data10 = {{{country|}}}
+
data11  = {{{texts|{{{text|}}}}}}
  
| label11 = Language
+
| label12 = Country
data11 = {{{language|}}}
+
data12 = {{{country|}}}
  
| label12 = Series
+
| label13 = Language
data12 = {{{series|}}}
+
data13 = {{{language|}}}
  
| label13 = {{longitem|Release number}}
+
| label14 = Series
data13 = {{{release_number|}}}
+
data14 = {{{series|}}}
  
| label14 = Subject{{#if:{{{subjects|}}}|s}}
+
| label15 = {{longitem|Release number}}
data14 = {{{subjects|{{{subject|}}}}}}
+
data15 = {{{release_number|}}}
  
| label15 = Genre{{#if:{{{genres|}}}|s}}
+
| label16 = Subject{{#if:{{{subjects|}}}|s}}
data15 = {{{genres|}}}
+
data16 = {{{subjects|{{{subject|}}}}}}
  
| label16 = Set&nbsp;in
+
| label17 = Genre{{#if:{{{genres|}}}|s}}
data16 = {{{set_in|}}}
+
data17 = {{{genres|}}}
  
| label17 = Published
+
| label18 = Set&nbsp;in
data17 = {{{published|}}}
+
data18 = {{{set_in|}}}
  
| label18 = Publisher
+
| label19 = Published
data18 = {{{publisher|}}}{{#if:{{{publisher2|}}} |, {{{publisher2}}} }}
+
data19 = {{{published|}}}
  
| label19 = {{longitem|Publication date}}
+
| label20 = Publisher
data19 = {{{pub_date|{{{release_date|}}}}}}
+
data20 = {{{publisher|}}}{{#if:{{{publisher2|}}} |, {{{publisher2}}} }}
  
| label20 = {{longitem|Published&nbsp;in English}}
+
| label21 = City
data20 = {{{english_pub_date|{{{english_release_date|}}}}}}
+
data21 = {{{pub_city|}}}
  
| label21 = Media&nbsp;type
+
| label22 = Year
data21 = {{{media_type|}}}
+
data22 = {{{pub_date|{{{release_date|}}}}}}
  
| label22 = Pages
+
| label23 = {{longitem|Published&nbsp;in English}}
data22 = {{{pages|}}}
+
data23 = {{{english_pub_date|{{{english_release_date|}}}}}}
  
| label23 = Award{{#if:{{{awards|}}}|s}}
+
| label24  = Reprint
data23 = {{{awards|{{{award|}}}}}}
+
|  data24  = {{{reprint|}}}
 +
 
 +
| label25 = Media&nbsp;type
 +
|  data25 = {{{media_type|}}}
 +
 
 +
| label26 = Pages
 +
|  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]]
Line 118: Line 134:
 
             | {{#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_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|}}}
  
| 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%;
Line 147: Line 151:
  
 
}}<noinclude>
 
}}<noinclude>
{{Documentation}}
+
[https://en.wikipedia.org/wiki/Template:Infobox_book Documentation]
 
</noinclude>
 
</noinclude>

Revision as of 08:32, 10 October 2020

{{{1}}}

Documentation