Template:Infobox book
| {{#if: | }} | |
| Original title | {{#if: |{{#if:|[{{{title_orig}}}] Error: {{Lang}}: missing language tag (help)|{{{title_orig}}}}} }} |
|---|---|
| Working title | {{#if: |{{{title_working}}}}} |
| Publisher | {{#if: |, {{{publisher2}}} }} |
| ISBN | {{#if:
| {{#ifeq:|FETCH_WIKIDATA
| {{#if:{{#property:P212}}|Script error: No such module "ISBNT".}}
| [[Special:BookSources/{{{ISBN}}}|{{{ISBN}}}]]
}} |
| OCLC | {{#if: |{{{oclc}}}}} |
| Preceded by | {{#if: |
| {{#if: |""}}
}} |
| Followed by | {{#if: |
| {{#if: |""}}
}} |
| Original text | {{#if:{{SAFESUBST:#if:|{{SAFESUBST:#if:|1}}}} | Lua error: bad argument #1 to 'fetchLanguageName' (string expected, got nil).{{safesubst:#switch:
{{safesubst:#if:
| {{{demospace}}}
| {{safesubst:#ifeq:Template|
| main
| other
}}
}}
| main = | other | #default = }} | {{#if:{{SAFESUBST:#if:|{{SAFESUBST:#if:|1}}}} | Infobox book Error: {{Lang}}: missing language tag (help) {{#if: |at |online}}}} }} |
| {{#if: |Translation |{{#if:|Translation|Text}} }} | {{#if: | Infobox book at {{#if: |Wikisource |Wikisource}}{{safesubst:#switch:
{{safesubst:#if:
| {{{demospace}}}
| {{safesubst:#ifeq:Template|
| main
| other
}}
}}
| main = | other | #default = }} | {{#if: | [ Infobox book] {{#if: |at |online}}
}} }} |
{{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:Template|Template
| template
| other
}}
}}
| template = {{#ifeq:Infobox book|Infobox||{{#ifeq:Infobox|Infobox|}}}} | other | #default = }}{{#if:||{{#ifeq:{{safesubst:#switch: no
|no |n |f |false |off |0 = | = |¬ = |yes |y |t |true |on |1 = yes |#default = yes
}}|yes | |{{safesubst:#switch:
{{safesubst:#if:
| {{{demospace}}}
| {{safesubst:#ifeq:Template|
| main
| other
}}
}}
| main = | other | #default = }} }}}}{{#if:{{#if:||Template}}||{{#if:{{#property:P18|from=}}|}}}}
{{#ifeq:infobox book |doc
|
{{#ifeq:show |show
|| icon | This is a documentation subpage for Template:Terminate sentence It may contain usage information, categories and other content that is not part of the original {{#if: |{{{text2}}} |{{#if: |{{{text1}}} |{{#ifeq:Template |User |template template page |{{#if:Template |template page|article}}}}}}}}. |
}}{{#if:|
|{{#ifexist:Template:Infobox book
| [[Category:{{#switch:Template |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]]
|
}}
}}
|
}}
| Warning | This template is used on approximately 62,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
| File:Information icon4.svg | This infobox should italicize the article title automatically. If this is not required, add |{{SAFESUBST:#if:{{#if:|{{{1}}}|italic title}}|{{#if:|{{{1}}}|italic title}}=}}{{#if:|{{{3}}}|no}} to the list of parameters. {{#if: | | If this is required but the title is not being italicized, try |{{SAFESUBST:#if:{{#if:|{{{1}}}|italic title}}|{{#if:|{{{1}}}|italic title}}=}}force.}} |
{{#if:
| {{{demospace}}}
| {{#ifeq:Template|Template
| template
| other
}}
}}
| template = template
| other | #default = {{safesubst:#switch:
{{safesubst:#if:
| {{{demospace}}}
| {{safesubst:#ifeq:Template|Module
| module
| other
}}
}}
| module = module
| other | #default = Template:Category other
}}
}} tracks {{#if:
| one or more Wikidata properties; see § {{{section}}} for details. | the Wikidata propert{{#if:|ies:|y:}} Lua error in Module:Uses_Wikidata at line 13: attempt to index field 'wikibase' (a nil value).}}
|sandbox |testcases |doc=
|#default = {{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:Template|Template
| template
| other
}}
}}
| template =
| other | #default = {{safesubst:#switch:
{{safesubst:#if:
| {{{demospace}}}
| {{safesubst:#ifeq:Template|Module
| module
| other
}}
}}
| module =
| other | #default = Template:Category other
}}
}}
}}
{{safesubst:#if:
| {{{demospace}}}
| {{safesubst:#ifeq:Template|Module
| module
| other
}}
}}
| module = module | other | #default = template }} uses {{#if: | one or more Wikidata properties; see § {{{section}}} for details. | the Wikidata propert{{#if:P577|ies|y}}: Lua error in Module:Uses_Wikidata at line 13: attempt to index field 'wikibase' (a nil value).
}}|sandbox |testcases |doc= |#default={{safesubst:#switch:
{{safesubst:#if:
| {{{demospace}}}
| {{safesubst:#ifeq:Template|Module
| module
| other
}}
}}
| module = | other | #default = {{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:Template|Template
| template
| other
}}
}}
| template = | other | #default = }} }} }}
| File:Lua-Logo.svg | This template uses Lua: |
Lua error in Module:TNT at line 159: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Uses TemplateStyles.tab.
This template is used to present a consistently formatted table for use in articles about books.
Usage
<syntaxhighlight lang="wikitext" style="overflow:auto;"> Lua error in package.lua at line 80: module 'Module:Italic title' not found.{{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:Template|Template
| template
| other
}}
}}
| template = {{#ifeq:Infobox book|Infobox||{{#ifeq:Infobox|Infobox|}}}} | other | #default = }}{{#if:||{{#ifeq:{{safesubst:#switch: no
|no |n |f |false |off |0 = | = |¬ = |yes |y |t |true |on |1 = yes |#default = yes
}}|yes | |{{safesubst:#switch:
{{safesubst:#if:
| {{{demospace}}}
| {{safesubst:#ifeq:Template|
| main
| other
}}
}}
| main = | other | #default = }} }}}}{{#if:{{#if:||Template}}||{{#if:{{#property:P18|from=}}|}}}}</syntaxhighlight>
Parameters
Please see WikiProject Books and/or WikiProject Novels for standards on presenting names and other data.
- Parameters can be safely left blank. Note that you may include an image with no caption, but a caption will not be shown if there is no image.
- Wikilinks can be used in any of the infobox fields.
- name
- Book name or title. If parameter is left blank, name will be inherited from the Wikipedia page where this infobox is invoked.
- image
- Image (prefer 1st edition where permitted), use bare filename:
Example.jpg
For a title page from a Commons PDF, specify the page and width in the syntax:[[File:Lissagaray - Histoire de la Commune de 1871, MS.djvu|page=9|220px]] - image_size
- Uses image size set by user (default 220px). Use a number to override image size. However, this is discouraged per WP:THUMBSIZE.
- border
- Inserting
yeshere will result in a 1px grey border around the image, useful for instances where the image and the background will blend together (such as a book cover with a white background). If no border is necessary, this parameter should not be used. Note: does not apply if|{{SAFESUBST:#if:image|image=}}uses the full image syntax (e.g.[[File:Example.jpg]]); in this case add the border in|{{SAFESUBST:#if:image|image=}}(e.g.[[File:Example.jpg|border=yes]]) - caption
- Image caption (should describe the edition used)
- alt
- Image alternate text
- editor/editors
- Editor(s) only when they are the primary contributor, e.g. dictionaries, encyclopedias, anthologies
- author/authors
- Author(s)
- audio_read_by
- For audiobooks
- title_orig
- Original title, if not in English; recommended if using
|{{SAFESUBST:#if:native_external_url|native_external_url=}}or|{{SAFESUBST:#if:native_wikisource|native_wikisource=}}, unless|{{SAFESUBST:#if:name|name=}}(or the article's title if|{{SAFESUBST:#if:name|name=}}is not used) is the original non-English title - orig_lang_code
- ISO 639 code of original language, required if using
|{{SAFESUBST:#if:title_orig|title_orig=}},|{{SAFESUBST:#if:native_wikisource|native_wikisource=}}or|{{SAFESUBST:#if:native_external_url|native_external_url=}} - working_title
- Working title, when different from published title
- translator
- Translator(s), if original not in English
- illustrator
- Illustrator (where used throughout and a major feature)
- cover_artist
- Cover artist, if any
- language
- Language of original book. Do not link unless it is an unusual language.
- series
- Series (if any)
- release_number
- The "release number" of a book within the "series" (also would be called a "volume") – n.b. only relevant for an article where "series" is populated
- subject/subjects
- (for non-fiction) A word or phrase that captures the essence of the topic of the work. See index term and library classification. Should not generally be combined with genre/genres (i. e., cooking as the subject or cookbook as the genre, but not both).
- genre/genres
- See literary genre. Use {{hlist}} for sorting multiple entries. Should not generally be combined with subject/subjects (i. e., cooking as the subject or cookbook as the genre, but not both). Should be both specific (e. g., memoir rather than nonfiction) and reliably sourced.
- set_in
- can be both time and place as setting. No need to create long lists. Use approximate dates/places if it is not clearly specified in the text.
- set_on
- overrides
|{{SAFESUBST:#if:set_in|set_in=}}, and changes the label to "Set on". For use with planets and other locations where "on" is more appropriate. - publisher
- Publisher of primary publication (prefer 1st edition); also
|{{SAFESUBST:#if:publisher2|publisher2=}}for additional publishers. - pub_date
- Date published (1st edition)
- pub_place
- Place of original publication
- english_pub_date
- Date first published in English if 1st edition is in another language.
- published
- Alternate parameter, using the following composite format: year (publisher) (language, when originally written in a foreign language); use {{plainlist}} when there is more than one notable edition
- Note:
|{{SAFESUBST:#if:published|published=}}is acceptable, but no longer preferred to|{{SAFESUBST:#if:publisher|publisher=}}and|{{SAFESUBST:#if:pub_date|pub_date=}}, which have been restored to common usage. No consensus has yet been reached regarding the migration of infoboxes to a common format, and none should be "fixed" one way or the other en masse until such consensus is reached. - published_in
- Larger work in which the book was first published, e.g. a magazine, anthology, collection
- media_type
- Print / Digital (then binding types etc., if relevant)
- pages
- Pages (prefer 1st edition, specify edition as needed)
- award/awards
- Awards(s) the book has won
- isbn
- (prefer ISBN of 1st edition). Format: "1-234-56789-0" (10-digit) or "978-1-234-56789-0" (13-digit). If the book has a standard book number (9 digits) add a "0" to the beginning of the number. Do not change a 10-digit to a 13-digit ISBN by prefixing a "978" by hand, because the last digit is a calculated check digit, which will be wrong. Similarly, do not remove "978-" from a 13-digit ISBN to make a 10-digit ISBN. If the book was published before the use of ISBN, do not include this parameter. If the 13-digit number you have does not start with "978", "979-10", or "979-11", then it is not an ISBN and should not be used in this parameter. Change spaces in the ISBN to hyphens. The rules for hyphenating an ISBN are complex (currently 29 pages). Do not add spaces or hyphens to an unformatted ISBN which are likely to be wrong if you are guessing. However the "978" prefix of a 13-digit ISBN is always separated by a hyphen and the check digit – the last character – is always separated by a hyphen. The last character of a 10-character ISBN may be an "X". In such case, use the uppercase "X" character, not any alternate character. Do not put "ISBN" in front of the number. ISBNs are checked for validity; articles with invalid ISBNs are placed in Category:Pages with ISBN errors and display a red error message.
- isbn_note
- May be used to add a note following the ISBN.
- oclc
- OCLC number (prefer 1st edition), use when book has no ISBN
- dewey
- Dewey Decimal Classification
- congress
- Library of Congress Classification (not to be confused with Library of Congress Control Number)
- preceded_by
- Title of prior book in series; will be italicised by template code (do not use to connect separate books chronologically)
- preceded_by_quotation_marks
- Title of prior work in series if a minor work; will be surrounded with quotation marks by template code (do not use to connect separate books chronologically)
- followed_by
- Title of subsequent book in a series or a sequel; will be italicised by template code (do not use to connect separate books chronologically)
- followed_by_quotation_marks
- Title of subsequent work in a series or a sequel if a minor work; will be surrounded with quotation marks by template code (do not use to connect separate books chronologically)
- native_wikisource
- Page name of original text at a foreign language Wikisource (if applicable); use
|{{SAFESUBST:#if:orig_lang_code|orig_lang_code=}}to specify which Wikisource. Tracked in Category:Articles that link to foreign-language Wikisources - native_external_url
- URL to a site hosting the original text when in a foreign language, and in the public domain but not yet on Wikisource. Non-commercial, open and accessible sites should be used in preference, sites which rip the text from other sites should be avoided, and illegal content is never to be linked to
- native_external_host
- The name of the website linked to by
|{{SAFESUBST:#if:native_external_url|native_external_url=}}, e.g. Project Gutenberg, Internet Archive. Should be wikilinked if possible - wikisource
- Title of work if in the public domain and hosted at English Wikisource:. Tracked in Category:Articles that link to Wikisource
- external_url
- URL to a site hosting the text in English (whether the original or a translation), when in the public domain but not yet on Wikisource. Non-commercial, open and accessible sites should be used in preference, sites which rip the text from other sites should be avoided, and illegal content is never to be linked to
- external_host
- The name of the website linked to by
|{{SAFESUBST:#if:external_url|external_url=}}, e.g. Project Gutenberg, Internet Archive. Should be wikilinked if possible - exclude_cover
- This template will place articles with this infobox where no image has been specified into the category Books with missing cover; where this is not desired, e.g because the cover is shown elsewhere in the article, this parameter should be set to
|{{SAFESUBST:#if:exclude_cover|exclude_cover=}}yes. - website
- for the publisher's or author's website about the book.
- module
- for embedding other infoboxes into this one (see WP:IEmbed).
Example
{{Infobox book{{#ifeq:Infobox book|sandbox |/sandbox}} | italic title = no | name = Anne of Green Gables | image = Lucy Maud Montgomery, Anne of Green Gables, 1908, title page.jpg | caption = Title page of the first edition | alt = Title page | author = Lucy Maud Montgomery | title_orig = | working_title = | translator = | illustrator = M. A. and W. A. J. Claus | cover_artist = | language = English | series = | release_number = | subject = | genre = Children's novel | publisher = L. C. Page & Co. | pub_date = 1908 | pub_place = Boston | pages = 429 (first edition) | awards = | isbn = | oclc = 367111 | congress = PR6025.O45 A53 | preceded_by = | followed_by = Anne of Avonlea | wikisource = Anne of Green Gables }} <syntaxhighlight lang="wikitext" style="margin:3.0em 0 0;padding-right:0;overflow:auto;"> Lua error in package.lua at line 80: module 'Module:Italic title' not found.{{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:Template|Template
| template
| other
}}
}}
| template = {{#ifeq:Infobox book|Infobox||{{#ifeq:Infobox|Infobox|}}}} | other | #default = }}{{#if:Lucy Maud Montgomery, Anne of Green Gables, 1908, title page.jpg||{{#ifeq:{{safesubst:#switch: no
|no |n |f |false |off |0 = | = |¬ = |yes |y |t |true |on |1 = yes |#default = yes
}}|yes | |{{safesubst:#switch:
{{safesubst:#if:
| {{{demospace}}}
| {{safesubst:#ifeq:Template|
| main
| other
}}
}}
| main = | other | #default = }} }}}}{{#if:{{#if:||Template}}Lucy Maud Montgomery, Anne of Green Gables, 1908, title page.jpg||{{#if:{{#property:P18|from=}}|}}}} </syntaxhighlight>
TemplateData
{{ safesubst:#if: |{{ safesubst:#ifeq:{{{demo}}} |no
| |
}} |{{ safesubst:#ifeq:Template|Template
| |
}}}}
class="{{safesubst:#switch:
{{safesubst:#if:
|
{{{demospace}}} | main | other
}} }} |
main = cot-header-mainspace | other | #default = cot-header-other
}}" style="{{safesubst:#if:|background:{{{bg}}}|{{ safesubst:#if: |
no | {{safesubst:#switch:
{{safesubst:#if:
|
{{{demospace}}} | main | other
}} }} |
main = background:#F0F2F5 | other | #default = background:#CCFFCC
}} }} |
Template | {{safesubst:#switch:
{{safesubst:#if:
|
{{{demospace}}} | main | other
}} }} |
main = background:#F0F2F5 | other | #default = background:#CCFFCC
}} }}}}}}; font-size:87%; padding:0.2em 0.3em; text-align:{{safesubst:#if:|left|{{safesubst:#if:|left|center}}}}; {{safesubst:#if:|color: {{{fc}}};|{{safesubst:#if:|color:#202122|{{ safesubst:#if: |
no | color:black;
}} |
Template | color:black;
}}}}}}}}" | TemplateData documentation used by VisualEditor and other tools
{{safesubst:#if: |
- | The following is a closed discussion. {{safesubst:#switch:
{{safesubst:#if:
|
{{{demospace}}} | main | other
}} }} |
main = Template:FormattingError | other | #default = Please do not modify it.
}} }} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
{{#if:1|{{#switch:
|
=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template=%7B%7B%23if%3AInfobox+book%7CInfobox+book%7CInfobox+book%7D%7D {{#ifeq:{{safesubst:#switch: {{{lc}}} | no | n | f | false | off | 0 = no | = no | ¬ = no | yes | y | t | true | on | 1 = yes | #default = no
}}|no|S|s}}ee a monthly parameter usage report] for {{#if:Infobox book|Template:Infobox book|this template}} in articles{{#ifeq:{{safesubst:#switch: y |
no | n | f | false | off | 0 = no | = no | ¬ = no | yes | y | t | true | on | 1 = yes | #default = no
}}|yes| based on {{#if:Infobox book|its|this}} TemplateData}}. |
none=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template=%7B%7B%23if%3AInfobox+book%7CInfobox+book%7CInfobox+book%7D%7D {{#ifeq:{{safesubst:#switch: {{{lc}}} | no | n | f | false | off | 0 = no | = no | ¬ = no | yes | y | t | true | on | 1 = yes | #default = no
}}|no|P|p}}arameter usage report]{{#ifeq:{{safesubst:#switch: y |
no | n | f | false | off | 0 = no | = no | ¬ = no | yes | y | t | true | on | 1 = yes | #default = no
}}|yes| based on {{#if:Infobox book|its|this}} TemplateData}} |
For=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template=%7B%7B%23if%3AInfobox+book%7CInfobox+book%7CInfobox+book%7D%7D {{#ifeq:{{safesubst:#switch: {{{lc}}} | no | n | f | false | off | 0 = no | = no | ¬ = no | yes | y | t | true | on | 1 = yes | #default = no
}}|no|P|p}}arameter usage report] for {{#if:Infobox book|Template:Infobox book|Template:Infobox book}}{{#ifeq:{{safesubst:#switch: y |
no | n | f | false | off | 0 = no | = no | ¬ = no | yes | y | t | true | on | 1 = yes | #default = no
}}|yes| based on {{#if:Infobox book|its|this}} TemplateData}}. |
#default=[1]{{#ifeq:{{safesubst:#switch: y | no | n | f | false | off | 0 = no | = no | ¬ = no | yes | y | t | true | on | 1 = yes | #default = no
}}|yes| based on {{#if:Infobox book|its|this}} TemplateData}} }}|This is the {{#if:|TemplateData|TemplateData}} for this template used by TemplateWizard, VisualEditor and other tools. {{#switch: |
=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template=%7B%7B%23if%3AInfobox+book%7CInfobox+book%7CInfobox+book%7D%7D {{#ifeq:{{safesubst:#switch: {{{lc}}} | no | n | f | false | off | 0 = no | = no | ¬ = no | yes | y | t | true | on | 1 = yes | #default = no
}}|no|S|s}}ee a monthly parameter usage report] for {{#if:Infobox book|Template:Infobox book|this template}} in articles{{#ifeq:{{safesubst:#switch: y |
no | n | f | false | off | 0 = no | = no | ¬ = no | yes | y | t | true | on | 1 = yes | #default = no
}}|yes| based on {{#if:Infobox book|its|this}} TemplateData}}. |
none=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template=%7B%7B%23if%3AInfobox+book%7CInfobox+book%7CInfobox+book%7D%7D {{#ifeq:{{safesubst:#switch: {{{lc}}} | no | n | f | false | off | 0 = no | = no | ¬ = no | yes | y | t | true | on | 1 = yes | #default = no
}}|no|P|p}}arameter usage report]{{#ifeq:{{safesubst:#switch: y |
no | n | f | false | off | 0 = no | = no | ¬ = no | yes | y | t | true | on | 1 = yes | #default = no
}}|yes| based on {{#if:Infobox book|its|this}} TemplateData}} |
For=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template=%7B%7B%23if%3AInfobox+book%7CInfobox+book%7CInfobox+book%7D%7D {{#ifeq:{{safesubst:#switch: {{{lc}}} | no | n | f | false | off | 0 = no | = no | ¬ = no | yes | y | t | true | on | 1 = yes | #default = no
}}|no|P|p}}arameter usage report] for {{#if:Infobox book|Template:Infobox book|Template:Infobox book}}{{#ifeq:{{safesubst:#switch: y |
no | n | f | false | off | 0 = no | = no | ¬ = no | yes | y | t | true | on | 1 = yes | #default = no
}}|yes| based on {{#if:Infobox book|its|this}} TemplateData}}. |
#default=[2]{{#ifeq:{{safesubst:#switch: y | no | n | f | false | off | 0 = no | = no | ¬ = no | yes | y | t | true | on | 1 = yes | #default = no
}}|yes| based on {{#if:Infobox book|its|this}} TemplateData}} }}}} TemplateData for Infobox book {{#switch: {{#if:
|
{{{demospace}}} | Template | template | other
}} }} |
sandbox|1}}{{safesubst:#ifeq:Infobox book|doc|1}} |
}} |
other | #default =
}} <templatedata> { "description": "Consistently-formatted table for presenting information about books", "format": "Template:\n\n", "params": { "name": { "label": "Name", "type": "string", "required": false, "description": "Book title", "default": "Pagename" }, "image": { "label": "Image", "type": "wiki-file-name", "required": false, "description": "Image (prefer 1st edition where permitted). Use bare filename.", "suggested": true }, "author": { "label": "Author", "type": "string", "required": false, "description": "Author(s) of the book (should be link to their respective article if there is one).", "suggested": true, "aliases": [ "authors" ] }, "language": { "label": "Language", "type": "string", "required": false, "description": "Language of (original) book. Full language name (not a language code).", "example": "English" }, "genre": { "label": "Genre(s)", "type": "string", "required": false, "description": "The book's genre", "example": "Science fiction", "aliases": [ "genres" ] }, "published": { "label": "Published", "type": "string", "required": false, "description": "Using the following format: year (publisher) (language, when originally written in a foreign language)" }, "published_in": { "label": "Published in", "type": "string", "required": false, "description": "Larger work in which the book was first published, e.g. a magazine, anthology, collection." }, "publisher": { "label": "Publisher", "type": "string", "required": false, "description": "Name of publisher." }, "isbn": { "label": "ISBN", "type": "string", "description": "Format: \"1-234-56789-0\" (prefer 1st edition)", "aliases": [ "ISBN" ], "suggested": true, "example": "\"1-234-56789-0\" (if 10-digit) or \"978-1-234-56789-0\" (if 13-digit)" }, "exclude_cover": { "type": "string", "description": "\"yes\" if no image is present and adding this article to \"Category:Books with missing cover\" is not desired", "label": "exclude cover?", "example": "yes" }, "series": { "label": "Series", "description": "Series the book is part of", "example": "The Federalist Papers", "type": "string" }, "image_size": { "label": "Image size", "example": "200 px", "type": "string" }, "caption": { "label": "Image caption", "description": "a caption for the image used", "type": "content", "aliases": [ "image_caption" ] }, "media_type": { "label": "Type of media", "example": "Print (hardcover), Print (paperback)", "type": "string" }, "pub_date": { "label": "Date of publication", "description": "Date the book or work was published", "example": "December 21, 1787", "type": "date", "suggested": true }, "pub_place": { "label": "Place of publication", "type": "string", "required": false, "description": "Place of (original) publication." }, "preceded_by": { "label": "Preceded by", "description": "The previous installment in the series/from the author", "example": "Federalist No. 4", "type": "string" }, "followed_by": { "label": "Followed by", "description": "The next installment in the series/from the author", "example": "Federalist No. 6", "type": "string" }, "italic title": { "label": "Italicize title?", "description": "If set to \"no\", the title is never italicized. If set to \"force\", the title is always italicized. If not specified, the title should usually be italicized automatically.", "example": "no", "type": "string", "suggestedvalues": [ "no", "force" ] }, "editor": { "aliases": [ "editors" ], "label": "Editor(s)", "description": "Editor or editors of the book. Use this template if they are a PRIMARY contributor (eg for dictionaries or encyclopedias).", "example": "John Doe", "type": "content" }, "audio_read_by": { "label": "Audio read by", "description": "The person who read the audio, if this is an audiobook.", "example": "Jane Smith", "type": "content" }, "title_orig": { "label": "Original title", "description": "The original title of the book, if it was not in English.", "example": "Exemple d'une Livre", "type": "content" }, "title_working": { "label": "Working title", "description": "The working title of the book, if this was different from the title the book was ultimately published as.", "example": "Example Working Book Title", "type": "content" }, "translator": { "aliases": [ "translators" ], "label": "Translator(s)", "description": "The person or people who translated the book to English, if it was not originally in English.", "example": "Joe Bloggs", "type": "content" }, "illustrator": { "aliases": [ "illustrators" ], "label": "Illustrator(s)", "description": "The person or people who illustrated this book, if applicable.", "example": "John Doe", "type": "content" }, "cover_artist": { "label": "Cover artist", "description": "The person who made the cover art, if applicable.", "example": "Jane Smith", "type": "content" }, "release_number": { "label": "Release number", "description": "Ordinal index of the book, if it was released within a series", "type": "string" }, "subject": { "aliases": [ "subjects" ], "label": "Subjects", "description": "Topics discussed by the book. For non-fiction books only.", "example": "chemistry", "type": "content" }, "set_in": { "label": "Set in", "description": "The time and/or place where the book is set in, if it's a work of fiction", "example": "England", "type": "content" }, "publisher2": { "label": "Second publisher", "description": "An additional publisher that published this book (not the primary publisher).", "example": "Penguin Random House", "type": "content" }, "release_date": { "label": "Release date" }, "english_pub_date": { "label": "English publication date" }, "english_release_date": {}, "pages": { "label": "Number of pages" }, "awards": {}, "award": {}, "isbn_note": { "aliases": [ "ISBN_note" ], "label": "ISBN note", "description": "Note about the ISBN, like what edition it applies to if it is different from the rest of the infobox." }, "dewey": { "label": "Dewey Decimal class" }, "congress": { "label": "Library of Congress Class", "description": "Classification of the book in the LoC system" }, "last": {}, "first": {}, "oclc": { "label": "OCLC number", "description": "Number in the Worldcat classification system for the book. There are often multiple for the same edition; usually pick the lowest number for the first edition." }, "alt": { "label": "Image alt", "description": "Alt text for the infobox image" }, "border": {}, "orig_lang_code": { "label": "Original language code", "description": "Language code for the original language title of the book" }, "preceded_by_quotation_marks": {}, "followed_by_quotation_marks": {}, "native_wikisource": {}, "native_external_url": {}, "native_external_host": {}, "wikisource": {}, "external_url": {}, "external_host": {}, "website": {}, "homepage": {}, "URL": {}, "notes": {}, "note": {}, "nocat_wdimage": {}, "module": {} }, "paramOrder": [ "name", "image", "image_size", "caption", "alt", "author", "language", "genre", "published", "published_in", "publisher", "publisher2", "pub_date", "exclude_cover", "series", "media_type", "preceded_by", "followed_by", "italic title", "editor", "audio_read_by", "title_orig", "orig_lang_code", "title_working", "translator", "illustrator", "cover_artist", "release_number", "subject", "set_in", "release_date", "pub_place", "english_pub_date", "english_release_date", "pages", "awards", "award", "isbn", "isbn_note", "oclc", "dewey", "congress", "last", "first", "border", "preceded_by_quotation_marks", "followed_by_quotation_marks", "wikisource", "native_wikisource", "native_external_url", "native_external_host", "external_url", "external_host", "website", "homepage", "URL", "notes", "note", "nocat_wdimage", "module" ] } </templatedata> |
Translated books
About how to handle translated books, see the Translated books case study.
COinS
This template produces COinS metadata; see COinS in Wikipedia for background information.
Tracking categories
- {{#if:|{{{name}}}|Category:Articles that link to Wikisource}} (1)
- {{#if:|{{{name}}}|Category:Articles that link to foreign-language Wikisources}} (1)
- {{#if:|{{{name}}}|Category:Books with missing cover}} (2) – instances without images
- {{#if:|{{{name}}}|Category:Pages using infobox book with unknown parameters}} (0)
- {{#if:|{{{name}}}|Category:Pages using infobox book with conflicting parameters}} (0)
- {{#if:|{{{name}}}|Category:No local image but image on Wikidata}} (16) – Used by Template:Wikidata image to track articles where an infobox has no image but Wikidata has an image name. To exclude articles from this category, add an image or
|{{SAFESUBST:#if:nocat_wdimage|nocat_wdimage=}}yesto the infobox.
See also
- {{Infobox book series}}
- {{Infobox novella}}
- {{Infobox short story}}
- Wikipedia:WikiProject Novels/InfoboxCode
- Wikipedia:WikiProject Novels/ArticleTemplate#Pattern template
{{safesubst:#switch:
{{safesubst:#if:
| {{safesubst:#if:{{safesubst:#titleparts:{{{page}}}|0|3}}
| subsubpage
| {{safesubst:#if:{{safesubst:#titleparts:{{{page}}}|0|2}}
| subpage
| basepage
}}
}}
| {{safesubst:#if:{{safesubst:#titleparts:Template:Infobox book|0|3}}
| subsubpage
| {{safesubst:#if:{{safesubst:#titleparts:Template:Infobox book|0|2}}
| subpage
| basepage
}}
}}
}}
| basepage =
| subpage = | subsubpage = }}
- Pages with script errors
- Lang and lang-xx template errors
- Pages using ISBN values obtained from wikidata
- Pages with ISBN errors
- Articles that link to foreign-language Wikisources
- Articles that link to Wikisource
- Infobox templates
- Books with missing cover
- No local image but image on Wikidata
- Pages with broken file links
- Documentation subpages without corresponding pages
- Templates tracking Wikidata
- Modules tracking Wikidata
- Modules using data from Wikidata
- Templates using data from Wikidata
- Lua-based templates
- Templates using TemplateData
- Templates generating COinS
- Book infobox templates
- WikiProject Books
- WikiProject Novels
- Infobox templates using Wikidata
- Templates that add a tracking category