Template:Infobox book: Difference between revisions

From Vigyanwiki
Template>Frietjes
(using underscores since all other parameters use underscores)
Template>DePiep
(Add parameters |audio read by= and |set in=. See Template_talk:Infobox_book#Read_by_parameter)
Line 4: Line 4:
| bodystyle = {{#if:{{{infoboxwidth|{{{width|}}}}}} |width:{{{infoboxwidth|{{{width}}}}}} }}
| bodystyle = {{#if:{{{infoboxwidth|{{{width|}}}}}} |width:{{{infoboxwidth|{{{width}}}}}} }}


<!---------------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><!--
| title = <includeonly><!--
  -->{{{name|{{PAGENAME}}}}} <!--
  -->{{{name|{{PAGENAME}}}}}<!--
  --><span class="Z3988"
  --><span class="Z3988"
           title="ctx_ver=Z39.88-2004&rft_val_fmt={{urlencode:info:ofi/fmt:kev:mtx:book}}&rft.genre=book&rft.btitle={{urlencode:{{{name|}}}}}<!--
           title="ctx_ver=Z39.88-2004&rft_val_fmt={{urlencode:info:ofi/fmt:kev:mtx:book}}&rft.genre=book&rft.btitle={{urlencode:{{{name|}}}}}<!--
Line 22: Line 22:
       --></includeonly>
       --></includeonly>


<!---------------Image----------------->
<!--------------- Image ----------------->
| image = {{#if:{{{image|}}} <!--
| image = {{#if:{{{image|}}} <!--
   then:-->|  {{#ifeq:{{str left|{{{image|}}}|1}}|[ |[[Category:Infobox book image param needs updating]]}}<!--
   then:-->|  {{#ifeq:{{str left|{{{image|}}}|1}}|[ |[[Category:Infobox book image param needs updating]]}}<!--
Line 30: Line 30:
| caption = {{{caption|{{{image_caption|}}}}}}
| caption = {{{caption|{{{image_caption|}}}}}}


<!---------------Data------------------>
<!--------------- Data (creative input) ------------------>
| label1 = Editor{{#if:{{{editors|}}}|s}}
| label1 = Editor{{#if:{{{editors|}}}|s}}
|  data1 = {{{editors|{{{editor|}}}}}}
|  data1 = {{{editors|{{{editor|}}}}}}


| label2 = Author{{#if:{{{authors|}}}|s}}
| label2 = Author{{#if:{{{authors|}}}|s}}
|  data2 = {{{authors|{{{author|}}}}}}
|  data2 = {{{authors|{{{author|}}}}}}


| label3 = Audio&nbsp;read&nbsp;by
| label3 = Audio&nbsp;read&nbsp;by
|  data3 = {{{audio_read_by|}}}
|  data3 = {{{audio read by|}}}


| label4 = Original&nbsp;title
| label4 = Original&nbsp;title
|  data4 = {{#if:{{{title_orig|}}} |{{lang|{{{orig_lang_code|}}} |''{{{title_orig}}}''}} }}
|  data4 = {{#if:{{{title_orig|}}} |{{lang|{{{orig_lang_code|}}} |''{{{title_orig}}}''}} }}


| label5 = Working&nbsp;title
| label5 = Working&nbsp;title
|  data5 = {{#if:{{{title_working|}}} |''{{{title_working}}}''}}
|  data5 = {{#if:{{{title_working|}}} |''{{{title_working}}}''}}


| label6 = Translator{{#if:{{{translators|}}}|s}}
| label6 = Translator{{#if:{{{translators|}}}|s}}
|  data6 = {{{translators|{{{translator|}}}}}}
|  data6 = {{{translators|{{{translator|}}}}}}


| label7 = Illustrator{{#if:{{{illustrators|}}}|s}}
| label7 = Illustrator{{#if:{{{illustrators|}}}|s}}
|  data7 = {{{illustrators|{{{illustrator|}}}}}}
|  data7 = {{{illustrators|{{{illustrator|}}}}}}


| label8 = Cover&nbsp;artist
| label8 = Cover&nbsp;artist
|  data8 = {{{cover_artist|}}}
|  data8 = {{{cover_artist|}}}


| label9  = Country
<!--------------- Data (factual) ------------------>
data9  = {{{country|}}}
| label10 = Country
data10 = {{{country|}}}


| label10 = Language
| label11 = Language
data10 = {{{language|}}}
data11 = {{{language|}}}


| label11 = Series
| label12 = Series
data11 = {{{series|}}}
data12 = {{{series|}}}


| label12 = Subject{{#if:{{{subjects|}}}|s}}
| label13 = Subject{{#if:{{{subjects|}}}|s}}
data12 = {{{subjects|{{{subject|}}}}}}
data13 = {{{subjects|{{{subject|}}}}}}


| label13 = Genre{{#if:{{{genres|}}}|s}}
| label14 = Genre{{#if:{{{genres|}}}|s}}
data13 = {{{genres|{{{genre|}}}}}}
data14 = {{{genres|{{{genre|}}}}}}


| label14 = Published
| label15 = Set&nbsp;in
data14 = {{{published|}}}
data15 = {{{set in|}}}


| label15 = Publisher
| label16 = Published
data15 = {{{publisher|}}}{{#if:{{{publisher2|}}} |, {{{publisher2}}} }}
data16 = {{{published|}}}


| label16 = {{longitem|Publication date}}
| label17 = Publisher
data16 = {{{pub_date|{{{release_date|}}}}}}
data17 = {{{publisher|}}}{{#if:{{{publisher2|}}} |, {{{publisher2}}} }}


| label17 = {{longitem|Published&nbsp;in English}}
| label18 = {{longitem|Publication date}}
data17 = {{{english_pub_date|{{{english_release_date|}}}}}}
data18 = {{{pub_date|{{{release_date|}}}}}}


| label18 = Media&nbsp;type
| label19 = {{longitem|Published&nbsp;in English}}
data18 = {{{media_type|}}}
data19 = {{{english_pub_date|{{{english_release_date|}}}}}}


| label19 = Pages
| label20 = Media&nbsp;type
data19 = {{{pages|}}}
data20 = {{{media_type|}}}


| label20 = Award{{#if:{{{awards|}}}|s}}
| label21 = Pages
data20 = {{{awards|{{{award|}}}}}}
data21 = {{{pages|}}}


| label21 = [[International Standard Book Number|ISBN]]
| label22 = Award{{#if:{{{awards|}}}|s}}
data21 = {{#if:{{{isbn|{{{ISBN|}}}}}}
|  data22 = {{{awards|{{{award|}}}}}}
 
<!--------------- Data (identifiers) ------------------>
| label30 = [[International Standard Book Number|ISBN]]
data30 = {{#if:{{{isbn|{{{ISBN|}}}}}}
             | {{#iferror:{{#expr:{{{isbn|{{{ISBN}}}}}}}} |{{{isbn|{{{ISBN}}}}}}
             | {{#iferror:{{#expr:{{{isbn|{{{ISBN}}}}}}}} |{{{isbn|{{{ISBN}}}}}}
                 | [[Special:Booksources/{{{isbn|{{{ISBN}}}}}}|{{{isbn|{{{ISBN}}}}}}]]
                 | [[Special:Booksources/{{{isbn|{{{ISBN}}}}}}|{{{isbn|{{{ISBN}}}}}}]]
             }} {{{isbn_note|{{{ISBN_note|}}}}}} }}
             }} {{{isbn_note|{{{ISBN_note|}}}}}} }}


| label22 = [[OCLC#Control Numbers|{{abbr|OCLC|Online Computer Library Center number}}]]
| label31 = [[OCLC#Control Numbers|{{abbr|OCLC|Online Computer Library Center number}}]]
data22 = {{#if:{{{oclc|}}} |[//www.worldcat.org/oclc/{{urlencode:{{{oclc}}}}} {{{oclc}}}]}}
data31 = {{#if:{{{oclc|}}} |[//www.worldcat.org/oclc/{{urlencode:{{{oclc}}}}} {{{oclc}}}]}}


| label23 = {{longitem|[[Dewey Decimal Classification|Dewey Decimal]]}}
| label32 = {{longitem|[[Dewey Decimal Classification|Dewey Decimal]]}}
data23 = {{{dewey|}}}
data32 = {{{dewey|}}}


| label24 = [[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}}]]
data24 = {{{congress|}}}
data33 = {{{congress|}}}


| label25 = Preceded&nbsp;by
| label34 = Preceded&nbsp;by
data25 = {{#if:{{{preceded_by|}}} |''{{{preceded_by|}}}''
data34 = {{#if:{{{preceded_by|}}} |''{{{preceded_by|}}}''
             | {{#if:{{{preceded_by_quotation_marks|}}} |"{{{preceded_by_quotation_marks|}}}"}}
             | {{#if:{{{preceded_by_quotation_marks|}}} |"{{{preceded_by_quotation_marks|}}}"}}
             }}
             }}


| label26 = Followed&nbsp;by
| label35 = Followed&nbsp;by
data26 = {{#if:{{{followed_by|}}} |''{{{followed_by|}}}''
data35 = {{#if:{{{followed_by|}}} |''{{{followed_by|}}}''
             | {{#if:{{{followed_by_quotation_marks|}}} |"{{{followed_by_quotation_marks|}}}"}}
             | {{#if:{{{followed_by_quotation_marks|}}} |"{{{followed_by_quotation_marks|}}}"}}
             }}
             }}


| label27 = {{longitem|Original text}}
| label36 = {{longitem|Original text}}
data27 = {{#if:{{{native_wikisource|}}} <!--
data36 = {{#if:{{{native_wikisource|}}} <!--
     then:-->| ''{{lang |{{{orig_lang_code|}}}
     then:-->| ''{{lang |{{{orig_lang_code|}}}
                   | [[s:{{#if:{{{orig_lang_code|}}}|{{{orig_lang_code|}}}:}}{{{native_wikisource|}}}|{{{title_orig|{{{name|{{PAGENAME}}}}}}}}]]<!--
                   | [[s:{{#if:{{{orig_lang_code|}}}|{{{orig_lang_code|}}}:}}{{{native_wikisource|}}}|{{{title_orig|{{{name|{{PAGENAME}}}}}}}}]]<!--
Line 132: Line 137:
             }} }}
             }} }}


| label28 = {{#if:{{{native_wikisource|}}} |Translation |{{#if:{{{native_external_url|}}}|Translation|Text}} }}
| label37 = {{#if:{{{native_wikisource|}}} |Translation |{{#if:{{{native_external_url|}}}|Translation|Text}} }}
| data28 = {{#if:{{{wikisource|}}} <!--
data37 = {{#if:{{{wikisource|}}} <!--
     then:-->| ''[[s:{{{wikisource|}}}|{{{name|{{PAGENAME}}}}}]]'' at <!--
     then:-->| ''[[s:{{{wikisource|}}}|{{{name|{{PAGENAME}}}}}]]'' at <!--
               -->{{#if:{{{native_wikisource|}}} |Wikisource |[[Wikisource]]}}<!--
               -->{{#if:{{{native_wikisource|}}} |Wikisource |[[Wikisource]]}}<!--

Revision as of 01:37, 15 November 2014

Lua error in Module:TNT at line 182: Missing Commons dataset I18n/Module:TNT.tab.