Difference between revisions of "Template:Cite book"

From Dungeons and Dragons Wiki
Jump to: navigation, search
m (cleanup)
Line 1: Line 1:
<includeonly>{{{author}}}{{ #if: {{{year|}}} | &nbsp;({{{year}}}) }}. ''{{{title}}}''{{ #if: {{{pages|}}} | , ''p. {{{pages}}}''}}. {{{publisher}}}.{{ #if: {{{ISBN|}}} | &nbsp;ISBN {{{ISBN}}}. }}</includeonly><noinclude>
+
<includeonly>{{{author}}}{{ #if: {{{year|}}} | &nbsp;({{{year}}}) }}. ''{{{title}}}''{{ #if: {{{pages|}}} | , ''p. {{{pages}}}''}}. {{{publisher}}}.{{ #if: {{{ISBN|}}} | &nbsp;ISBN {{{ISBN}}}. }}</includeonly>
 +
<noinclude>
 
This template is for use when citing ''Forgotten Realms'' or ''Dungeons & Dragons'' books. It is based on the [[Wikipedia:Template:Cite book|Wikipedia cite book]] template. Use this template when you want to cite an article. It has many sub-templates which can be used to easily cite certain existing ''Forgotten Realms'' or ''Dungeons & Dragons'' books. If no sub-template exists for the book that you wish to cite, you can still use this template manually.
 
This template is for use when citing ''Forgotten Realms'' or ''Dungeons & Dragons'' books. It is based on the [[Wikipedia:Template:Cite book|Wikipedia cite book]] template. Use this template when you want to cite an article. It has many sub-templates which can be used to easily cite certain existing ''Forgotten Realms'' or ''Dungeons & Dragons'' books. If no sub-template exists for the book that you wish to cite, you can still use this template manually.
  
==Usage==
+
== Usage ==
 
Below are examples and instructions for using this template.
 
Below are examples and instructions for using this template.
  
===When a sub-template exists===
+
=== When a sub-template exists ===
If there is already a sub-template for the book you want to cite, it will be under this template, separated by a forward slash character. For example, the sub-template for [[Manual of the Planes]] is accessed using:
+
If there is already a sub-template for the book you want to cite, it will be under this template, separated by a forward slash character. For example, the sub-template for ''[[The Elves of Evermeet]]'' is accessed using:
<pre><nowiki>{{Cite book/Manual of the Planes}}</nowiki></pre>
+
 
Note the capitalisation of the words in the template name. Putting this template on the page will automatically include all the citation details you need for this book. You can also cite certain pages from a book as follows:
+
<pre><nowiki>
<pre><nowiki>{{Cite book/Manual of the Planes|50}}
+
{{Cite book/The Elves of Evermeet}}
{{Cite book/Manual of the Planes|50-51}}</nowiki></pre>
+
</nowiki></pre>
 +
 
 +
Note the capitalization of the words in the template name. Putting this template on the page will automatically include all the citation details you need for this book. You can also cite certain pages from a book as follows:
 +
 
 +
<pre><nowiki>
 +
{{Cite book/The Elves of Evermeet|50}}
 +
{{Cite book/The Elves of Evermeet|50-51}}
 +
</nowiki></pre>
 +
 
 
Use the first where you only want to cite a single page. Use the second where you need to cite several pages at once.
 
Use the first where you only want to cite a single page. Use the second where you need to cite several pages at once.
  
===When no sub-template exists===
+
=== When no sub-template exists ===
The best option here is to create the sub-template. Just copy an existing sub-template, such as [[Template:Cite book/Manual of the Planes]] and change the details. A great place to gain the details for any ''Forgotten Realms'' or ''Dungeons & Dragons'' book is on the [http://www.wizards.com/ Wizards of the Coast] site, where you can usually just search for the book's title.
+
The best option here is to create the sub-template. Just copy an existing sub-template, such as [[Template:Cite book/The Elves of Evermeet]] and change the details. A great place to gain the details for any ''Forgotten Realms'' or ''Dungeons & Dragons'' book is on the [http://www.wizards.com/ Wizards of the Coast] site, where you can usually just search for the book's title.
  
 
If you cannot create the sub-template for any reason, or it would not be worthwhile (usually because your book is unlikely to be cited again), you can use this template directly as follows:
 
If you cannot create the sub-template for any reason, or it would not be worthwhile (usually because your book is unlikely to be cited again), you can use this template directly as follows:
<pre><nowiki>{{Cite book
+
 
|author =
+
<pre><nowiki>
|title =
+
{{Cite book
|year =
+
| author   =  
|publisher =
+
| title     =  
|ISBN =
+
| year     =  
|pages =
+
| publisher =  
 +
| ISBN     =  
 +
| {{ #if: {{{1|}}} | pages = {{{1}}} }}
 
}}
 
}}
 
</nowiki></pre>
 
</nowiki></pre>
 +
 
The 'pages', 'year' and 'ISBN' parameters are optional. All other parameters are required and cannot be left out. You can include wiki links in the 'author', 'title' and 'publisher' parameters where appropriate.
 
The 'pages', 'year' and 'ISBN' parameters are optional. All other parameters are required and cannot be left out. You can include wiki links in the 'author', 'title' and 'publisher' parameters where appropriate.
  
===When citing a source multiple times===
+
=== When citing a source multiple times ===
 
Put the actual reference where you want the <sup>[1]</sup> to appear on the page, like this (in my example I'm citing page 54):
 
Put the actual reference where you want the <sup>[1]</sup> to appear on the page, like this (in my example I'm citing page 54):
<pre><nowiki><ref>{{Cite book/Volo's Guide to the North|54}}</ref></nowiki></pre>
+
 
 +
<pre><nowiki>
 +
<ref>{{Cite book/The Elves of Evermeet|54}}</ref>
 +
</nowiki></pre>
 +
 
 
Then, if you want to cite page 55 later in the article, again, put this where you want the <sup>[2]</sup> to appear (note the different page number):
 
Then, if you want to cite page 55 later in the article, again, put this where you want the <sup>[2]</sup> to appear (note the different page number):
<pre><nowiki><ref>{{Cite book/Volo's Guide to the North|55}}</ref></nowiki></pre>
+
 
 +
<pre><nowiki>
 +
<ref>{{Cite book/The Elves of Evermeet|55}}</ref>
 +
</nowiki></pre>
 +
 
 
Then finally, at the end of the article, create a notes section that will automatically generate your references, like this:
 
Then finally, at the end of the article, create a notes section that will automatically generate your references, like this:
<pre><nowiki>==Notes==
+
<pre><nowiki>
<references /></nowiki></pre>
+
== Notes ==
 +
<references />
 +
</nowiki></pre>
 +
 
 
If you want to use the same citation in different places in the same article, you'll need to give it a name the first time you use it, like this:
 
If you want to use the same citation in different places in the same article, you'll need to give it a name the first time you use it, like this:
<pre><nowiki><ref name="MyRef1">{{Cite book/Volo's Guide to the North|16}}</ref></nowiki></pre>
+
 
 +
<pre><nowiki>
 +
<ref name="EoEp16">{{Cite book/The Elves of Evermeet|16}}</ref>
 +
</nowiki></pre>
 +
 
 
Then, every time you want to use it again in the same article (you can use it again as many times as you like) you would put this:
 
Then, every time you want to use it again in the same article (you can use it again as many times as you like) you would put this:
<pre><nowiki><ref name="MyRef1" /></nowiki></pre>
+
 
 +
<pre><nowiki>
 +
<ref name="EoEp16" />
 +
</nowiki></pre>
 +
 
 
If you need to see a working example, please edit the [[Cormanthor]] page and see the wiki markup [[User:Fw190a8|Fw190a8]] used there.
 
If you need to see a working example, please edit the [[Cormanthor]] page and see the wiki markup [[User:Fw190a8|Fw190a8]] used there.
  
 
[[Category:Content templates]]</noinclude>
 
[[Category:Content templates]]</noinclude>

Revision as of 01:34, 1 April 2007


This template is for use when citing Forgotten Realms or Dungeons & Dragons books. It is based on the Wikipedia cite book template. Use this template when you want to cite an article. It has many sub-templates which can be used to easily cite certain existing Forgotten Realms or Dungeons & Dragons books. If no sub-template exists for the book that you wish to cite, you can still use this template manually.

Usage

Below are examples and instructions for using this template.

When a sub-template exists

If there is already a sub-template for the book you want to cite, it will be under this template, separated by a forward slash character. For example, the sub-template for The Elves of Evermeet is accessed using:

{{Cite book/The Elves of Evermeet}}

Note the capitalization of the words in the template name. Putting this template on the page will automatically include all the citation details you need for this book. You can also cite certain pages from a book as follows:

{{Cite book/The Elves of Evermeet|50}}
{{Cite book/The Elves of Evermeet|50-51}}

Use the first where you only want to cite a single page. Use the second where you need to cite several pages at once.

When no sub-template exists

The best option here is to create the sub-template. Just copy an existing sub-template, such as Template:Cite book/The Elves of Evermeet and change the details. A great place to gain the details for any Forgotten Realms or Dungeons & Dragons book is on the Wizards of the Coast site, where you can usually just search for the book's title.

If you cannot create the sub-template for any reason, or it would not be worthwhile (usually because your book is unlikely to be cited again), you can use this template directly as follows:

{{Cite book
| author    = 
| title     = 
| year      = 
| publisher = 
| ISBN      = 
| {{ #if: {{{1|}}} | pages = {{{1}}} }}
}}

The 'pages', 'year' and 'ISBN' parameters are optional. All other parameters are required and cannot be left out. You can include wiki links in the 'author', 'title' and 'publisher' parameters where appropriate.

When citing a source multiple times

Put the actual reference where you want the [1] to appear on the page, like this (in my example I'm citing page 54):

<ref>{{Cite book/The Elves of Evermeet|54}}</ref>

Then, if you want to cite page 55 later in the article, again, put this where you want the [2] to appear (note the different page number):

<ref>{{Cite book/The Elves of Evermeet|55}}</ref>

Then finally, at the end of the article, create a notes section that will automatically generate your references, like this:

== Notes ==
<references />

If you want to use the same citation in different places in the same article, you'll need to give it a name the first time you use it, like this:

<ref name="EoEp16">{{Cite book/The Elves of Evermeet|16}}</ref>

Then, every time you want to use it again in the same article (you can use it again as many times as you like) you would put this:

<ref name="EoEp16" />

If you need to see a working example, please edit the Cormanthor page and see the wiki markup Fw190a8 used there.