Template:InfoboxBook2/doc

From Traveller Wiki - Science-Fiction Adventure in the Far future
Jump to navigation Jump to search

This is a template for any form of published material: e.g. books, periodicals, games. The result is a combined Bibliography and Ludography.

Description (Specifications)[edit]

This template stores data in Cargo tables. This means the format of the elements is more specific and picky. The parameters to the template are parsed and inserted into tables in the database for query through Cargo.

It will auto-generate categories for "<publisher> Books", "<version> Books", and "Published <year>" when you enter the parameters correctly. .

Template Parameters[edit]

InfoboxBook2 Parameters
Parameter Remarks
name Full title of the book or publication. Do not add any formatting. Periodicals should have their issue number appended, zero padded, and with no other formatting. E.g. Challenge 26
alsosee related reference
author List of credited authors, comma separated. Do not add any formatting
available URL source to legally purchase the item, please use Template:DTRPG if possible to format the link
canon Yes or No. Statement if the book is considered a canon source.
caption Sub-Title of Book, or description of the content
contents Table of contents, comma separated list of "chapter title":page. This can be tricky to get right and recommend omitting it.
edition Edition of the book or publication. Usually a 1st edition, but some books had a second edition.
footnote Miscellaneous information, usually used for either a publisher ID number or an ISBN or both
format Format of the publication: Book, softcover, hardcover, PDF, folio, periodical
image Cover image or associated image. Do not add any formatting, and omit the "File:" namespace from the name
isbn International Standard Book Number (ISBN), the 13-digit number that uniquely identifies this book or publication.
language Language of the publication, defaults to English
pages number of pages, whole numbers only
product code The publisher specific code for this publication. Some publisher give short codes or numbers to identify their products different from the isbn
publisher Name of publisher. Used for generating a category so precise names are important. Do not add any formatting.
version Which version of Traveller rules are being referenced in the book. Do not add any formatting.
year Year of publication according to the title page.

Template Layout[edit]

Use:

{{InfoboxBook2
|name      = {Name of the book, no links}
|alsosee   = {related reference}
|author    = {List of authors, comma separates, no links}
|available = {URL source to get the item (only)}
|canon     = Yes {1 (yes) or 0 (no) is book considered a canon source}
|caption   = {Sub-Title of Book}
|contents  = {Table of contents, comma separated list of "chapter title":page}
|edition   = 1st {versions of book, issue}
|footnote  = (misc info e.g. isbn)
|format    = Book (Softback) {book format eg. lbb}
|image     = {Reference to Image, no links, no File required}
|isbn      = {ISBN number, no links}
|language  = English
|pages     = {number of pages}
|product code = {publisher code}
|publisher = {Name of publisher, no links}
|version   = {Reference to Version of Traveller, no links}
|year      = {year published}
}}

As of 2019, the previous template Template:InfoboxBook has almost entirely been phased out. Please use this template for published materials.