Template:Infobox book/doc: Difference between revisions

From Vigyanwiki
< Template:Infobox book
Template>Andrelalves2013
No edit summary
m (325 revisions imported from alpha:Template:Infobox_book/doc)
 
(62 intermediate revisions by 42 users not shown)
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
<includeonly>{{High-use| 36,000+ }}</includeonly>
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
{{High-use| 43,000 }}
{{Auto italic title}}
{{Auto italic title}}
{{Lua|Module:Infobox|Module:InfoboxImage|Module:Wikidata|Module:ISBNT|Module:Check for unknown parameters}}
{{Tracks Wikidata|P18|cat=No local image but image on Wikidata}}
{{Tracks Wikidata|P18|cat=No local image but image on Wikidata}}
{{Generic template demo |_template={{BASEPAGENAME}}{{\sandbox}} |_display=italics
|name |image=Example-serious.jpg |alt |caption |author |audio_read_by |title_orig='''title_orig''' |orig_lang_code=ia |title_working='''title_working''' |translator |illustrator |cover_artist |country |language |series |release_number |subject |genre |set_in |published |publisher |publisher2 |pub_date |english_pub_date |media_type |pages |awards |isbn |oclc |dewey |congress |preceded_by='''preceded_by''' |followed_by='''followed_by''' |native_wikisource=Wikisource:About |wikisource=Wikisource:About |notes
}}
{{Uses Wikidata|P136|P577|P212|P856|P1036|P1104|P1149}}
{{Uses Wikidata|P136|P577|P212|P856|P1036|P1104|P1149}}
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
{{Lua|Module:Infobox|Module:Infobox/utilities|Module:InfoboxImage|Module:Check for unknown parameters|Module:ISBNT|Module:Lang|Module:Wikidata|noprotcat=yes}}


This template is used to present a consistently-formatted table for use in articles about [[book]]s.
This template is used to present a consistently-formatted table for use in articles about [[book]]s.


== Usage ==
== Usage ==
{{Generic template demo |_template={{BASEPAGENAME}}{{\sandbox}} |_display=italics |italic title=no
|name |image=Example-serious.jpg |alt |caption |author |audio_read_by |title_orig='''title_orig''' |orig_lang_code=ia |title_working='''title_working''' |translator |illustrator |cover_artist |country |language |series |release_number |subject |genre |set_in |published |publisher |publisher2 |pub_date |english_pub_date |media_type |pages |awards |isbn=123456789X |oclc |dewey |congress |preceded_by='''preceded_by''' |followed_by='''followed_by''' |native_wikisource=Wikisource:About |wikisource=Wikisource:About |notes
}}


<pre style="overflow:auto;">
<pre style="overflow:auto;">
{{Infobox book
{{Infobox book
| italic title   = <!--(see above)-->
| italic title     = <!--(see above)-->
| name           =  
| name             =  
| image         =  
| image             =  
| image_size     =  
| image_size       =
| alt           =  
| border            =  
| caption       =  
| alt               =  
| author         =  
| caption           =  
| audio_read_by =  
| author           =  
| title_orig     =  
| audio_read_by     =  
| orig_lang_code =  
| title_orig       =  
| title_working =  
| orig_lang_code   =  
| translator     =  
| title_working     =  
| illustrator   =  
| translator       =  
| cover_artist   =  
| illustrator       =  
| country       =  
| cover_artist     =  
| language       =  
| country           =  
| series         =  
| language         =  
| release_number =  
| series           =  
| subject       =  
| release_number   =  
| genre         =  
| subject           =  
| set_in         =  
| genre             =  
| publisher     =  
| set_in           =  
| publisher2     =  
| publisher         =  
| pub_date       =  
| publisher2       =  
| english_pub_date =  
| pub_date         =  
| published     =  
| english_pub_date =  
| media_type     =  
| published         =  
| pages         =  
| media_type       =  
| awards         =  
| pages             =  
| isbn           =  
| awards           =  
| isbn_note     =  
| isbn             =  
| oclc           =  
| isbn_note         =  
| dewey         =  
| oclc             =  
| congress       =  
| dewey             =  
| preceded_by   =  
| congress         =  
| followed_by   =  
| preceded_by       = <!-- for books in a series -->
| followed_by       = <!-- for books in a series -->
| native_wikisource =  
| native_wikisource =  
| wikisource     =  
| wikisource       =  
| notes         =
| notes             =  
| exclude_cover =  
| exclude_cover     =  
| website       =
| website           =  
}}</pre>
}}</pre>


