Difference between revisions of "Template:Book"

Jump to navigation Jump to search
10,829 bytes added ,  9 months ago
m
→‎Parameters: Try again
(links to wikipedia, no need for us to have 'publisher' pages)
m (→‎Parameters: Try again)
 
(69 intermediate revisions by 7 users not shown)
{{infobox
{{Infobox|title={{{name|{{{title|{{PAGENAME}}}}}}}}
|id=book
{{#if:{{{image|}}}|
|title=<!--
{{!}}- align="center"
 
{{!}} colspan="2" style="padding:0px;" {{!}} {{{image|}}}
-->{{#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 -->
{{Infobox/row|Publisher|{{wp|{{{publisher}}}}}|}}
{{#if:{{{setting|}}} |{{row/kv|Setting |{{{setting}}} }}|}}
{{Infobox/row|Released|{{{releasedate|''Unknown''}}}|}}
<!-- collaborators -->
{{#if:{{{series|}}}|{{Infobox/row|Series|{{{series}}}|}}|}}
{{#if:{{{collaborators|}}} |{{row/kv|Collaborators |{{{collaborators}}} }}|}}
{{Infobox/row|Follows|''{{{prequel|None}}}''}}
<!-- release date -->
{{Infobox/row|Precedes|''{{{sequel|None}}}''}}
{{#if:{{{ISBNreleased|}}} |{{Infoboxrow/rowkv|ISBN|[[Special:BookSources/{{{ISBN}}}Released |{{{ISBNreleased}}}]] }}|}}
<!-- 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}}<!--
}}<includeonly>[[Category:Books]]</includeonly><noinclude>
-->{{cat ns|meta|only=0}}<!--
<pre>
 
{{BookInfobox
-->{{#if:{{{cover-artist|}}}|[[category: redundant artist attribution]]}}<!--
|title=The Way of Kings
 
|image=[[File:TheWayOfKings.png|200px|center]]
--></includeonly><noinclude>
|author=Brandon Sanderson
 
|publisher=Tor
{{for|Template:Literature|the template describing in-world books|pre=This is the infobox template for real world books}}
|series=The Stormlight Archive
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.
|prevbook=
 
|nextbook=TBA
__TOC__
|ISBN=978-0765326355
 
=== 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>
 
[[Category:Infoboxes|{{PAGENAME}}]]
 
=== 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>
| 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>
| 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;" |
<code><nowiki>|display-title=''Elantris'' (book)</nowiki></code>
 
<!-- ---------- -->
<!-- ROW: cover -->
<!-- ---------- -->
|-
| 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}}

Navigation menu