Template:Infobox book/doc: Difference between revisions

From Celestial Lance Universe Wiki
Jump to navigation Jump to search
(Created page with "{{Documentation subpage}} <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> {{Auto italic title}} {{Lua|Module:Infobox|Module:Infobox/utilities|Module:InfoboxImage|Module:Check for unknown parameters|Module:Lang|noprotcat=yes}} {{Uses TemplateStyles|Template:Infobox book/styles.css}} This template is used to present a consistently formatted table for use in articles about books. == Usage == {{Generic template demo |_template={{BASEPAGENAME}}{{\sandbox}} |_display=it...")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
{{Auto italic title}}
{{Auto italic title}}
{{Lua|Module:Infobox|Module:Infobox/utilities|Module:InfoboxImage|Module:Check for unknown parameters|Module:Lang|noprotcat=yes}}
{{Lua|Module:Infobox|Module:InfoboxImage|Module:Check for unknown parameters|Module:Lang|noprotcat=yes}}
{{Uses TemplateStyles|Template:Infobox book/styles.css}}
{{Uses TemplateStyles|Template:Infobox book/styles.css}}


Line 9: Line 9:
== Usage ==
== Usage ==
{{Generic template demo |_template={{BASEPAGENAME}}{{\sandbox}} |_display=italics |italic title=no
{{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 |language |series |release_number |subject |genre |set_in |published |publisher |publisher2 |pub_date |pub_place |media_type |pages |awards |isbn=123456789X |oclc |dewey |congress |preceded_by='''preceded_by''' |followed_by='''followed_by''' |notes
|name |image= |alt |caption |author |audio_read_by |title_orig='''title_orig''' |orig_lang_code=ia |title_working='''title_working''' |translator |illustrator |cover_artist |language |series |release_number |subject |genre |set_in |published |publisher |publisher2 |pub_date |pub_place |media_type |pages |awards |isbn=123456789X |oclc |dewey |congress |preceded_by='''preceded_by''' |followed_by='''followed_by''' |notes
}}
}}



Latest revision as of 20:14, 29 April 2026

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

Usage

name
Author author
Audio read by audio_read_by
Original title title_orig
Working title title_working
Translator translator
Illustrator illustrator
Cover artist cover_artist
Language language
Series series
Release number
release_number
Subject subject
Genre genre
Published published
Publisher publisher, publisher2
Publication date
pub_date
Publication place pub_place
Media type media_type
Pages pages
Awards awards
ISBN 123456789X
OCLC oclc
Dewey Decimal dewey
LCCN congress
Preceded by preceded_by 
Followed by followed_by 

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      = 
| language          = 
| series            = 
| release_number    = 
| subject           = 
| genre             = 
| set_in            = <!-- or use set_on to change the label to "Set on" -->
| publisher         = 
| publisher2        = 
| pub_date          = 
| pub_place         = 
| 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 -->
| notes             = 
| exclude_cover     = 
| website           = 
| module            = 
}}

Parameters

  • 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 page where this infobox is invoked.
image
Image (prefer 1st edition where permitted), use bare filename: Example.jpg
image_size
Uses image size set by user (default 220px). Use a number to override image size.
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;
orig_lang_code
ISO 639 code of original language, required if using |title_orig=
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. Should not generally be combined with genre/genres (i. e., cooking as the subject or cookbook as the genre, but not both).
genre/genres
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 story setting. No need to create long lists. Use approximate dates/places if it is not clearly specified in the text.
set_on
overrides |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 |publisher2= for additional publishers.
pub_date
Date published (1st edition)
pub_place
Place of original publication
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 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)
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.
module
for embedding other infoboxes into this one ).

Tracking categories

See also