Template:R

Template to insert references in an easy way.

Usage
The code is, where "book" is an identifier of the book (see complete list here) and "chapter" is the chapter number. Examples:
 * gives
 * gives
 * gives

Note that it automatically contracts multiple references to the same chapter / book to the same ref number.

{{#tag:ref|{{#ifeq:{{{1|}}}|hc |Information from [{{R/hc|{{{2|}}}}} HarperCollins.com] |Revealed {{#if:{{{3|}}} |to be {{{3|}}}| }} {{#if:{{{2|}}}| {{#ifeq:{{r/input|{{{1|}}}}} |no |to be {{{2|}}}| }}|}} {{#switch:{{{1|}}} |fb=on [{{R/fb|{{{2|}}}}} {{{author|Vicky}}}'s facebook chapter] |blog=on [{{R/blog|{{{2|}}}}} Kate's official blog] |cover=on the cover of {{BASEPAGENAME}} |ded=on the dedication chapter of {{BASEPAGENAME}} |rflap=on the inside right flap of {{BASEPAGENAME}} |lflap=on the inside left flap of {{BASEPAGENAME}} |lflap=on the inside left flap of {{BASEPAGENAME}} |site=on the official Warriors site |{{#switch:{{{2|}}} |a=in {{r/b|{{{1|}}}}}, {{r/a|{{{1|}}}}} |tp=in the title pages of {{r/b|{{{1|}}}}} |cover=on the cover of {{r/b|{{{1|}}}}} |bcover=on the back cover of {{r/b|{{{1|}}}}} |ded=on the dedication chappter of {{r/b|{{{1|}}}}} |rflap=on the inside right flap of {{r/b|{{{1|}}}}} |lflap=on the inside left flap of {{r/b|{{{1|}}}}} |in {{r/b|{{{1|}}}}}{{#if:{{{2|}}}|, {{#if:{{#pos:{{{Epilogue|}}}|-}} |pages {{{Epilogue|}}} |{{#if:{{#pos:{{{2|}}}|-}} |pages {{{2|}}} |{{#if:{{#pos:{{{2|}}}|chapter}} |{{{2|}}}     |{{#if:{{#pos:{{{2|}}}|chapters}} |{{{2|}}}     |chapter {{{2|}}} }} }} }} }} }} }} }}
 * name={{{1|}}}{{{2|}}}{{{3|}}} }}