Template:Dnd ref/doc

Description

 * This template will make it easier to add references to Dungeons & Dragons materials.  It has been designed to accept similar parameters to ep ref.  Currently, it works with:
 * D&D Player's Handbook
 * D&D Dungeon Master's Guide
 * D&D Monster Manual

Copy/Paste Code


Parameters

 *  will deactivate the reference tag, meaning that the output will appear wherever it is typed rather than in a footnote.  It will also hide the "See " text and the period, allowing the reference to be used within a sentence.  Any value (including "1" or "true", or even "0" or "false") will deactivate the reference tag.  and  will be ignored, but all other parameters will still function.
 * may be useful when including a reference inside another reference, such as in the section of an ep ref.
 * ' and ' (optional) both function as their respective attributes in the &lt;ref&gt; tag.
 * Use quotation marks around the REFGROUP or REFNAME in the template, just like you would for a normal &lt;ref&gt; tag.
 * To invoke a named reference, just use the name (and its corresponding group, if applicable):
 * If you do not supply, then a reference name will be automatically generated in the format name="--"
 * Thus, you can simply copy/paste the same reference to other places where you want the citation to appear, and the template will automatically combine them into the same reference in the references section of the article.
 * Grouped references are considered completely separate from other groups of references. Therefore, if you are invoking a named reference that belongs to a group, then you must also include that same group in the invocation.  In other words, the following two references are completely separate from each other, even though they have the same name:
 *  is any text you want to include before the episode reference. Wikimarkup is allowed.
 * SOURCE is the first unnamed parameter, which must be the D&D source material.  Select one of the materials below by using one of the codes (case insensitive):
 * D&D Player's Handbook:  ph|phb|player|players handbook|player's handbook|handbook
 * D&D Dungeon Master's Guide:  dm|dmg|dungeon|dungeon master|master|dungeon master guide|dungeon masters guide|dungeon master's guide|guide
 * D&D Monster Manual:  mm|monster|monster manual|manual
 * If SOURCE is left blank, then the containing page will be added to [[:Category:D&D refs with missing titles ]].
 * PAGE1 and PAGE2 are page numbers for the content being referenced.  They are unnamed parameters, meaning you don't type them after a parameter name and equals sign.
 * If PAGE2 is included, then the pages are treated as a page range.
 *  causes the cite tag to appear immediately after the period for the main sentence.  Entering any value (such as "1" or "true", or even "0" or "false") will cause the citation tag to be applied.
 *  is any additional text that should be appended to the citation.

Sample Output

 * 
 * produces this citation:


 * 
 * produces this citation:

Ref Group "sample":