Dungeons & Dragons Lore Wiki

Welcome to the Dungeons & Dragons Lore Wiki, an encyclopedia of official first-party D&D canon from 1974 to the current day.

We need editors! See the editing guidelines for ways to contribute.

READ MORE

Dungeons & Dragons Lore Wiki
 
Tag: Source edit
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
  +
<includeonly>{{#invoke:Book|Book|title={{{1|default}}}|page={{{2|}}}|sub={{{sub|}}}|isbn={{{isbn|}}}}}</includeonly><noinclude>
{| style="clear: right; border: solid #aaa 1px; margin: 0 0 1em 1em; font-size: 95%; background: #f9f9f9; color:black; width: 310px; padding: 10px; text-align: left; float: right;"
 
  +
This template makes automatic wikilinks to books. It's primarily useful if you can't remember the year of a product.
|-
 
  +
| colspan="2" align="center" style="font-size:125%;" bgcolor=#cef2e0 | {{PAGENAME}}
 
  +
To automatically make a <nowiki><ref></nowiki> tag, instead use {{[[:Template:Cite book|cite book]]}}.
|-
 
  +
|
 
  +
==Usage==
|-
 
  +
<pre>
{{#if: {{{image|}}} | {{!}} align=center colspan=2 {{!}} [[Image:{{{image}}}|center|284px]] }}
 
  +
{{book|Player's Handbook (3.5)}}
|- style="vertical-align: top;"
 
  +
{{book|Dungeon Master's Guide (4e)|42}}
{{#if: {{{author|}}} | {{!}} valign=top {{!}} '''Author''' {{!!}} {{{author}}} }}
 
  +
{{book|Against the Cult of the Reptile God|12-14}}
|- style="vertical-align: top;"
 
  +
{{book|From the Ashes|18|sub=Atlas}}
{{#if: {{{illustrator|}}} | {{!}} valign=top {{!}} '''Illustrator''' {{!!}} {{{illustrator}}} }}
 
  +
</pre>
|- style="vertical-align: top;"
 
  +
{{#if: {{{date|}}} | {{!}} '''Publication date''' {{!!}} {{{date}}} }}
 
  +
==Parameters==
|- style="vertical-align: top;"
 
  +
{{#if: {{{publisher|}}} | {{!}} '''Published by''' {{!!}} {{{publisher}}} }}
 
  +
* '''1:''' The first parameter is the book name. It will automatically form a wikilink if the book is in the site's database. Where names clash, you will have to disambiguate (e.g. [[Player's Handbook (3.5)]], not ''Player's Handbook''.) Try searching the list in [[Module:Book/data]].
|- style="vertical-align: top;"
 
  +
* '''2:''' The second parameter is the page or page range (e.g. 42, or 25-27).
{{#if: {{{isbn|}}} | {{!}} '''ISBN''' {{!!}} {{{isbn}}} }}
 
  +
* '''Sub:''' (Optional) In the case of boxed sets which come with multiple books, use this field to identify the title of the book.
|-
 
  +
| colspan="2" align="center" style="font-size:125%;" bgcolor=#cef2e0 | ''Publication Order''
 
  +
==Examples==
|- align=center
 
  +
| valign=top align=center style="font-size:80%;" width=150 | Preceded by<br>{{{previous}}}
 
  +
*{{book|Player's Handbook (3.5)}}
| valign=top align=center style="font-size:80%;" width=150 | Followed by<br>{{{next}}}
 
  +
*{{book|Dungeon Master's Guide (4e)|42}}
|}<noinclude>
 
  +
*{{book|Against the Cult of the Reptile God|12-14}}
<br clear="all">
 
  +
*{{book|From the Ashes|18|sub=Atlas}}
{{documentation}}
 
  +
[[Category:Templates|Book]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 20:35, 26 September 2020

This template makes automatic wikilinks to books. It's primarily useful if you can't remember the year of a product.

To automatically make a <ref> tag, instead use {{cite book}}.

Usage

{{book|Player's Handbook (3.5)}}
{{book|Dungeon Master's Guide (4e)|42}}
{{book|Against the Cult of the Reptile God|12-14}}
{{book|From the Ashes|18|sub=Atlas}}

Parameters

  • 1: The first parameter is the book name. It will automatically form a wikilink if the book is in the site's database. Where names clash, you will have to disambiguate (e.g. Player's Handbook (3.5), not Player's Handbook.) Try searching the list in Module:Book/data.
  • 2: The second parameter is the page or page range (e.g. 42, or 25-27).
  • Sub: (Optional) In the case of boxed sets which come with multiple books, use this field to identify the title of the book.

Examples