Difference between revisions of "Template:InfoboxBook"

From Traveller Wiki - Science-Fiction Adventure in the Far future
Jump to navigation Jump to search
m (Fix typo)
 
(11 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<table style="width: 20em; text-align: left; font-size: 95%; float: right">
+
Depreciated template! Please replace me!
<tr><th colspan="2" style="font-size: larger; background: #ddd;">{{{name}}}</th></tr>
+
{| class="va-infobox"
<tr><td colspan="2" style="text-align: center; font-size: smaller; border-bottom: 1px solid #aaa;">{{{image}}}<br>{{{caption}}}</td></tr>
+
! colspan="2" style="background: #ddd;" |'''{{{name}}}'''
<tr><td>Publisher</td><td>{{{publisher}}}</td></tr>
+
|-
<tr><td>Version</td><td>{{{version|Generic}}}</td></tr>
+
|colspan="2" style="text-align: center; font-size: smaller; border-bottom: 1px solid #aaa;"|{{{image}}}<br>{{{caption}}}
<tr><td>Author</td><td>{{{author}}}</td></tr>
+
|-
<tr><td>Format</td><td>{{{format}}}</td></tr>
+
|Publisher || {{{publisher}}}
<tr><td>Canonical</td><td>{{{canon|no}}}</td></tr>
+
|-
{{if|{{{edition|}}}|<tr><td>Edition</td><td>{{{edition}}}</td></tr>}}
+
|Version ||{{{version|Generic}}}
<tr><td>Year Published</td><td>{{{year}}}</td></tr>
+
|-
{{if|{{{pages|}}}|<tr><td>Pages</td><td>{{{pages}}}</td></tr>}}
+
|Author || {{{author}}}
{{if|{{{alsosee|}}}|<tr><td>Also See</td><td>{{{alsosee}}}</td></tr>}}
+
|-
<tr><td colspan="2" style="font-size: smaller; border-top: 1px solid #aaa;">{{{footnote}}}</td></tr>
+
|Format || {{{format}}}
</table><includeonly>[[Category:Ludography]]
+
|-
[[Category:{{#sub:{{{version|[[Generic]]}}}|2|-2}} Books]]
+
|Canonical || {{{canon|no}}}
[[Category:{{#sub:{{{publisher}}}|2|-2}} Books]]
+
|-
 +
{{#if:{{{edition|}}}|
 +
{{!}}Edition
 +
{{!}}{{{edition}}}
 +
{{!}}-}}
 +
|Year Published || {{{year}}}
 +
|-
 +
{{#if:{{{pages|}}}|
 +
{{!}}Pages
 +
{{!}}{{{pages}}}
 +
{{!}}-}}
 +
{{#if:{{{alsosee|}}}|
 +
{{!}}Also See
 +
{{!}}{{{alsosee}}}
 +
{{!}}-}}
 +
{{#if:{{{available|}}}|
 +
{{!}}Available from
 +
{{!}}{{{available}}}
 +
{{!}}-}}
 +
|colspan="2" style="font-size: smaller; border-top: 1px solid #aaa;"|{{{footnote}}}
 +
|}<includeonly>[[Category:Ludography]]
 +
[[Category:{{#if:{{#pos:{{{version|[[Generic]]}}}|{{!}}}}|{{#sub:{{{version|[[Generic]]}}}|2|{{#expr:{{#pos:{{{version|[[Generic]]}}}|{{!}}}}-2}}}}|{{#sub:{{{version|[[Generic]]}}}|2|-2}}}} Books]]
 +
[[Category:{{#if:{{#pos:{{{publisher}}}|{{!}}}}|{{#sub:{{{publisher}}}|2|{{#expr:{{#pos:{{{publisher}}}|{{!}}}}-2}}}}|{{#sub:{{{publisher}}}|2|-2}}}} Books]][[Category:Published {{{year}}}]]
 
</includeonly><noinclude>
 
</includeonly><noinclude>
[[Category:Infobox|Book]]
+
[[Category:Infobox|Book]][[Category: Templates|Book]]
</noinclude>
+
 
<noinclude>
+
This template is depreciated and no longer used, it has been replaced by [[Template:InfoboxBook2]].
 +
 
 +
This is a template for any form of published material: e.g. books, magazines, games.
 +
It will auto-generate categories for "publisher Books" and "version Books" assuming these are correctly defined as references.
 +
 
 
Use:
 
Use:
<pre><nowiki>
+
<pre style="clear: both"><nowiki>
 
{{InfoboxBook
 
{{InfoboxBook
 
   |name={Name of book}
 
   |name={Name of book}
Line 26: Line 52:
 
   |caption={Sub-Title of Book}
 
   |caption={Sub-Title of Book}
 
   |publisher={Reference to Publisher}
 
   |publisher={Reference to Publisher}
   |version={Version of Traveller}
+
   |version={Reference to Version of Traveller}
 
   |author={List of authors}
 
   |author={List of authors}
 
   |format={book format eg. lbb}
 
   |format={book format eg. lbb}
   |canonical={yes or no is book canon}
+
   |canon={yes or no is book canon}
 
   |edition={versions of book, issue}
 
   |edition={versions of book, issue}
 
   |year={year published}
 
   |year={year published}
 
   |pages={number of pages}
 
   |pages={number of pages}
 
   |alsosee={related reference}
 
   |alsosee={related reference}
   |footnote=(misc info e.g. isbn)
+
  |available={either "Out of Print" or a URL source to get the item}
 +
   |footnote= (misc info e.g. isbn)
 
}}
 
}}
 
</nowiki></pre>
 
</nowiki></pre>
This is a template for any form of published material: e.g. books, magazines, games. 
 
 
</noinclude>
 
</noinclude>

Latest revision as of 14:59, 31 May 2025

Depreciated template! Please replace me!

{{{name}}}
{{{image}}}
{{{caption}}}
Publisher {{{publisher}}}
Version Generic
Author {{{author}}}
Format {{{format}}}
Canonical no
Year Published {{{year}}}
{{{footnote}}}

This template is depreciated and no longer used, it has been replaced by Template:InfoboxBook2.

This is a template for any form of published material: e.g. books, magazines, games. It will auto-generate categories for "publisher Books" and "version Books" assuming these are correctly defined as references.

Use:

{{InfoboxBook
  |name={Name of book}
  |image={Reference to Image}
  |caption={Sub-Title of Book}
  |publisher={Reference to Publisher}
  |version={Reference to Version of Traveller}
  |author={List of authors}
  |format={book format eg. lbb}
  |canon={yes or no is book canon}
  |edition={versions of book, issue}
  |year={year published}
  |pages={number of pages}
  |alsosee={related reference}
  |available={either "Out of Print" or a URL source to get the item}
  |footnote= (misc info e.g. isbn)
}}