Difference between revisions of "Template:Cite book"

From Dungeons and Dragons Wiki
Jump to: navigation, search
m (37 revisions: Importing from Forgotten Realms Wiki)
(37 intermediate revisions by 11 users not shown)
Line 1: Line 1:
<includeonly>{{{author}}} ({{{year}}}). ''{{{title}}}''{{ #if: {{{pages|}}} | , ''p. {{{pages}}}''}}. {{{publisher}}}. ISBN {{{ISBN}}}.</includeonly><noinclude>
+
<includeonly>{{Cite publication
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.
+
| author = {{{author|}}}
 
+
| editor = {{{editor|}}}
==Usage==
+
| title = {{ #if: {{{short_story|}}} | “{{{short_story}}}”  | ''{{{title|}}}'' }}
Below are examples and instructions for using this template.
+
| date = {{ #if: {{{date|}}} | {{{date}}} | {{{year|}}} }}
 
+
| work = {{ #if: {{{short_story|}}} | ''{{{title|}}}'' }}
===When a sub-template exists===
+
| publisher = {{{publisher|}}}
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:
+
| ISBN = {{{ISBN|}}}
<pre><nowiki>{{Cite book/Manual of the Planes}}</nowiki></pre>
+
| pages = {{{pages|}}}
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:
+
}}{{ #if: {{#pos: {{{pages|}}} | ? }} | [[Category:Articles needing page numbers]] }}</includeonly><noinclude>
<pre><nowiki>{{Cite book/Manual of the Planes|50}}
+
{{Documentation}}
{{Cite book/Manual of the Planes|50-51}}</nowiki></pre>
+
[[Category:Sourcebook citation templates|*]]
Use the first where you only want to cite a single page. Use the second where you need to cite several pages at once.
+
[[Category:Novel citation templates|*]]
 
+
</noinclude>
===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.
 
 
 
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 =
 
|title =
 
|year =
 
|publisher =
 
|ISBN =
 
|pages =
 
}}
 
</nowiki></pre>
 
The 'pages' parameter is 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.
 
[[Category:Content templates]]</noinclude>
 

Revision as of 19:15, 23 February 2015

Template documentation (for the above template, sometimes hidden or invisible)

Visit Template:Cite book/doc to edit this text! (How does this work?)