Jump to content

Template:Infobox book: Difference between revisions

From Insurer Brain
Content deleted Content added
No edit summary
No edit summary
 
(9 intermediate revisions by the same user not shown)
Line 4: Line 4:
| bodyclass = ib-book vcard
| bodyclass = ib-book vcard


<!---------------Title----------------->
<!---------------Title (inside the box)----------------->
| title = <includeonly>{{#if:{{{name|}}}{{{caption|{{{image_caption|}}}}}}{{{editors|{{{editor|}}}}}}{{{authors|{{{author|}}}}}}{{{audio_read_by|}}}{{{title_orig|}}}{{{title_working|}}}{{{translators|{{{translator|}}}}}}{{{illustrators|{{{illustrator|}}}}}}{{{cover_artist|}}}{{{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|}}}| }}<!-- hack for ref ordering
| above = <includeonly>{{#if:{{{name|}}}{{{caption|{{{image_caption|}}}}}}{{{editors|{{{editor|}}}}}}{{{authors|{{{author|}}}}}}{{{audio_read_by|}}}{{{title_orig|}}}{{{title_working|}}}{{{translators|{{{translator|}}}}}}{{{illustrators|{{{illustrator|}}}}}}{{{cover_artist|}}}{{{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|}}}{{{full_title|{{{full title|}}}}}}| }}<!-- hack for ref ordering
-->{{{name|{{PAGENAMEBASE}}}}} <!--
-->{{{name|{{PAGENAMEBASE}}}}} <!--
--><span class="Z3988"
--><span class="Z3988"
Line 28: Line 28:


<!---------------Data------------------>
<!---------------Data------------------>
| label1 = Editor{{#if:{{{editors|}}}|s}}
| label1 = Full&nbsp;title
| data1 = {{{editors|{{{editor|}}}}}}
| data1 = {{{full_title|{{{full title|}}}}}}


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


| label3 = Audio&nbsp;read&nbsp;by
| label3 = Author{{#if:{{{authors|}}}|s}}
| data3 = {{{audio_read_by|}}}
| data3 = {{{authors|{{{author|}}}}}}


| label4 = Original&nbsp;title
| label4 = Audio&nbsp;read&nbsp;by
| data4 = {{{audio_read_by|}}}
| data4 = {{#if:{{{title_orig|}}} |{{#if:{{{orig_lang_code|}}}|{{lang|{{{orig_lang_code|}}} |{{{title_orig}}} |italics={{#invoke:infobox/utilities|set_italics|{{{orig_lang_code|}}}|{{{title_orig}}}}}}}|''{{{title_orig}}}''}} }}


| label5 = Working&nbsp;title
| label5 = Original&nbsp;title
| data5 = {{#if:{{{title_orig|}}} |{{#if:{{{orig_lang_code|}}}|{{lang|{{{orig_lang_code|}}} |{{{title_orig}}} |italics={{#invoke:infobox/utilities|set_italics|{{{orig_lang_code|}}}|{{{title_orig}}}}}}}|''{{{title_orig}}}''}} }}
| data5 = {{#if:{{{title_working|}}} |''{{{title_working}}}''}}


| label6 = Translator{{#if:{{{translators|}}}|s}}
| label6 = Working&nbsp;title
| data6 = {{{translators|{{{translator|}}}}}}
| data6 = {{#if:{{{title_working|}}} |''{{{title_working}}}''}}


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


| label8 = Cover&nbsp;artist
| label8 = Illustrator{{#if:{{{illustrators|}}}|s}}
| data8 = {{{cover_artist|}}}
| data8 = {{{illustrators|{{{illustrator|}}}}}}

| label9 = Cover&nbsp;artist
| data9 = {{{cover_artist|}}}


| label11 = Language
| label11 = Language
Line 112: Line 115:


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


| label35 = Followed&nbsp;by
| label35 = Followed&nbsp;by
| data35 = {{#if:{{{followed_by|}}} |''{{{followed_by|}}}&nbsp;''
| data35 = {{#if:{{{followed_by|}}} |''{{{followed_by|}}}&nbsp;''
| {{#if:{{{followed_by_quotation_marks|}}} |"{{{followed_by_quotation_marks|}}}"}}
| {{#if:{{{followed_by_quotation_marks|}}} |"{{{followed_by_quotation_marks|}}}"}}
}}
}}
Line 142: Line 145:
}} }}
}} }}


| label37a = Goodreads rating
| label38 = Goodreads rating
| data37a = {{#if:{{{goodreads_rating|}}}
| data38 = {{#if:{{{goodreads_rating|}}}
| {{formatnum:{{#iferror:
| {{formatnum:{{{goodreads_rating}}}}}/5{{#if:{{{goodreads_ratings_count|}}} | ({{formatnum:{{{goodreads_ratings_count}}}}} ratings)}}{{#if:{{{goodreads_url|}}} | – [{{{goodreads_url}}} Goodreads]}}{{#if:{{{goodreads_rating_date|}}} | (as of {{{goodreads_rating_date}}})}}
{{#expr: floor(({{formatnum:{{{goodreads_rating}}}|R}} * 10) + 0.5) / 10 }}
| {{formatnum:{{{goodreads_rating}}}|R}}
}}}}/5
{{#if:{{{goodreads_ratings_count|}}} | ({{formatnum:{{{goodreads_ratings_count}}}}} ratings)}}{{#if:{{{goodreads_url|}}} | – [{{{goodreads_url}}} Goodreads]}}{{#if:{{{goodreads_rating_date|}}} | &nbsp;(as of {{{goodreads_rating_date}}})}}
}}
}}


| label38 = Website
| label39 = Website
| data38 = {{{website|{{{homepage|{{{URL|{{#ifeq:{{{website|{{{homepage|{{{URL|}}}}}}}}}
| data39 = {{{website|{{{homepage|{{{URL|{{#ifeq:{{{website|{{{homepage|{{{URL|}}}}}}}}}
| FETCH_WIKIDATA
| FETCH_WIKIDATA
| {{#if:{{#property:P856}}|{{Url|1={{#invoke:Wikidata|getValue|P856|FETCH_WIKIDATA}} }} }}
| {{#if:{{#property:P856}}|{{Url|1={{#invoke:Wikidata|getValue|P856|FETCH_WIKIDATA}} }} }}
Line 157: Line 164:
| below = {{{notes|{{{note|}}}}}}
| below = {{{notes|{{{note|}}}}}}


}}{{#if:{{{image|}}}||{{#ifeq:{{yesno|{{lc:{{{exclude_cover|no}}}}}}}|yes | |{{main other|[[Category:Books with missing cover]]}} }}}}{{#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 | congress | country | cover_artist | dewey | editor | editors | 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 | isbn | ISBN | isbn_note | ISBN_note | italic title | language | last | media_type | module | 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 | pub_place | published | publisher | publisher2 | release_date | release_number | series | set_in | subject | subjects | title_orig | title_working | translator | translators | URL | website | wikisource
}}{{#if:{{{image|}}}||{{#ifeq:{{yesno|{{lc:{{{exclude_cover|no}}}}}}}|yes | |{{main other|[[Category:Books with missing cover]]}} }}}}{{#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 | congress | country | cover_artist | dewey | editor | editors | english_pub_date | english_release_date | exclude_cover | external_host | external_url | first | full_title | full title | followed_by | followed_by_quotation_marks | genre | genres | homepage | illustrator | illustrators | image | image_caption | image_size | isbn | ISBN | isbn_note | ISBN_note | italic title | language | last | media_type | module | 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 | pub_place | published | publisher | publisher2 | release_date | release_number | series | set_in | subject | subjects | title_orig | title_working | translator | translators | URL | website | wikisource | goodreads_rating | goodreads_ratings_count | goodreads_url | goodreads_rating_date
}}{{Wikidata image |1={{{image|}}} |2={{{nocat_wdimage|}}}
}}{{Wikidata image |1={{{image|}}} |2={{{nocat_wdimage|}}}
}}<noinclude>
}}<noinclude>

Latest revision as of 13:33, 16 October 2025