Difference between revisions of "Template:Book"

From The Coppermind
Jump to navigation Jump to search
m (try dat)
m (try that)
Line 1: Line 1:
{{Infobox
+
{{infobox
|title={{{title|{{PAGENAME}}|}}}
+
|title=<!--
|1=
 
<!-- optional cover image -->
 
{{#if:{{{image|}}}|{{#!:|colspan=2|[[File:{{{image}}}|200px|center]]}}|}}
 
<!-- optional link to the publisher's wikipedia page -->
 
{{#if:{{{publisher|}}}|{{row/kv|Publisher|[[wikipedia:{{{publisher}}}|{{{publisher}}}]]|}}|}}
 
<!-- optional release date -->
 
{{#if:{{{released|}}}|{{row/kv|Released|{{{released}}}|}}|}}
 
<!-- optional series link -->
 
{{#if:{{{series|}}}|{{row/kv|Series|{{{series}}}|}}|}}
 
<!-- optional links to pre/sequels -->
 
{{#if:{{{prequel|}}}|{{row/kv|Follows|''[[{{{prequel}}}]]''}}|}}
 
{{#if:{{{sequel|}}}|{{row/kv|Precedes|''[[{{{sequel}}}]]''}}|}}
 
<!-- optional ISBN for the book -->
 
{{#if:{{{ISBN|}}}|{{row/kv|ISBN|[[Special:BookSources/{{{ISBN}}}|{{{ISBN}}}]]}}|}}
 
<!-- optional links to summary/annotations/epigraphs and pre/sequels -->
 
{{#if:{{{l|}}}||{{#!:
 
|- align=center
 
| colspan=2 style="padding:0px;white-space:nowrap;" |<!--
 
-->{{bookLinks|title={{{title|{{PAGENAME}}|}}}|prev={{{prequel|}}}|next={{{sequel|}}}|s={{{s|}}}|a={{{a|}}}|}}<!--
 
-->}}<!-- -->}}<!-- -->}}
 
<includeonly>[[Category:Books]]</includeonly><noinclude>
 
   
  +
-->{{#if:{{{prequel|}}}|<span style="float: left;">[[{{{prequel}}}|<]]</span>|}}<!--
Usage example:
 
  +
-->{{{title|{{PAGENAME}}|}}}<!--
<pre>
 
  +
-->{{#if:{{{sequel|}}}|<span style="float: right;">[[{{{sequel}}}|<]]</span>}}<!--
{{BookInfobox
 
  +
|title=The Way of Kings
 
  +
-->|1=<!--
|image=TheWayOfKings.png
 
  +
|publisher=Tor books
 
  +
cover image
|series=The Stormlight Archive
 
 
-->{{#if:{{{cover|{{{image|}}}|}}}|{{row/image|{{{cover|{{{image}}}|}}}|}}|}}<!--
|prequel=
 
  +
|sequel=TBA
 
  +
release date
|ISBN=978-0765326355
 
 
-->{{#if:{{{released|}}}|{{row/kv|Released|{{{released}}}|}}|}}<!--
}}
 
  +
</pre>
 
  +
series
[[Category:Infoboxes|{{PAGENAME}}]]
 
 
-->{{#if:{{{series|}}}|{{row/kv|Series|{{{series}}}|}}|}}<!--
 
prequel
 
-->{{#if:{{{prequel|}}}|{{row/kv|Follows|''[[{{{prequel}}}]]''}}|}}<!--
 
sequel
 
-->{{#if:{{{sequel|}}}|{{row/kv|Precedes|''[[{{{sequel}}}]]''}}|}}<!--
  +
 
publisher's wikipedia page
 
-->{{#if:{{{publisher|}}}|{{row/kv|Publisher|[[wikipedia:{{{publisher}}}|{{{publisher}}}]]|}}|}}<!--
  +
ISBN
 
-->{{#if:{{{ISBN|}}}|{{row/kv|ISBN|[[Special:BookSources/{{{ISBN}}}|{{{ISBN}}}]]}}|}}<!--
  +
annotations
  +
-->{{#if:{{{annotations|}}}|{{row/kv|Annotations|[[bws:annotations/book/{{{annotations}}}|{{{a-text|Portal}}}]]}}|}}<!--
  +
  +
--><!--
  +
 
-->}}<includeonly>[[Category:Books]]</includeonly><!--
  +
  +
REMOVE
  +
-->{{#if:{{{image|}}}{{{a|}}}{{{e|}}}{{{s|}}}|[[Category:Articles with incorrect templates]]}}<!--
  +
  +
--><noinclude>{{cat|infoboxes}}
  +
  +
This template is used to describe books. All the parameters are optional, though it is advised that most of them should be filled in. Passing a file name in {{{cover}}} will output a thumbnail at the top of the infobox. The release date can be added in {{{released}}}. The {{{series}}}, {{{prequel}}} and {{{sequel}}} parameters can be used where appropriate, the prequel and sequel links will add < or > links to the title at the top of the box. {{{publisher}}} link to the publisher's Wikipedia page and {{{ISBN}}} does something with the books ISBN number. Passing {{{annotations}}} will link to one of the annotations pages on [[Brandon]]'s website.

Revision as of 18:00, 30 November 2012

Book

Template:Cat

This template is used to describe books. All the parameters are optional, though it is advised that most of them should be filled in. Passing a file name in {{{cover}}} will output a thumbnail at the top of the infobox. The release date can be added in {{{released}}}. The {{{series}}}, {{{prequel}}} and {{{sequel}}} parameters can be used where appropriate, the prequel and sequel links will add < or > links to the title at the top of the box. {{{publisher}}} link to the publisher's Wikipedia page and {{{ISBN}}} does something with the books ISBN number. Passing {{{annotations}}} will link to one of the annotations pages on Brandon's website.