Editing Template:Book ref

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 6: Line 6:
 
-->{{#if:{{b|{{{1}}}|missing-err=}}|<!--
 
-->{{#if:{{b|{{{1}}}|missing-err=}}|<!--
   
-->{{{pre|}}}<!-- -->{{#if:{{{pre|}}}|{{ref/uses-pre}}|}}<!--
+
-->{{{pre|}}}<!--
   
 
-->[[<!--
 
-->[[<!--
Line 13: Line 13:
 
-->{{#if:{{{part|}}}<!--
 
-->{{#if:{{{part|}}}<!--
 
-->|{{#switch:{{lc:{{{part|}}}|}}<!--
 
-->|{{#switch:{{lc:{{{part|}}}|}}<!--
-->|prelude=Summary: The Way of Kings#Prelude<!--
+
-->|prelude=Summary: The Stormlight Archive#Prelude<!--
-->|bastille's letter=Summary: The Dark Talent#Bastille's Letter<!--
+
-->|ars=Ars Arcanum#{{b|{{{1}}}|}}<!--
 
-->|ack=Acknowledgements#{{b|{{{1}}}|}}<!--
-->|royal epilogue=Summary:The Knights of Crystallia#Royal Epilogue (Not a Chapter)<!--
 
-->|anotherepilogue=Summary:Yumi and the Nightmare Painter#Another Epilogue<!--
+
-->|postscript=Summary: {{b|{{{1}}}|}}#Postscript<!--
-->|ars=Ars Arcanum#{{b|{{{1}}}|text=y}}<!--
 
-->|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}}}|text=y|missing-err=}}#<!--
+
-->Summary: {{b|{{{1}}}|missing-err=}}#<!--
-->{{#if:{{#pos:{{{1|}}}|do}}|{{Dark One lookup|{{{1}}}|{{{2}}}|{{{3}}}}}|<!--
 
 
-->{{#if:{{{2|}}}<!--
 
-->{{#if:{{{2|}}}<!--
 
-->|<!--
 
-->|<!--
 
-->{{#switch:{{lc:{{{2}}}|}}<!--
 
-->{{#switch:{{lc:{{{2}}}|}}<!--
 
-->|prologue=Prologue<!--
 
-->|prologue=Prologue<!--
-->|epilogue=Epilogue{{#if:{{{3|}}}|_{{{3}}}}}<!--
+
-->|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 44: Line 38:
 
LINK TEXT
 
LINK TEXT
 
-->{{#if:{{{part|}}}<!--
 
-->{{#if:{{{part|}}}<!--
-->|{{ref/uses-part}}{{#switch:{{lc:{{{part}}}|}}<!--
+
-->|{{#switch:{{lc:{{{part}}}|}}<!--
 
-->|prelude=Prelude to the ''Stormlight Archive''<!--
 
-->|prelude=Prelude to the ''Stormlight Archive''<!--
-->|bastille's letter=Bastille's Letter from ''The Dark Talent''<!--
+
-->|ars=''{{b|{{{1}}}|}}'' Ars Arcanum<!--
 
-->|ack=Acknowledgement for ''{{b|{{{1}}}|}}''<!--
-->|royal epilogue=''The Knights of Crystallia'' Royal Epilogue (Not a Chapter)<!--
 
-->|anotherepilogue=''Yumi and the Nightmare Painter'' Another Epilogue<!--
+
-->|postscript=''{{b|{{{1}}}|}}'' postscript<!--
-->|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=}}''<!--
+
-->|''{{b|{{{1}}}|missing-err=}}''<!--
-->{{#if:{{#pos:{{{1|}}}|do}}|, {{lcfirst:{{Dark One lookup|{{{1}}}|{{{2}}}|{{{3}}}}}}}|<!--
 
 
-->{{#if:{{{2|}}}<!--
 
-->{{#if:{{{2|}}}<!--
 
-->|&#32;<!--
 
-->|&#32;<!--
 
-->{{#switch:{{lc:{{{2}}}|}}<!--
 
-->{{#switch:{{lc:{{{2}}}|}}<!--
 
-->|prologue=prologue<!--
 
-->|prologue=prologue<!--
-->|epilogue=epilogue{{#if:{{{3|}}}|&#32;{{{3}}}}}<!--
+
-->|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 72: Line 61:
 
-->]]<!--
 
-->]]<!--
   
-->{{{post|}}}<!-- -->{{#if:{{{post|}}}|{{ref/uses-post}}|}}<!--
+
-->{{{post|}}}<!--
   
-->{{tracking link|<!--
+
--><small> <sub>[[<!--
 
-->{{#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<!--
 
-->|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<!--
 
-->|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<!--
-->|preface=Summary: {{b|{{{1}}}|}}/Preface<!--
+
-->|{{#if:{{{part|}}}|{{ref/broken|book ref/part}} {{{part}}}|<!-- -->}}<!--
 
-->}}<!--
 
-->}}<!--
 
-->|<!--
 
-->|<!--
-->Summary: {{b|{{{1}}}|text=y|}}<!--
+
-->Summary: {{b|{{{1}}}|missing-err=}}/<!--
 
-->{{#if:{{{2|}}}<!--
 
-->{{#if:{{{2|}}}<!--
-->|/<!--
+
-->|<!--
 
-->{{#switch:{{lc:{{{2}}}|}}<!--
 
-->{{#switch:{{lc:{{{2}}}|}}<!--
 
-->|prologue=Prologue<!--
 
-->|prologue=Prologue<!--
-->|epilogue=Epilogue{{#if:{{{3|}}}|_{{{3}}}}}<!--
+
-->|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]]
 
 
-->}}<!--
 
-->}}<!--
 
-->}}<!--
 
-->}}<!--
-->}}<!-- /TRACKING
+
-->|#]]</sub></small><!--
   
 
-->|{{ref/broken|b/missing}} {{{1}}}<!--
 
-->|{{ref/broken|b/missing}} {{{1}}}<!--
Line 115: Line 100:
   
 
errors
 
errors
-->{{#switch:{{b|{{{1}}}|missing-err=}}<!--
+
-->{{#switch:{{lc:{{{1}}}|}}<!--
  +
-->|msh={{b/msh}}<!-- since {{msh ref}}
these should all be using a specialised template:
 
-->|Mistborn: Secret History={{b/msh}}<!-- since {{msh ref}}
+
-->|tes={{b/tes}}<!-- since {{tes ref}}
-->|The Emperor's Soul={{b/tes}}<!-- since {{tes ref}}
+
-->|au={{b/au}}<!-- since {{au ref}}
-->|Arcanum Unbounded={{b/au}}<!-- since {{au ref}}
+
-->|a1={{b/a1}}<!-- because it looks nasty
 
-->}}<!--
 
-->}}<!--
-->{{#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>
 
--></includeonly><noinclude>
Line 136: Line 111:
   
 
To use, include {{t|book ref|book|chapter}}
 
To use, include {{t|book ref|book|chapter}}
* Replace <code>book</code> with the appropriate code from {{t|b}}
+
* the book is expanded by {{t|b}}
* <code>chapter</code> should be the chapter number, <code>prologue</code>, or <code>epilogue</code>
+
* the chapter should either be prologue, epilogue or the chapter number
  +
* if the second argument is `i` or `interlude` type the third argument is used as the interlude number
* 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}}
 
* 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 150: Line 123:
 
* ''The Emperor's Soul'' uses {{t|tes ref|day number}} as the chapters are numbered differently
 
* ''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
 
* [[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]]
 
   
  +
[[Category: Sources]]
== Articles using Template ==
 
 
[[Category: Reference templates]]
{{for|Special:WhatLinksHere/{{FULLPAGENAME}}|a full listing|here|pre=This list is limited to 100 pages}}
 
{{Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=0|limit=100}}
 

Please note that all contributions to The Coppermind are considered to be released under the CC4 by-nc-nd (see Coppermind:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)

Templates used on this page: