Difference between revisions of "Template:Book"

From The Coppermind
Jump to navigation Jump to search
(Sorry to spam but I can't tell if it works without saving the page. I think this will look alright but the next and previous books are going to be problems but not major ones.)
m (→‎Parameters: Try again)
 
(93 intermediate revisions by 10 users not shown)
Line 1: Line 1:
  +
{{infobox
{| align="right" border="1" style="border: 1px solid;"
 
  +
|id=book
|- colspan="2" align="center"
 
  +
|title=<!--
|colspan="2" style="background:black"|<span style="color:white">'''''{{{title|}}}'''''</span style>
 
  +
<!--|colspan="2"|{{{image|}}} Put this back in when we have images-->
 
  +
-->{{#if:{{{prequel|}}}|<span style="float: left; ">[[{{{prev|{{{prequel}}}|}}}|<]]</span>}}<!--
  +
-->{{{title|''{{PAGENAME}}''|}}}{{#ifeq:{{NAMESPACENUMBER}}|0|{{DISPLAYTITLE:{{{display-title|{{{title|''{{PAGENAME}}''}}}}}}}}}}<!--
  +
-->{{#if:{{{sequel|}}} |<span style="float: right;">[[{{{next|{{{sequel}}}| }}}|>]]</span>}}<!--
  +
  +
-->|1=
  +
<!-- cover image -->
  +
{{#if:{{{cover|}}} |{{row/image+artist | {{{cover}}} |artist={{{cover-artist|}}} }}|}}
  +
<!-- series -->
  +
{{#if:{{{series|}}}{{{prequel|}}}{{{sequel|}}}|
  +
{{!}}-
  +
{{!}} colspan=2 style="padding: 0; margin: 0;" {{!}}
  +
{{{!}} width=100%
  +
{{!}}-
  +
! colspan=2 align=center {{!}} {{{series|Series}}}
  +
{{!}}-
  +
{{#if:{{{prequel|}}} |{{row/kv|Follows |''[[{{{prev|{{{prequel}}}|}}}|{{{prequel}}}]]'' }}|}}
  +
{{#if:{{{sequel|}}} |{{row/kv|Precedes |''[[{{{next|{{{sequel}}} |}}}|{{{sequel}}} ]]'' }}|}}
  +
{{!}}}
  +
}}
  +
{{!}}-
  +
<!-- series inclusion -->
  +
{{#if:{{{setting|}}} |{{row/kv|Setting |{{{setting}}} }}|}}
  +
<!-- collaborators -->
  +
{{#if:{{{collaborators|}}} |{{row/kv|Collaborators |{{{collaborators}}} }}|}}
  +
<!-- release date -->
  +
{{#if:{{{released|}}} |{{row/kv|Released |{{{released}}} }}|}}
  +
<!-- publisher's wikipedia page -->
  +
{{#if:{{{'publisher|{{{publisher-raw|}}}}}}|{{row/kv|Publisher|{{{'publisher|{{{publisher-raw}}}}}} }}|}}
  +
{{#if:{{{publisher|}}} |{{row/kv|Publisher |[[wikipedia:{{{publisher}}}|{{{publisher}}}]] }}|}}
  +
<!-- ISBN -->
  +
{{#if:{{{ISBN|}}} |{{row/kv|ISBN |[[Special: BookSources/{{{ISBN}}}|{{{ISBN}}}]] }}|}}
  +
<!-- page count -->
  +
{{#if:{{{page-count|}}} |{{row/kv|Page Count |{{{page-count}}} }}|}}
  +
<!-- word count -->
  +
{{#if:{{{word-count|}}} |{{row/kv|Word Count |{{{word-count}}} }}|}}
  +
<!-- annotations -->
  +
{{#if:{{{annotations|}}} |{{row/kv|Annotations |[[bws:{{{annotations}}}|{{{a-text|Portal}}}]] }}|}}
  +
{{#if:{{{annotation|}}} |{{row/kv|Annotation |[[bws:{{{annotation}}} |{{{a-text|here}}}]] }}|}}
  +
}}<includeonly><!--
  +
  +
-->{{cat ns|books|only=0}}<!--
  +
-->{{cat ns|meta|only=0}}<!--
  +
  +
-->{{#if:{{{cover-artist|}}}|[[category: redundant artist attribution]]}}<!--
  +
  +
--></includeonly><noinclude>
  +
  +
{{for|Template:Literature|the template describing in-world books|pre=This is the infobox template for real world books}}
  +
This template is used to describe actual books written by Brandon Sanderson. This includes published novels (e.g. ''[[The Way of Kings]]'', ''[[Legion (book)|Legion]]''), short stories (e.g. ''[[Perfect State]]''), anthologies (e.g. ''[[Arcanum Unbounded]]''), graphic novels (e.g. ''[[White Sand|White Sand (vol. 1)]]''), and derivative works, such as the ''[[Mistborn Adventure Game (rule book)|Mistborn Adventure Game RPG]]'' and its expansions. In addition to any published works, this template also applies to books planned for the future (e.g. ''[[Nightblood (book)|Nightblood]]'') and books written in the past but not published (e.g. ''[[The Liar of Partinel]]'' or ''[[Aether of Night]]''). Notably, this template does not apply to Brandon's essays, blogs, annotations, or in-world books.
  +
  +
__TOC__
  +
  +
=== Template ===
  +
On lines with multiple parameters (e.g. <code>|publisher= / 'publisher=</code>) pick only the one most appropriate.
  +
<pre class=mw-code>
  +
{{book
  +
|cover=
  +
|prequel=
  +
|sequel=
  +
|series=
  +
|setting=
  +
|collaborators=
  +
|released=
  +
|publisher= / 'publisher=
  +
|ISBN=
  +
|annotation= / annotations=
  +
}}
  +
</pre>
  +
  +
  +
=== Parameters ===
  +
None of the parameters are mandatory.
  +
  +
{| class="wikitable" width=100%
  +
<!-- ------------- -->
  +
<!-- TABLE CAPTION -->
  +
<!-- ------------- -->
  +
|+ {{t|Book}} Parameters
  +
  +
<!-- -------------- -->
  +
<!-- COLUMN HEADERS -->
  +
<!-- -------------- -->
  +
|-
  +
! scope="col" style="font-weight: bold;" | Parameter
  +
! scope="col" style="font-weight: bold;" | Description
  +
! scope="col" style="font-weight: bold;" | Examples
  +
  +
<!-- ---------- -->
  +
<!-- ROW: title -->
  +
<!-- ---------- -->
 
|-
 
|-
  +
| style="text-align: center;" | <code>title</code>
|Author||[[{{{author|}}}]]
 
  +
| Rarely used, the <code>title</code> parameter allows you to overwrite the default title of the infobox (which is the page name in italics). This is mostly useful when the page name is somehow different from the actual title of the book. For example, the article for ''Elantris'' is named [[Elantris (book)]], to disambiguate with [[Elantris (city)|the city of Elantris]], so the infobox opts to overwrite this with the more sensible ''Elantris''. Similarly, the [[Dragonsteel Prime]] infobox uses this parameter to only italicize the ''Dragonsteel'' part of the page name.
  +
| style="white-space: nowrap;" |
  +
<code><nowiki>|title=''Elantris''</nowiki></code>
  +
  +
<!-- ------------------ -->
  +
<!-- ROW: display-title -->
  +
<!-- ------------------ -->
 
|-
 
|-
  +
| style="text-align: center;" | <code>display-title</code>
|Publisher||[[{{{publisher|}}}]]
 
  +
| Also rarely used, the <code>display-title</code> parameter allows you to change how the page title is formatted (which defaults to follow the <code>title</code> parameter, if used, otherwise it is simply italicized in full). This is mostly useful when the page name is somehow different from the actual title of the book. For example, the article for ''Elantris'' is named [[Elantris (book)]], to disambiguate with [[Elantris (city)|the city of Elantris]], so the infobox uses this parameter to format the page title as ''Elantris'' (book).
|-
 
  +
| style="white-space: nowrap;" |
|Series||[[{{{series|}}}]]
 
  +
<code><nowiki>|display-title=''Elantris'' (book)</nowiki></code>
|-
 
  +
|Preceded by||[[{{{prevbook|}}}]]
 
  +
<!-- ---------- -->
|-
 
  +
<!-- ROW: cover -->
|Followed by||[[{{{nextbook|}}}]]
 
  +
<!-- ---------- -->
|-
 
  +
|-
|ISBN||[[special:BookSources/{{{ISBN}}}|{{{ISBN}}}]]
 
  +
| style="text-align: center;" | <code>cover</code>
  +
| Provide a filename to autogenerate a thumbnail and artist attribution using the {{t|row/image+artist}} template.
  +
| style="white-space: nowrap;" |
  +
<code><nowiki>|cover=Words of Radiance.jpg</nowiki></code>
  +
  +
<!-- ------------------- -->
  +
<!-- ROW: prequel & prev -->
  +
<!-- ------------------- -->
  +
|-
  +
| style="text-align: center;" | <code>prequel</code> <br><small>(and, optionally)</small><br> <code>prev</code>
  +
| If the book belongs to a series and is not the first book in it, <code>prequel</code> can be used to provide that first book. Using this parameter autogenerates a <code><</code> link to the prequel's page, and adds a '''Follows''' row in the infobox.<br>
  +
<code>prev</code> can be used in conjunction with <code>prequel</code> to provide an alternative name in the '''Follows''' row. In this scenario, <code>prev</code> should use the actual name of the target page, while <code>prequel</code> displays a more user-friendly name.<br>
  +
<small>'''Note:''' Infoboxes that make use of <code>prequel</code> should also have a <code>series</code>.</small>
  +
| style="white-space: nowrap;" |
  +
<code><nowiki>|prequel=The Way of Kings</nowiki></code><br>
  +
<code><nowiki>|prev=Legion (book)|prequel=Legion</nowiki></code>
  +
  +
<!-- ------------------ -->
  +
<!-- ROW: sequel & next -->
  +
<!-- ------------------ -->
  +
|-
  +
| style="text-align: center;" | <code>sequel</code> <br><small>(and, optionally)</small><br> <code>next</code>
  +
| If the book belongs to a series and has a known sequel, <code>sequel</code> can be used to provide it. Using this parameter autogenerates a <code>></code> link to the sequel's page, and adds a '''Precedes''' row in the infobox.<br>
  +
<code>next</code> can be used in conjunction with <code>sequel</code> to provide an alternative name in the '''Precedes''' row. In this scenario, <code>next</code> should use the actual name of the target page, while <code>sequel</code> displays a more user-friendly name.<br>
  +
<small>'''Note''': Infoboxes that make use of <code>sequel</code> should also have a <code>series</code>.</small>
  +
| style="white-space: nowrap;" |
  +
<code><nowiki>|sequel=Oathbringer</nowiki></code><br>
  +
<code><nowiki>|next=Legion: Skin Deep|sequel=Skin Deep</nowiki></code>
  +
  +
<!-- ----------- -->
  +
<!-- ROW: series -->
  +
<!-- ----------- -->
  +
|-
  +
| style="text-align: center;" | <code>series</code>
  +
| If the book belongs to a series, use this parameter to link to the series' page.
  +
| style="white-space: nowrap;" |
  +
<code><nowiki>|series=The Stormlight Archive</nowiki></code>
  +
  +
<!-- ------------ -->
  +
<!-- ROW: setting -->
  +
<!-- ------------ -->
  +
|-
  +
| style="text-align: center;" | <code>setting</code>
  +
| Use this to describes the setting of the book. Cosmere stories usually include both the [[Shardworld]] and [[Cosmere]]. This parameter is similar to the ''universe'' parameter in other templates.
  +
| style="white-space: nowrap;" |
  +
<code><nowiki>|setting=[[Roshar]], [[Cosmere]]</nowiki></code><br>
  +
<code><nowiki>|setting=[[Skyward (series)]]</nowiki></code><br>
  +
<code><nowiki>|setting=''Standalone''</nowiki></code>
  +
  +
<!-- ------------ -->
  +
<!-- ROW: collaborators -->
  +
<!-- ------------ -->
  +
|-
  +
| style="text-align: center;" | <code>collaborators</code>
  +
| Use this to list collaborators, including coauthors and authors who adapt a work into a new medium. For visual media, it should include the lead artist(s); for audio originals, it should include the narrator(s).
  +
| style="white-space: nowrap;" |
  +
<code><nowiki>|collaborators=[[Rik Hoskin]], [[Julius Gopez]], [[Julius Ohta]]</nowiki></code><br>
  +
<code><nowiki>|collaborators=[[Mary Robinette Kowal]], [[Julia Whelan]]</nowiki></code><br>
  +
  +
<!-- ------------- -->
  +
<!-- ROW: released -->
  +
<!-- ------------- -->
  +
|-
  +
| style="text-align: center;" | <code>released</code>
  +
| Use this to specify the release date for the book. Use the ''Month D, YEAR'' format.
  +
| style="white-space: nowrap;" |
  +
<code><nowiki>|released=March 14, 2014</nowiki></code>
  +
  +
<!-- ------------------------------ -->
  +
<!-- ROW: publisher / 'publisher -->
  +
<!-- ------------------------------ -->
  +
|-
  +
| style="text-align: center; white-space: nowrap;" | <code>publisher</code> <br><small>or</small><br> <code>'publisher</code>
  +
| Use this to link to the publisher's Wikipedia page.<br>
  +
<small>To bypass the automatic linking or to link to a non-Wikipedia website, use <code>'publisher</code>.</small>
  +
| style="white-space: nowrap;" |
  +
<code><nowiki>|publisher=Tor books</nowiki></code><br>
  +
<code><nowiki>|'publisher=Subterranean Press</nowiki></code><br>
  +
<code><nowiki>|'publisher=[https://subterraneanpress.com/ Subterranean Press]</nowiki></code>
  +
  +
<!-- --------- -->
  +
<!-- ROW: ISBN -->
  +
<!-- --------- -->
  +
|-
  +
| style="text-align: center;" | <code>isbn</code>
  +
| Use this to specify the book's ISBN.
  +
| style="white-space: nowrap;" |
  +
<code><nowiki>|ISBN=978-0765326362</nowiki></code>
  +
  +
<!-- ----------------------------- -->
  +
<!-- ROW: annotation / annotations -->
  +
<!-- ----------------------------- -->
  +
|-
  +
| style="text-align: center;" | <code>annotation</code> <br><small>or</small><br> <code>annotations</code>
  +
| If the book has annotations on Brandon's website, this parameter can link to them. Navigate to the annotations page and pass everything after the <code>https://brandonsanderson.com/</code> as a value to this parameter.<br>
  +
<small>If the annotations reside on a single page (and there is no "hub" page), use <code>annotation</code> instead.
  +
| style="white-space: nowrap;" |
  +
<code><nowiki>|annotations=annotation-alcatraz-authors-foreword</nowiki></code><br>
  +
<code><nowiki>|annotation=annotation-recent-short-stories-defending-elysium/</nowiki></code>
  +
 
|}
 
|}
  +
  +
=== Categories & Tags ===
  +
  +
Applying this template to a page will add the article to [[:Category: Books|Books]] category.
  +
  +
[[category: infoboxes]]
  +
  +
== Articles using Template ==
  +
{{for|Special:WhatLinksHere/{{FULLPAGENAME}}|a full listing|here|pre=This list is limited to 100 pages.}}
  +
{{Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=0|limit=100}}

Latest revision as of 03:30, 22 July 2023

Book

This template is used to describe actual books written by Brandon Sanderson. This includes published novels (e.g. The Way of Kings, Legion), short stories (e.g. Perfect State), anthologies (e.g. Arcanum Unbounded), graphic novels (e.g. White Sand (vol. 1)), and derivative works, such as the Mistborn Adventure Game RPG and its expansions. In addition to any published works, this template also applies to books planned for the future (e.g. Nightblood) and books written in the past but not published (e.g. The Liar of Partinel or Aether of Night). Notably, this template does not apply to Brandon's essays, blogs, annotations, or in-world books.

Template

On lines with multiple parameters (e.g. |publisher= / 'publisher=) pick only the one most appropriate.

{{book
|cover=
|prequel=
|sequel=
|series=
|setting=
|collaborators=
|released=
|publisher= / 'publisher=
|ISBN=
|annotation= / annotations=
}}


Parameters

None of the parameters are mandatory.

{{Book}} Parameters
Parameter Description Examples
title Rarely used, the title parameter allows you to overwrite the default title of the infobox (which is the page name in italics). This is mostly useful when the page name is somehow different from the actual title of the book. For example, the article for Elantris is named Elantris (book), to disambiguate with the city of Elantris, so the infobox opts to overwrite this with the more sensible Elantris. Similarly, the Dragonsteel Prime infobox uses this parameter to only italicize the Dragonsteel part of the page name.

|title=''Elantris''

display-title Also rarely used, the display-title parameter allows you to change how the page title is formatted (which defaults to follow the title parameter, if used, otherwise it is simply italicized in full). This is mostly useful when the page name is somehow different from the actual title of the book. For example, the article for Elantris is named Elantris (book), to disambiguate with the city of Elantris, so the infobox uses this parameter to format the page title as Elantris (book).

|display-title=''Elantris'' (book)

cover Provide a filename to autogenerate a thumbnail and artist attribution using the {{row/image+artist}} template.

|cover=Words of Radiance.jpg

prequel
(and, optionally)
prev
If the book belongs to a series and is not the first book in it, prequel can be used to provide that first book. Using this parameter autogenerates a < link to the prequel's page, and adds a Follows row in the infobox.

prev can be used in conjunction with prequel to provide an alternative name in the Follows row. In this scenario, prev should use the actual name of the target page, while prequel displays a more user-friendly name.
Note: Infoboxes that make use of prequel should also have a series.

|prequel=The Way of Kings
|prev=Legion (book)|prequel=Legion

sequel
(and, optionally)
next
If the book belongs to a series and has a known sequel, sequel can be used to provide it. Using this parameter autogenerates a > link to the sequel's page, and adds a Precedes row in the infobox.

next can be used in conjunction with sequel to provide an alternative name in the Precedes row. In this scenario, next should use the actual name of the target page, while sequel displays a more user-friendly name.
Note: Infoboxes that make use of sequel should also have a series.

|sequel=Oathbringer
|next=Legion: Skin Deep|sequel=Skin Deep

series If the book belongs to a series, use this parameter to link to the series' page.

|series=The Stormlight Archive

setting Use this to describes the setting of the book. Cosmere stories usually include both the Shardworld and Cosmere. This parameter is similar to the universe parameter in other templates.

|setting=[[Roshar]], [[Cosmere]]
|setting=[[Skyward (series)]]
|setting=''Standalone''

collaborators Use this to list collaborators, including coauthors and authors who adapt a work into a new medium. For visual media, it should include the lead artist(s); for audio originals, it should include the narrator(s).

|collaborators=[[Rik Hoskin]], [[Julius Gopez]], [[Julius Ohta]]
|collaborators=[[Mary Robinette Kowal]], [[Julia Whelan]]

released Use this to specify the release date for the book. Use the Month D, YEAR format.

|released=March 14, 2014

publisher
or
'publisher
Use this to link to the publisher's Wikipedia page.

To bypass the automatic linking or to link to a non-Wikipedia website, use 'publisher.

|publisher=Tor books
|'publisher=Subterranean Press
|'publisher=[https://subterraneanpress.com/ Subterranean Press]

isbn Use this to specify the book's ISBN.

|ISBN=978-0765326362

annotation
or
annotations
If the book has annotations on Brandon's website, this parameter can link to them. Navigate to the annotations page and pass everything after the https://brandonsanderson.com/ as a value to this parameter.

If the annotations reside on a single page (and there is no "hub" page), use annotation instead.

|annotations=annotation-alcatraz-authors-foreword
|annotation=annotation-recent-short-stories-defending-elysium/

Categories & Tags

Applying this template to a page will add the article to Books category.

Articles using Template