Difference between revisions of "Template:Book ref"

From The Coppermind
Jump to navigation Jump to search
m (+ <sub>#</sub> links for tracking)
m (Add preface to part parameter)
(21 intermediate revisions by 5 users not shown)
Line 6: Line 6:
 
-->{{#if:{{b|{{{1}}}|missing-err=}}|<!--
 
-->{{#if:{{b|{{{1}}}|missing-err=}}|<!--
   
-->{{{pre|}}}<!--
+
-->{{{pre|}}}<!-- -->{{#if:{{{pre|}}}|{{ref/uses-pre}}|}}<!--
   
 
-->[[<!--
 
-->[[<!--
Line 13: Line 13:
 
-->{{#if:{{{part|}}}<!--
 
-->{{#if:{{{part|}}}<!--
 
-->|{{#switch:{{lc:{{{part|}}}|}}<!--
 
-->|{{#switch:{{lc:{{{part|}}}|}}<!--
-->|prelude=Summary: The Stormlight Archive#Prelude<!--
+
-->|prelude=Summary: The Way of Kings#Prelude<!--
-->|ars=Ars Arcanum#{{b|{{{1}}}|}}<!--
+
-->|bastille's letter=Summary: The Dark Talent#Bastille's Letter<!--
-->|ack=Acknowledgements#{{b|{{{1}}}|}}<!--
+
-->|ars=Ars Arcanum#{{b|{{{1}}}|text=y}}<!--
-->|postscript=Summary: {{b|{{{1}}}|}}#Postscript<!--
+
-->|ack=Acknowledgements#{{b|{{{1}}}|text=y}}<!--
  +
-->|postscript=Summary: {{b|{{{1}}}|text=y}}#Postscript<!--
  +
-->|preface=Summary: {{b|{{{1}}}|text=y}}#Preface<!--
 
-->|{{#if:{{{part|}}}|{{ref/broken|book ref/part}} {{{part}}}|<!-- -->}}<!--
 
-->|{{#if:{{{part|}}}|{{ref/broken|book ref/part}} {{{part}}}|<!-- -->}}<!--
 
-->}}<!--
 
-->}}<!--
 
-->|<!--
 
-->|<!--
-->Summary: {{b|{{{1}}}|missing-err=}}#<!--
+
-->Summary: {{b|{{{1}}}|text=y|missing-err=}}#<!--
  +
-->{{#if:{{#pos:{{{1|}}}|do}}|{{Dark One lookup|{{{1}}}|{{{2}}}|{{{3}}}}}|<!--
 
-->{{#if:{{{2|}}}<!--
 
-->{{#if:{{{2|}}}<!--
 
-->|<!--
 
-->|<!--
Line 27: Line 30:
 
-->|epilogue=Epilogue<!--
 
-->|epilogue=Epilogue<!--
 
-->|endnote=Endnote<!--
 
-->|endnote=Endnote<!--
 
-->|part=Part_{{{3}}}<!--
 
-->|i|interlude=Interlude_I-{{{3}}}<!--
 
-->|i|interlude=Interlude_I-{{{3}}}<!--
-->|c=Chapter_{{{3}}}<!--
 
 
-->|Chapter_{{{2}}}<!--
 
-->|Chapter_{{{2}}}<!--
 
-->}}<!--
 
-->}}<!--
 
-->}}<!--
 
-->}}<!--
 
-->}}<!--
 
-->}}<!--
 
-->}}<!--
Line 38: Line 42:
 
LINK TEXT
 
LINK TEXT
 
-->{{#if:{{{part|}}}<!--
 
-->{{#if:{{{part|}}}<!--
-->|{{#switch:{{lc:{{{part}}}|}}<!--
+
-->|{{ref/uses-part}}{{#switch:{{lc:{{{part}}}|}}<!--
 
-->|prelude=Prelude to the ''Stormlight Archive''<!--
 
-->|prelude=Prelude to the ''Stormlight Archive''<!--
-->|ars=''{{b|{{{1}}}|}}'' Ars Arcanum<!--
+
-->|bastille's letter=Bastille's Letter from ''Alcatraz Versus the Dark Talent''<!--
-->|ack=Acknowledgement for ''{{b|{{{1}}}|}}''<!--
+
-->|ars=''{{b|{{{1}}}|text=y}}'' Ars Arcanum<!--
-->|postscript=''{{b|{{{1}}}|}}'' postscript<!--
+
-->|ack=Acknowledgements for ''{{b|{{{1}}}|}}''<!--
  +
-->|postscript=''{{b|{{{1}}}|text=y}}'' postscript<!--
  +
-->|preface=''{{b|{{{1}}}|text=y}}'' preface<!--
 
-->}}<!--
 
-->}}<!--
-->|''{{b|{{{1}}}|missing-err=}}''<!--
+
-->|''{{b|{{{1}}}|text=y|missing-err=}}''<!--
  +
-->{{#if:{{#pos:{{{1|}}}|do}}|, {{lcfirst:{{Dark One lookup|{{{1}}}|{{{2}}}|{{{3}}}}}}}|<!--
 
-->{{#if:{{{2|}}}<!--
 
-->{{#if:{{{2|}}}<!--
 
-->|&#32;<!--
 
-->|&#32;<!--
Line 51: Line 58:
 
-->|epilogue=epilogue<!--
 
-->|epilogue=epilogue<!--
 
-->|endnote=endnote<!--
 
-->|endnote=endnote<!--
 
-->|part=part {{{3}}}<!--
 
-->|i|interlude=interlude I-{{{3}}}<!--
 
-->|i|interlude=interlude I-{{{3}}}<!--
-->|c={{book ref/c}}chapter {{{3}}}<!--
 
 
-->|chapter {{{2}}}<!--
 
-->|chapter {{{2}}}<!--
 
-->}}<!--
 
-->}}<!--
-->|{{book ref/chapterless}}<!--
+
-->}}<!--
 
-->}}<!--
 
-->}}<!--
 
-->}}<!--
 
-->}}<!--
Line 61: Line 68:
 
-->]]<!--
 
-->]]<!--
   
-->{{{post|}}}<!--
+
-->{{{post|}}}<!-- -->{{#if:{{{post|}}}|{{ref/uses-post}}|}}<!--
   
--><small> <sub>[[<!--
+
--><small> <sub>{{tracking link|<!--
 
-->{{#if:{{{part|}}}<!--
 
-->{{#if:{{{part|}}}<!--
 
-->|{{#switch:{{lc:{{{part|}}}|}}<!--
 
-->|{{#switch:{{lc:{{{part|}}}|}}<!--
 
-->|prelude=Summary: The Stormlight Archive/Prelude<!--
 
-->|prelude=Summary: The Stormlight Archive/Prelude<!--
  +
-->|bastille's letter=Summary: The Dark Talent/Bastille's Letter<!--
 
-->|ars=Summary: {{b|{{{1}}}|}}/Ars Arcanum<!--
 
-->|ars=Summary: {{b|{{{1}}}|}}/Ars Arcanum<!--
 
-->|ack=Summary: {{b|{{{1}}}|}}/Acknowledgements<!--
 
-->|ack=Summary: {{b|{{{1}}}|}}/Acknowledgements<!--
 
-->|postscript=Summary: {{b|{{{1}}}|}}/Postscript<!--
 
-->|postscript=Summary: {{b|{{{1}}}|}}/Postscript<!--
-->|{{#if:{{{part|}}}|{{ref/broken|book ref/part}} {{{part}}}|<!-- -->}}<!--
+
-->|preface=Summary: {{b|{{{1}}}|}}/Preface<!--
 
-->}}<!--
 
-->}}<!--
 
-->|<!--
 
-->|<!--
-->Summary: {{b|{{{1}}}|missing-err=}}/<!--
+
-->Summary: {{b|{{{1}}}|text=y|}}<!--
 
-->{{#if:{{{2|}}}<!--
 
-->{{#if:{{{2|}}}<!--
-->|<!--
+
-->|/<!--
 
-->{{#switch:{{lc:{{{2}}}|}}<!--
 
-->{{#switch:{{lc:{{{2}}}|}}<!--
 
-->|prologue=Prologue<!--
 
-->|prologue=Prologue<!--
 
-->|epilogue=Epilogue<!--
 
-->|epilogue=Epilogue<!--
 
-->|endnote=Endnote<!--
 
-->|endnote=Endnote<!--
  +
-->|part=Part_{{{3}}}<!--
 
-->|i|interlude=Interlude_I-{{{3}}}<!--
 
-->|i|interlude=Interlude_I-{{{3}}}<!--
-->|c=Chapter_{{{3}}}<!--
 
 
-->|Chapter_{{{2}}}<!--
 
-->|Chapter_{{{2}}}<!--
 
-->}}<!--
 
-->}}<!--
  +
-->|/CHAPTERLESS<!-- see [[category: chapterless references]]
 
-->}}<!--
 
-->}}<!--
 
-->}}<!--
 
-->}}<!--
-->|#]]</sub></small><!--
+
-->}}</sub></small><!--
   
 
-->|{{ref/broken|b/missing}} {{{1}}}<!--
 
-->|{{ref/broken|b/missing}} {{{1}}}<!--
Line 100: Line 109:
   
 
errors
 
errors
-->{{#switch:{{lc:{{{1}}}|}}<!--
+
-->{{#switch:{{b|{{{1}}}|missing-err=}}<!--
  +
these should all be using a specialised template:
-->|msh={{b/msh}}<!-- since {{msh ref}}
 
-->|tes={{b/tes}}<!-- since {{tes ref}}
+
-->|Mistborn: Secret History={{b/msh}}<!-- since {{msh ref}}
-->|au={{b/au}}<!-- since {{au ref}}
+
-->|The Emperor's Soul={{b/tes}}<!-- since {{tes ref}}
-->|a1={{b/a1}}<!-- because it looks nasty
+
-->|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]]}}<!--
   
 
--></includeonly><noinclude>
 
--></includeonly><noinclude>
Line 111: Line 128:
   
 
To use, include {{t|book ref|book|chapter}}
 
To use, include {{t|book ref|book|chapter}}
* the book is expanded by {{t|b}}
+
* Replace <code>book</code> with the appropriate code from {{t|b}}
* the chapter should either be prologue, epilogue or the chapter number
+
* <code>chapter</code> should be the chapter number, <code>prologue</code>, or <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
 
* {{{pre}}} is included before the link
 
* {{{post}}} is included after the link
 
* {{{post}}} is included after the link
Line 124: Line 143:
 
* [[Khriss]]' articles in ''Arcanum Unbounded'' use {{t|au ref|system name}} because they're not chapters
 
* [[Khriss]]' articles in ''Arcanum Unbounded'' use {{t|au ref|system name}} because they're not chapters
   
[[Category: Sources]]
+
[[category: sources]]
[[Category: Reference templates]]
+
[[category: reference 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}}

Revision as of 23:25, 10 August 2020

This template is used to refer to chapter summaries on the coppermind.

To use, include {{book ref|book|chapter}}

  • Replace book with the appropriate code from {{b}}
  • chapter should be the chapter number, prologue, or epilogue
  • When referencing chapters which have names in place of numbers, such as several chapters in the Alcatraz books, use the name of the chapter in place of a number. For example: {{book ref|a5|mary}}
  • When referring to interludes, replace chapter with i|number, where the latter is the interlude number
  • For parts that aren't any of the above, replace chapter with part=name; for example, part=ars 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 {{cite}} if you can't find it)
  • {{{pre}}} is included before the link
  • {{{post}}} is included after the link
  • {{{name}}} replaces the generated reference name
  • {{{group}}} sets the reference group

The following books have specific templates for referencing use:

  • Mistborn: Secret History uses {{msh ref|part|chapter}} as the chapters start at 1 in each part
  • The Emperor's Soul uses {{tes ref|day number}} as the chapters are numbered differently
  • Khriss' articles in Arcanum Unbounded use {{au ref|system name}} because they're not chapters

Articles using Template