Difference between revisions of "Template:Book ref"

Jump to navigation Jump to search
m
Add preface to part parameter
m (add {{ref|b|part|x}} support back in)
m (Add preface to part parameter)
(18 intermediate revisions by 5 users not shown)
-->{{#if:{{b|{{{1}}}|missing-err=}}|<!--
 
-->{{{pre|}}}<!-- -->{{#if:{{{pre|}}}|{{ref/uses-pre}}|}}<!--
 
-->[[<!--
-->{{#if:{{{part|}}}<!--
-->|{{#switch:{{lc:{{{part|}}}|}}<!--
-->|prelude=Summary: The StormlightWay Archiveof Kings#Prelude<!--
-->|arsbastille's letter=ArsSummary: ArcanumThe Dark Talent#{{b|{{{1}}}|}}Bastille's Letter<!--
-->|ackars=AcknowledgementsArs Arcanum#{{b|{{{1}}}|text=y}}<!--
-->|postscriptack=Summary: Acknowledgements#{{b|{{{1}}}|text=y}}#Postscript<!--
-->|postscript=Summary: {{b|{{{1}}}|text=y}}#Postscript<!--
-->|preface=Summary: {{b|{{{1}}}|text=y}}#Preface<!--
-->|{{#if:{{{part|}}}|{{ref/broken|book ref/part}} {{{part}}}|<!-- -->}}<!--
-->}}<!--
-->|<!--
-->Summary: {{b|{{{1}}}|text=y|missing-err=}}#<!--
-->{{#if:{{#pos:{{{1|}}}|do}}|{{Dark One lookup|{{{1}}}|{{{2}}}|{{{3}}}}}|<!--
-->{{#if:{{{2|}}}<!--
-->|<!--
-->|epilogue=Epilogue<!--
-->|endnote=Endnote<!--
-->|part=Part_{{{23}}}<!--
-->|i|interlude=Interlude_I-{{{3}}}<!--
-->|c=Chapter_{{{3}}}<!--
-->|Chapter_{{{2}}}<!--
-->}}<!--
-->|c=Chapter_{{{3}}}<!--
-->}}<!--
-->}}<!--
LINK TEXT
-->{{#if:{{{part|}}}<!--
-->|{{ref/uses-part}}{{#switch:{{lc:{{{part}}}|}}<!--
-->|prelude=Prelude to the ''Stormlight Archive''<!--
-->|arsbastille's letter=Bastille''{{b|{{{1}}}|}}s Letter from ''Alcatraz ArsVersus Arcanumthe Dark Talent''<!--
-->|ackars=Acknowledgement for ''{{b|{{{1}}}|text=y}}'' Ars Arcanum<!--
-->|postscriptack=Acknowledgements for ''{{b|{{{1}}}|}}'' postscript<!--
-->|postscript=''{{b|{{{1}}}|text=y}}'' postscript<!--
-->|preface=''{{b|{{{1}}}|text=y}}'' preface<!--
-->}}<!--
-->|''{{b|{{{1}}}|text=y|missing-err=}}''<!--
-->{{#if:{{#pos:{{{1|}}}|do}}|, {{lcfirst:{{Dark One lookup|{{{1}}}|{{{2}}}|{{{3}}}}}}}|<!--
-->{{#if:{{{2|}}}<!--
-->|&#32;<!--
-->|epilogue=epilogue<!--
-->|endnote=endnote<!--
-->|part=part {{{23}}}<!--
-->|i|interlude=interlude I-{{{3}}}<!--
-->|c={{book ref/c}}chapter {{{3}}}<!--
-->|chapter {{{2}}}<!--
-->}}<!--
-->|{{book ref/chapterless}}<!--
-->}}<!--
-->}}<!--
-->]]<!--
 
-->{{{post|}}}<!-- -->{{#if:{{{post|}}}|{{ref/uses-post}}|}}<!--
 
--><small> <sub>[[{{tracking link|<!--
-->{{#if:{{{part|}}}<!--
-->|{{#switch:{{lc:{{{part|}}}|}}<!--
-->|prelude=Summary: The Stormlight Archive/Prelude<!--
-->|bastille's letter=Summary: The Dark Talent/Bastille's Letter<!--
-->|ars=Summary: {{b|{{{1}}}|}}/Ars Arcanum<!--
-->|ack=Summary: {{b|{{{1}}}|}}/Acknowledgements<!--
-->|postscript=Summary: {{b|{{{1}}}|}}/Postscript<!--
-->|preface=Summary: {{b|{{{1}}}|}}/Preface<!--
-->}}<!--
-->|<!--
-->Summary: {{b|{{{1}}}|text=y|}}/<!--
-->{{#if:{{{2|}}}<!--
-->|/<!--
-->{{#switch:{{lc:{{{2}}}|}}<!--
-->|prologue=Prologue<!--
-->|epilogue=Epilogue<!--
-->|endnote=Endnote<!--
-->|part=Part_{{{23}}}<!--
-->|i|interlude=Interlude_I-{{{3}}}<!--
-->|c=Chapter_{{{3}}}<!--
-->|Chapter_{{{2}}}<!--
-->}}<!--
-->|/CHAPTERLESS<!-- see [[category: chapterless references]]
-->}}<!--
-->}}<!--
-->|#]]}}</sub></small><!--
 
-->|{{ref/broken|b/missing}} {{{1}}}<!--
 
errors
-->{{#switch:{{lc:b|{{{1}}}|missing-err=}}<!--
these should all be using a specialised template:
-->|msh={{b/msh}}<!-- since {{msh ref}}
-->|tesMistborn: Secret History={{b/tesmsh}}<!-- since {{tesmsh ref}}
-->|auThe Emperor's Soul={{b/autes}}<!-- since {{autes ref}}
-->|a1Arcanum Unbounded={{b/a1au}}<!-- becausesince it{{au looks nastyref}}
-->}}<!--
-->{{#switch:{{lc:{{{2}}}|}}<!--
these parameters are depreciated
-->|c=[[category: redundant specifier in book ref template]]<!-- {{book ref|-|c|0}} is redundant
-->|e=[[category: epigraph ref using book ref template]]<!-- since {{epigraph ref}}
-->|part=[[category: ref to book part]]<!-- {{book ref|-|part|x}}
-->}}<!--
someone has forgotten to add the chapter to this reference
-->{{#if:{{{2|{{{part|}}}{{b/chapterless|{{{1}}}|}}|}}}|<!-- -->|[[category: chapterless references]]}}<!--
 
--></includeonly><noinclude>
 
To use, include {{t|book ref|book|chapter}}
* theReplace <code>book</code> with the isappropriate expandedcode byfrom {{t|b}}
* the <code>chapter</code> should either be the chapter number, <code>prologue</code>, epilogue or the chapter number<code>epilogue</code>
* When referencing chapters which have names in place of numbers, such as several chapters in the [[Alcatraz Versus the Evil Librarians (series)|Alcatraz]] books, use the name of the chapter in place of a number. For example: {{t|book ref|a5|mary}}
* if the second argument is `i` or `interlude` type the third argument is used as the interlude number
* When referring to interludes, replace <code>chapter</code> with <code>i|number</code>, where the latter is the interlude number
* For parts that aren't any of the above, replace <code>chapter</code> with <code>part=name</code>; for example, <code>part=ars</code> for Ars Arcanum (don't use this for parts that are comprised of multiple chapters, like in ''[[The Stormlight Archive]]'' books; always reference a specific chapter, or put {{t|cite}} if you can't find it)
* {{{pre}}} is included before the link
* {{{post}}} is included after the link
* [[Khriss]]' articles in ''Arcanum Unbounded'' use {{t|au ref|system name}} because they're not chapters
 
[[Categorycategory: Sourcessources]]
[[Categorycategory: Referencereference templates]]
 
== Articles using Template ==
{{for|Special:WhatLinksHere/{{FULLPAGENAME}}|a full listing|here|pre=This list is limited to 100 pages}}
{{Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=0|limit=100}}

Navigation menu