Difference between revisions of "Template:Book ref"

Jump to navigation Jump to search
4,667 bytes added ,  10 months ago
m
no edit summary
(try)
m
 
(45 intermediate revisions by 5 users not shown)
-->|<!--
 
-->{{#if:{{b|{{{1}}}|}}|<!missing-- -->|{{ref/broken|b/missingerr=}}|}}<!--
 
-->{{{pre|}}}<!-- -->{{#if:{{{pre|}}}|{{ref/uses-pre}}|}}<!--
 
-->[[<!--
-->{{#if:{{{part|}}}<!--
-->|{{#switch:{{lc:{{{part|}}}|}}<!--
-->|prelude=Summary: The StormlightWay Archive/Summaryof Kings#Prelude<!--
-->|arsbastille's letter=ArsSummary: ArcanumThe Dark Talent#{{b|{{{1}}}|}}Bastille's Letter<!--
-->|royal epilogue=Summary:The Knights of Crystallia#Royal Epilogue (Not a Chapter)<!--
-->|ack=Acknowledgements#{{b|{{{1}}}|}}<!--
-->|anotherepilogue=Summary:Yumi and the Nightmare Painter#Another Epilogue<!--
-->|{{#if:{{{part|}}}|{{book ref/part}}|<!-- -->}}<!--
-->|ars=Ars Arcanum#{{b|{{{1}}}|text=y}}<!--
-->|ack=Acknowledgements#{{b|{{{1}}}|text=y}}<!--
-->|<!--
-->|postscript=Summary: {{b|{{{1}}}|text=y}}#Postscript<!--
-->|preface=Summary: {{#if:b|{{{2|1}}}|text=y}}#Preface<!--
-->|/Summary#{{#switchif:{{lc:{part|}}}|{{2ref/broken|book ref/part}} {{{part}}}|<!-- -->}}<!--
-->|prologue=Prologue}}<!--
-->|epilogue=Epilogue<!--
-->Summary: {{b|endnote{{{1}}}|text=y|missing-err=Endnote}}#<!--
-->{{#if:{{#pos:{{{1|}}}|do}}|{{Dark One lookup|{{{1}}}|{{{2}}}|{{{3}}}}}|<!--
-->|i|interlude=Interlude_I-{{{3}}}<!--
-->|day=Day_{{#if:{3{{2|}}}<!--
-->|c=Chapter_{{{3}}}<!--
-->|Chapter_{{#switch:{{lc:{{{2}}}|}}<!--
-->}}|prologue=Prologue<!--
-->|epilogue=Epilogue{{#if:{{{3|}}}|_{{{3}}}}}<!--
-->|endnote=Endnote<!--
-->|part=Part_{{{3}}}<!--
-->|i|interlude=Interlude_I-{{{3}}}<!--
-->|Chapter_{{{2}}}<!--
-->}}<!--
-->}}<!--
-->}}<!--
-->}}<!--
 
-->|<!--
 
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 ''The ArsDark ArcanumTalent''<!--
-->|royal epilogue=''The Knights of Crystallia'' Royal Epilogue (Not a Chapter)<!--
-->|ack=Acknowledgement for ''{{b|{{{1}}}|}}''<!--
-->|anotherepilogue=''Yumi and the Nightmare Painter'' Another Epilogue<!--
-->|ars=''{{b|{{{1}}}|text=y}}'' Ars Arcanum<!--
-->|ack=Acknowledgements for ''{{b|{{{1}}}|}}''<!--
-->|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;<!--
-->{{#switch:{{lc:{{{2}}}|}}<!--
-->|prologue=prologue<!--
-->|epilogue=epilogue{{#if:{{{3|}}}|&#32;{{{3}}}}}<!--
-->|endnote=endnote<!--
-->|part=part {{{3}}}<!--
-->|i|interlude=interlude I-{{{3}}}<!--
-->|chapter {{{2}}}<!--
-->}}<!--
-->}}<!--
-->}}<!--
-->}}<!--
-->|''{{b|{{{1}}}|}}''{{#if:{{{2|}}}|&nbsp;{{#switch:{{lc:{{{2}}}|}}<!--
-->|prologue=prologue<!--
-->|epilogue=epilogue<!--
-->|endnote=endnote<!--
-->|i|interlude=interlude I-{{{3}}}<!--
-->|day=- Day {{{3}}}<!--
-->|c={{book ref/c}}chapter {{{2}}}<!--
-->|chapter {{{2}}}<!--
-->}}|}}|}}<!--
 
-->]]<!--
 
-->{{{post|}}}<!-- -->{{#if:{{{post|}}}|{{ref/uses-post}}|}}<!--
 
-->{{tracking link|<!--
-->{{#if:{{{part|}}}<!--
-->|{{#switch:{{lc:{{{part|}}}|}}<!--
-->|prelude=Summary: The Stormlight Archive/Prelude<!--
-->|bastille's letter=Summary: The Dark Talent/Bastille's Letter<!--
-->|royal epilogue=Summary:The Knights of Crystallia/Royal Epilogue (Not a Chapter)<!--
-->|anotherepilogue=Summary:Yumi and the Nightmare Painter/Another Epilogue<!--
-->|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{{#if:{{{3|}}}|_{{{3}}}}}<!--
-->|endnote=Endnote<!--
-->|part=Part_{{{3}}}<!--
-->|i|interlude=Interlude_I-{{{3}}}<!--
-->|Chapter_{{{2}}}<!--
-->}}<!--
-->|/CHAPTERLESS<!-- see [[category: chapterless references]]
-->}}<!--
-->}}<!--
-->}}<!-- /TRACKING
 
-->|{{ref/broken|b/missing}} {{{1}}}<!--
-->}}<!--
 
NAME
-->|name={{{name|{{b|{{{1}}}|}}-{{{part|{{{2}}}-{{{3|chapter}}}|}}}|}}}<!--
 
GROUP
 
-->}}<!--
 
errors
-->{{#switch:{{b|{{{1}}}|missing-err=}}<!--
these should all be using a specialised template:
-->|Mistborn: Secret History={{b/msh}}<!-- since {{msh ref}}
-->|The Emperor's Soul={{b/tes}}<!-- since {{tes ref}}
-->|Arcanum Unbounded={{b/au}}<!-- since {{au ref}}
-->}}<!--
-->{{#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]]}}<!--
White Sand check that chapters are still same in omnibus
-->{{#ifeq:{{{review|}}}|yes|[[category: review ws 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 a chapter type the third argument is used as the chapter 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
* {{{group}}} sets the reference group
 
The following books have specific templates for referencing use:
Chapter types include interlude, day...
* ''Mistborn: Secret History'' uses {{t|msh ref|part|chapter}} as the chapters start at 1 in each part
* ''The Emperor's Soul'' uses {{t|tes ref|day number}} as the chapters are numbered differently
* [[Khriss]]' articles in ''Arcanum Unbounded'' use {{t|au ref|system name}} because they're not chapters
* [[Dark One]] uses this template in combination with {{t|Dark One lookup}} to show the chapter title in the reference
 
[[category: reference templates]]
 
== Articles using Template ==
[[Category: Sources]]
{{for|Special:WhatLinksHere/{{FULLPAGENAME}}|a full listing|here|pre=This list is limited to 100 pages}}
[[Category: Reference templates]]
{{Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=0|limit=100}}
Editors, Keepers
4,418

edits

Navigation menu