== Parameters ==
== Parameters ==
''Please see [[Wikipedia:WikiProject Books|WikiProject Books]] and/or [[Wikipedia:WikiProject Novels|WikiProject Novels]] for standards on presenting names and other data.''
''Please see [[Wikipedia:WikiProject Books|WikiProject Books]] and/or [[Wikipedia:WikiProject Novels|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.
* 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.
* [[Help:Link#Wikilinks|Wikilinks]] can be used in any of the infobox fields.
* [[Help:Link#Wikilinks|Wikilinks]] can be used in any of the infobox fields.


; name: Book name or [[Unbound]]. If parameter is left blank, ''name'' will be inherited from the [[Wikipedia:Article titles|Wikipedia page]] where this infobox is invoked.
; name: Book name or [[Title (publishing)|title]]. If parameter is left blank, ''name'' will be inherited from the [[Wikipedia:Article titles|Wikipedia page]] where this infobox is invoked.
; image: Image (prefer 1st edition where permitted), use bare filename: <code><nowiki>Example12265716_1079051772105462_3210656159968108593_o.jpg</nowiki></code>
; image: Image (prefer 1st edition where permitted), use bare filename: <code><nowiki>Example.jpg</nowiki></code><br>For a title page from a [[:Commons:|Commons]] PDF, specify the page and width in [[WP:EIS|the syntax]]: <code><nowiki>[[File:Lissagaray - Histoire de la Commune de 1871, MS.djvu|page=9|220px]]</nowiki></code>
; image_size: Uses image size set by user (default 220px). Use a number to override image size.
; 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 <code>yes</code> here 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 {{para|image}} uses the full image syntax (e.g. <code><nowiki>[[Image:Example.jpg]]</nowiki></code>); in this case add the border in {{para|image}} (e.g. <code><nowiki>[[Image:Example.jpg|border=yes]]</nowiki></code>)
; border: Inserting <code>yes</code> here 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 {{para|image}} uses the full image syntax (e.g. <code><nowiki>[[File:Example.jpg]]</nowiki></code>); in this case add the border in {{para|image}} (e.g. <code><nowiki>[[File:Example.jpg|border=yes]]</nowiki></code>)
; caption: Image caption (should describe the edition used)
; caption: Image caption (should describe the edition used)
; alt: Image alternate text
; alt: Image alternate text
; editor/editors: Editor(s) '''only when they are the primary contributor''', e.g. dictionaries, encyclopedias, anthologies
; editor/editors: Editor(s) '''only when they are the primary contributor''', e.g. dictionaries, encyclopedias, anthologies
; author/authors: Andre Luiz Alves (aka Andre Alves) Antonio Paz-Bezerra (aka Anthony H Bezerra)
; author/authors: Author(s)
; audio_read_by: For [[audiobook]]s.
; audio_read_by: For [[audiobook]]s.
; title_orig: Original title, if not in English
; title_orig: Original title, if not in English; required if using {{para|native_external_url}} or {{para|native_wikisource}}
; orig_lang_code: [[Template:ISO 639 name|ISO code]] of original language, required if using {{para|title_orig}}, {{para|native_wikisource}} or {{para|native_external_url}}
; orig_lang_code: [[ISO 639|ISO 639 code]] of original language, required if using {{para|title_orig}}, {{para|native_wikisource}} or {{para|native_external_url}}
; working_title: [[Working title]], when different from published title
; working_title: [[Working title]], when different from published title
; translator: Translator(s), if original not in English
; translator: Translator(s), if original not in English
; illustrator: Illustrator (where used throughout and a major feature)
; illustrator: Illustrator (where used throughout and a major feature)
; cover_artist: Cover artist
; cover_artist: Cover artist, if any
; country: Country of original publication United States
; country: Country of original publication
; language: Language of original book
; language: Language of original book. Do not link unless it is an unusual language.
; series: Series (if any)
; 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) ''See [[index term]] and [[library classification]]''
; subject/subjects: (for non-fiction) ''See [[index term]] and [[library classification]]''
; genre/genres: (for fiction) ''See [[Drama, Thriller, Biography, History]]''
; genre/genres: (for fiction) ''See [[literary genre]]''. Use {{tl|hlist}} for sorting multiple entries.
; set_in: can be both time and place as [[Setting (narrative)|setting]]. No need to create long lists.
; set_in: can be both time and place as [[Setting (narrative)|setting]]. No need to create long lists. Use approximate dates/places if it is not clearly specified in the text.
; publisher: Create Space Publisher of primary publication (prefer 1st edition); also {{Amazon} for additional publishers.
; publisher: Publisher of primary publication (prefer 1st edition); also {{para|publisher2}} for additional publishers.
; pub_date: Date published (1st edition) September 2013
; pub_date: Date published (1st edition)
; english_pub_date: Date first published in English if 1st edition is in another language.
; 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 {{tl|plainlist}} when there is more than one notable edition
; published: Alternate parameter, using the following composite format: year (publisher) (language, when originally written in a foreign language); use {{tl|plainlist}} when there is more than one notable edition
:Note: {{para|published}} is acceptable, but no longer preferred to {{para|publisher}} and {{para|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.
:Note: {{para|published}} is acceptable, but no longer preferred to {{para|publisher}} and {{para|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.
; media_type: Print / Digital (then binding types etc., if relevant)
; media_type: Print / Digital (then binding types etc., if relevant)
; pages: Pages (prefer 1st edition, specify edition as needed) 308
; pages: Pages (prefer 1st edition, specify edition as needed)
; award/awards: Awards(s) the book has won
; award/awards: Awards(s) the book has won
; isbn: (prefer ISBN of 1st edition). Format: "1-234-56789-0" (10-digit) or "978-1-492-33071-4" (13-digit). If the book has a [[International Standard Book Number|standard book number]] (9&nbsp;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: (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 [[International Standard Book Number|standard book number]] (9&nbsp;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{{spnd}}the last character{{spnd}}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.
; isbn_note: May be used to add a note following the ISBN.
; oclc: [[OCLC]] number (prefer 1st edition), use when book has no ISBN
; oclc: [[OCLC]] number (prefer 1st edition), use when book has no ISBN
Line 107: Line 108:
; native_external_host: The name of the website linked to by {{para|native_external_url}}, e.g. [[Project Gutenberg]], [[Internet Archive]]. Should be wikilinked if possible
; native_external_host: The name of the website linked to by {{para|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]]
; wikisource: Title of work if in the public domain and hosted at English [[:Wikisource:]]. Tracked in [[:Category:Articles that link to Wikisource]]
; external_url: [[https://www.amazon.com/Unbound-Novel-Inspired-True-Events/dp/149233071X/ref=tmm_pap_swatch_0?_encoding=UTF8&qid=1510097257&sr=8-1]] 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_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 {{para|external_url}}, e.g. [[Project Gutenberg]], [[Internet Archive]]. Should be wikilinked if possible
; external_host: The name of the website linked to by {{para|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 [[:Category:Books with missing cover|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 {{para|exclude_cover|yes}}.
; exclude_cover: This template will place articles with this infobox where no image has been specified into the category [[:Category:Books with missing cover|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 {{para|exclude_cover|yes}}.
Line 115: Line 116:


{{Infobox book{{\sandbox}}
{{Infobox book{{\sandbox}}
| italic title = no <!--(lest the title of this template is italicised)-->
| italic title   = no <!--(lest the title of this template is italicised)-->
| name = Anne of Green Gables
| name           = Anne of Green Gables
| image = FirstPageGreenGables.gif
| image         = FirstPageGreenGables.gif
| caption = The front (first) page of the first edition
| caption       = The front (first) page of the first edition
| alt = Cover
| alt           = Cover
| author = [[Lucy Maud Montgomery]]
| author         = [[Lucy Maud Montgomery]]
| title_orig =  
| title_orig     =  
| working_title =  
| working_title =  
| translator =  
| translator     =  
| illustrator = M. A. and W. A. J. Claus
| illustrator   = M. A. and W. A. J. Claus
| cover_artist =  
| cover_artist   =  
| country = United States
| country       = United States
| language = English
| language       = English
| series =  
| series         =
| subject =  
| release_number =  
| genre = [[Children's literature|Children's novel]]
| subject       =  
| publisher = [[L. C. Page & Co.]]
| genre         = [[Children's literature|Children's novel]]
| pub_date = 1908
| publisher     = [[L. C. Page & Co.]]
| pages = 429 ''(first edition)''
| pub_date       = 1908
| awards =  
| pages         = 429 ''(first edition)''
| isbn = <!-- N/A -->
| awards         =  
| oclc = 367111
| isbn           = <!-- N/A -->
| congress = PR6025.O45 A53
| oclc           = 367111
| preceded_by =  
| congress       = PR6025.O45 A53
| followed_by = [[Anne of Avonlea]]
| preceded_by   =  
| wikisource = Anne of Green Gables
| followed_by   = [[Anne of Avonlea]]
| wikisource     = Anne of Green Gables
}}
}}
<pre style="margin:3.0em 0 0;padding-right:0;overflow:auto;">
<pre style="margin:3.0em 0 0;padding-right:0;overflow:auto;">
{{Infobox book
{{Infobox book
| name = Anne of Green Gables
| name           = Anne of Green Gables
| image = FirstPageGreenGables.gif
| image         = FirstPageGreenGables.gif
| caption = The front (first) page of the first edition
| caption       = The front (first) page of the first edition
| alt = Cover
| alt           = Cover
| author = [[Lucy Maud Montgomery]]
| author         = [[Lucy Maud Montgomery]]
| title_orig =  
| title_orig     =  
| working_title =  
| working_title =  
| translator =  
| translator     =  
| illustrator = M. A. and W. A. J. Claus
| illustrator   = M. A. and W. A. J. Claus
| cover_artist =  
| cover_artist   =  
| country = United States
| country       = United States
| language = English
| language       = English
| series =  
| series         =
| subject =  
| release_number =  
| genre = [[Children's literature|Children's novel]]
| subject       =  
| publisher = [[L. C. Page & Co.]]
| genre         = [[Children's literature|Children's novel]]
| pub_date = 1908
| publisher     = [[L. C. Page & Co.]]
| pages = 429 ''(first edition)''
| pub_date       = 1908
| awards =  
| pages         = 429 ''(first edition)''
| isbn = <!-- N/A -->
| awards         =  
| oclc = 367111
| isbn           = <!-- N/A -->
| congress = PR6025.O45 A53
| oclc           = 367111
| preceded_by =  
| congress       = PR6025.O45 A53
| followed_by = [[Anne of Avonlea]]
| preceded_by   =  
| wikisource = Anne of Green Gables
| followed_by   = [[Anne of Avonlea]]
| wikisource     = Anne of Green Gables
}}
}}
</pre>
</pre>
{{clear}}


== TemplateData ==
== TemplateData ==
{{TemplateDataHeader}}
{{Collapse top|[[Wikipedia:TemplateData|TemplateData]] documentation used by [[Wikipedia:VisualEditor|VisualEditor]] and other tools}}
{{TemplateData header|noheader=1}}
<templatedata>
<templatedata>
{
{
"description": "Consistently-formatted table for presenting information about books",
"description": "Consistently-formatted table for presenting information about books",
"format": "{{_\n| _________________ = _\n}}\n",
"params": {
"params": {
"name": {
"name": {
Line 182: Line 188:
"type": "string",
"type": "string",
"required": false,
"required": false,
"description": "Book name.",
"description": "Book name",
"default": "Pagename"
"default": "Pagename"
},
"image": {
"label": "Image",
"type": "wiki-file-name",
"required": false,
"description": "Image (prefer 1st edition where permitted). Use bare filename."
},
},
"author": {
"author": {
Line 195: Line 207:
"type": "string",
"type": "string",
"required": false,
"required": false,
"description": "Language of (original) book. Full language name (not a language code)."
"description": "Language of (original) book. Full language name (not a language code).",
"example": "English"
},
},
"country": {
"country": {
Line 206: Line 219:
"label": "Genre",
"label": "Genre",
"type": "string",
"type": "string",
"required": false
"required": false,
"description": "The book's genre",
"example": "Science fiction"
},
},
"published": {
"published": {
Line 217: Line 232:
"label": "Publisher",
"label": "Publisher",
"type": "string",
"type": "string",
"deprecated": "Add the publisher to the Published field instead.",
"required": false,
"description": "Name of publisher."
"description": "Name of publisher."
},
},
Line 223: Line 238:
"label": "ISBN",
"label": "ISBN",
"type": "string",
"type": "string",
"description": "Format: \"ISBN 1-234-56789-0\" (prefer 1st edition)"
"description": "Format: \"ISBN 1-234-56789-0\" (prefer 1st edition)",
"aliases": [
"ISBN"
]
},
},
"exclude_cover": {
"exclude_cover": {
"type": "string",
"type": "string",
"description": "\"yes\" if no image is present and adding this article to \"Category:Books with missing cover\" is not desired"
"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"
"format": "block"
},
"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"
},
"media_type": {
"label": "Type of media",
"example": "[[Newspaper]]",
"type": "string"
},
"pub_date": {
"label": "Date of publication",
"description": "Date the book or work was published",
"example": "December 21, 1787",
"type": "date"
},
"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": {},
"infoboxwidth": {},
"width": {},
"image_caption": {},
"editors": {},
"editor": {},
"authors": {},
"audio_read_by": {},
"title_orig": {},
"title_working": {},
"translators": {},
"translator": {},
"illustrators": {},
"illustrator": {},
"cover_artist": {},
"release_number": {},
"subjects": {},
"subject": {},
"genres": {},
"set_in": {},
"publisher2": {},
"release_date": {},
"english_pub_date": {},
"english_release_date": {},
"pages": {},
"awards": {},
"award": {},
"isbn_note": {
"aliases": ["ISBN_note"]
},
"dewey": {},
"congress": {},
"last": {},
"first": {},
"location": {},
"oclc": {},
"alt": {},
"border": {},
"orig_lang_code": {},
"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": {}
}
}
}
</templatedata>
</templatedata>
{{Collapse bottom}}


== Translated books ==
== Translated books ==
Line 243: Line 355:
* {{clc|Articles that link to Wikisource}}
* {{clc|Articles that link to Wikisource}}
* {{clc|Articles that link to foreign-language Wikisources}}
* {{clc|Articles that link to foreign-language Wikisources}}
* {{clc|Books with missing cover}} instances without images
* {{clc|Books with missing cover}}{{spnd}}instances without images
* {{clc|Pages using deprecated image syntax}}
* {{clc|Pages using deprecated image syntax}}
* {{clc|Pages using infobox book with unknown parameters}}
* {{clc|Pages using infobox book with unknown parameters}}
* {{clc|Pages using deprecated image syntax}} – Used by [[Module:InfoboxImage]] to track articles where an infobox uses image syntax in the format <kbd><nowiki>|image=[[File:Example.jpg]]</nowiki></kbd>. To exclude articles from this category, change it to {{samp|<nowiki>|image=Example.jpg</nowiki>}}.
* {{clc|No local image but image on Wikidata}} – 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 {{para|nocat_wdimage|yes}} to the infobox.


== See also ==
== See also ==
* {{tl|Infobox book series}}
* {{tl|Infobox book series}}
* {{tl|Infobox novella}}
* {{tl|Infobox short story}}
* [[Wikipedia:WikiProject Novels/InfoboxCode]]
* [[Wikipedia:WikiProject Novels/InfoboxCode]]
* [[Wikipedia:WikiProject Novels/ArticleTemplate#Pattern template]]
* [[Wikipedia:WikiProject Novels/ArticleTemplate#Pattern template]]


<includeonly>{{basepage subpage|
<includeonly>{{basepage subpage|
[[Category:Book infobox templates| ]]
 
[[Category:WikiProject Books| {{PAGENAME}}]]
 
[[Category:WikiProject Novels| {{PAGENAME}}]]
 
[[Category:Infobox templates using Wikidata]]
 
[[Category:Templates that add a tracking category]]
 
}}</includeonly>
}}</includeonly>
[[Category:Infobox templates|book]]
[[Category:Pages with script errors|Infobox book/doc]]
[[Category:Template documentation pages|Documentation/doc]]
[[Category:Templates tracking Wikidata|Infobox book/doc]]
[[Category:Templates using TemplateData|Infobox book/doc]]
[[Category:Templates using data from Wikidata|Infobox book/doc]]

Latest revision as of 09:46, 15 December 2022

Template:Auto italic title

This template is used to present a consistently-formatted table for use in articles about books.

Usage

name
alt
caption
Authorauthor
Audio read byaudio_read_by
Original titletitle_orig
Working titletitle_working
Translatortranslator
Illustratorillustrator
Cover artistcover_artist
Countrycountry
Languagelanguage
Seriesseries
Release number
release_number
Subjectsubject
Genregenre
Set inset_in
Publishedpublished
Publisherpublisher, publisher2
Publication date
pub_date
Published in English
english_pub_date
Media typemedia_type
Pagespages
Awardsawards
ISBN123456789X
[[OCLC (identifier)|OCLC]]oclc
dewey
[[LCC (identifier)|LC Class]]congress
Preceded bypreceded_by 
Followed byfollowed_by 
Original text
title_orig at Interlingua Wikisource
Translationname at Wikisource
notes
{{Infobox book
| italic title      = <!--(see above)-->
| name              = 
| image             = 
| image_size        = 
| border            = 
| alt               = 
| caption           = 
| author            = 
| audio_read_by     = 
| title_orig        = 
| orig_lang_code    = 
| title_working     = 
| translator        = 
| illustrator       = 
| cover_artist      = 
| country           = 
| language          = 
| series            = 
| release_number    = 
| subject           = 
| genre             = 
| set_in            = 
| publisher         = 
| publisher2        = 
| pub_date          = 
| english_pub_date  = 
| published         = 
| media_type        = 
| pages             = 
| awards            = 
| isbn              = 
| isbn_note         = 
| oclc              = 
| dewey             = 
| congress          = 
| preceded_by       = <!-- for books in a series -->
| followed_by       = <!-- for books in a series -->
| native_wikisource = 
| wikisource        = 
| notes             = 
| exclude_cover     = 
| website           = 
}}

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 yes here 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 |image= uses the full image syntax (e.g. [[File:Example.jpg]]); in this case add the border in |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; required if using |native_external_url= or |native_wikisource=
orig_lang_code
ISO 639 code of original language, required if using |title_orig=, |native_wikisource= or |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
country
Country of original publication
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) See index term and library classification
genre/genres
(for fiction) See literary genre. Use {{hlist}} for sorting multiple entries.
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.
publisher
Publisher of primary publication (prefer 1st edition); also |publisher2= for additional publishers.
pub_date
Date published (1st edition)
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: |published= is acceptable, but no longer preferred to |publisher= and |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.
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 |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 |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 |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 |exclude_cover=yes.
website
for the publisher's or author's website about the book.

Example

Anne of Green Gables
Cover
The front (first) page of the first edition
AuthorLucy Maud Montgomery
IllustratorM. A. and W. A. J. Claus
CountryUnited States
LanguageEnglish
GenreChildren's novel
PublisherL. C. Page & Co.
Publication date
1908
Pages429 (first edition)
[[OCLC (identifier)|OCLC]]367111
[[LCC (identifier)|LC Class]]PR6025.O45 A53
Followed byAnne of Avonlea 
TextAnne of Green Gables at Wikisource
{{Infobox book
| name           = Anne of Green Gables
| image          = FirstPageGreenGables.gif
| caption        = The front (first) page of the first edition
| alt            = Cover
| author         = [[Lucy Maud Montgomery]]
| title_orig     = 
| working_title = 
| translator     = 
| illustrator    = M. A. and W. A. J. Claus
| cover_artist   = 
| country        = United States
| language       = English
| series         = 
| release_number = 
| subject        = 
| genre          = [[Children's literature|Children's novel]]
| publisher      = [[L. C. Page & Co.]]
| pub_date       = 1908
| pages          = 429 ''(first edition)''
| awards         = 
| isbn           = <!-- N/A -->
| oclc           = 367111
| congress       = PR6025.O45 A53
| preceded_by    = 
| followed_by    = [[Anne of Avonlea]]
| wikisource     = Anne of Green Gables
}}

TemplateData

style="background: #CCFFCC; font-size:87%; padding:0.2em 0.3em; text-align:center; " |
TemplateData documentation used by VisualEditor and other tools


Infobox book

[[Category:TemplateData documentation{{#translation:}}]]

Consistently-formatted table for presenting information about books

Template parameters

This template has custom formatting.

ParameterDescriptionTypeStatus
Namename

Book name

Default
Pagename
Stringoptional
Imageimage

Image (prefer 1st edition where permitted). Use bare filename.

Fileoptional
Authorauthor

Author(s) of the book (should be link to their respective article if there is one).

Stringoptional
Languagelanguage

Language of (original) book. Full language name (not a language code).

Example
English
Stringoptional
Countrycountry

Country of (original) publication.

Stringoptional
Genregenre

The book's genre

Example
Science fiction
Stringoptional
Publishedpublished

Using the following format: year (publisher) (language, when originally written in a foreign language)

Stringoptional
Publisherpublisher

Name of publisher.

Stringoptional
ISBNisbn ISBN

Format: "ISBN 1-234-56789-0" (prefer 1st edition)

Stringoptional
exclude cover?exclude_cover

"yes" if no image is present and adding this article to "Category:Books with missing cover" is not desired

Example
yes
Stringoptional
Seriesseries

Series the book is part of

Example
[[The Federalist Papers]]
Stringoptional
Image sizeimage_size

no description

Example
200 px
Stringoptional
Image captioncaption

a caption for the image used

Contentoptional
Type of mediamedia_type

no description

Example
[[Newspaper]]
Stringoptional
Date of publicationpub_date

Date the book or work was published

Example
December 21, 1787
Dateoptional
Preceded bypreceded_by

The previous installment in the series/from the author

Example
[[Federalist No. 4]]
Stringoptional
Followed byfollowed_by

The next installment in the series/from the author

Example
[[Federalist No. 6]]
Stringoptional
italic titleitalic title

no description

Unknownoptional
infoboxwidthinfoboxwidth

no description

Unknownoptional
widthwidth

no description

Unknownoptional
image_captionimage_caption

no description

Unknownoptional
editorseditors

no description

Unknownoptional
editoreditor

no description

Unknownoptional
authorsauthors

no description

Unknownoptional
audio_read_byaudio_read_by

no description

Unknownoptional
title_origtitle_orig

no description

Unknownoptional
title_workingtitle_working

no description

Unknownoptional
translatorstranslators

no description

Unknownoptional
translatortranslator

no description

Unknownoptional
illustratorsillustrators

no description

Unknownoptional
illustratorillustrator

no description

Unknownoptional
cover_artistcover_artist

no description

Unknownoptional
release_numberrelease_number

no description

Unknownoptional
subjectssubjects

no description

Unknownoptional
subjectsubject

no description

Unknownoptional
genresgenres

no description

Unknownoptional
set_inset_in

no description

Unknownoptional
publisher2publisher2

no description

Unknownoptional
release_daterelease_date

no description

Unknownoptional
english_pub_dateenglish_pub_date

no description

Unknownoptional
english_release_dateenglish_release_date

no description

Unknownoptional
pagespages

no description

Unknownoptional
awardsawards

no description

Unknownoptional
awardaward

no description

Unknownoptional
isbn_noteisbn_note ISBN_note

no description

Unknownoptional
deweydewey

no description

Unknownoptional
congresscongress

no description

Unknownoptional
lastlast

no description

Unknownoptional
firstfirst

no description

Unknownoptional
locationlocation

no description

Unknownoptional
oclcoclc

no description

Unknownoptional
altalt

no description

Unknownoptional
borderborder

no description

Unknownoptional
orig_lang_codeorig_lang_code

no description

Unknownoptional
preceded_by_quotation_markspreceded_by_quotation_marks

no description

Unknownoptional
followed_by_quotation_marksfollowed_by_quotation_marks

no description

Unknownoptional
native_wikisourcenative_wikisource

no description

Unknownoptional
native_external_urlnative_external_url

no description

Unknownoptional
native_external_hostnative_external_host

no description

Unknownoptional
wikisourcewikisource

no description

Unknownoptional
external_urlexternal_url

no description

Unknownoptional
external_hostexternal_host

no description

Unknownoptional
websitewebsite

no description

Unknownoptional
homepagehomepage

no description

Unknownoptional
URLURL

no description

Unknownoptional
notesnotes

no description

Unknownoptional
notenote

no description

Unknownoptional
nocat_wdimagenocat_wdimage

no description

Unknownoptional

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


See also