Difference between revisions of "Template:Book ref"

Jump to navigation Jump to search
m
use {{tracking link}}
(try)
m (use {{tracking link}})
(25 intermediate revisions by the same user not shown)
-->|<!--
 
-->{{#if:{{b|{{{1}}}|}}|<!missing-- -->|{{ref/broken|b/missingerr=}}|}}<!--
 
-->{{{pre|}}}<!--
-->{{#if:{{{part|}}}<!--
-->|{{#switch:{{lc:{{{part|}}}|}}<!--
-->|prelude=Summary: The Stormlight Archive/Summary#Prelude<!--
-->|ars=Ars Arcanum#{{b|{{{1}}}|}}<!--
-->|ack=Acknowledgements#{{b|{{{1}}}|}}<!--
-->|postscript=Summary: {{#if:b|{{{part|1}}}|{{book ref/part}}|<!-- -->}}#Postscript<!--
-->|{{#if:{{{part|}}}|{{ref/broken|book ref/part}} {{{part}}}|<!-- -->}}<!--
-->}}<!--
-->|}}<!--
-->{{b|{{{1}}}|}}<!--
-->Summary: {{#if:b|{{{2|1}}}|missing-err=}}#<!--
-->|/Summary#{{#switch:{{lcif:{{{2|}}}|}}<!--
-->|prologue=Prologue<!--
-->{{#switch:{{lc:{{{2}}}|epilogue=Epilogue}}<!--
-->|endnoteprologue=EndnotePrologue<!--
-->|i|interludeepilogue=Interlude_I-{{{3}}}Epilogue<!--
-->|dayendnote=Day_{{{3}}}Endnote<!--
-->|cpart=Chapter_Part_{{{3}}}<!--
-->|Chapter_i|interlude=Interlude_I-{{{23}}}<!--
-->|Chapter_{{{2}}}<!--
-->}}|}}<!--
-->}}<!--
-->}}|}}|}}<!--
 
-->|<!--
 
LINK TEXT
-->{{#if:{{{part|}}}<!--
-->|{{#switch:{{lc:{{{part}}}|}}<!--
-->|prelude=Prelude to the ''Stormlight Archive''<!--
-->|ars=''{{b|{{{1}}}|}}'' Ars Arcanum<!--
-->|ack=Acknowledgement for ''{{b|{{{1}}}|}}''<!--
-->|postscript=''{{b|{{{1}}}|}}'' postscript<!--
-->|chapter {{{2}}}<!--
-->|''{{b|{{{1}}}|missing-err=}}''<!--
-->|day=- Day {{#if:{3{{2|}}}<!--
-->|&#32;<!--
-->|''{{b|{{{1}}}|}}''{{#if:{{{2|}}}|&nbsp;{{#switch:{{lc:{{{2}}}|}}<!--
-->|prologue=prologue<!--
-->|epilogue=epilogue<!--
-->|endnote=endnote<!--
-->|i|interludepart=interludepart I-{{{3}}}<!--
-->|i|interlude=interlude I-{{{3}}}<!--
-->|c={{book ref/c}}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|}}}<!--
 
--><small> <sub>{{tracking link|<!--
-->{{#if:{{{part|}}}<!--
-->|{{#switch:{{lc:{{{part|}}}|}}<!--
-->|prelude=Summary: The Stormlight Archive/Prelude<!--
-->|ars=Summary: {{b|{{{1}}}|}}/Ars Arcanum<!--
-->|ack=Summary: {{b|{{{1}}}|}}/Acknowledgements<!--
-->|postscript=Summary: {{b|{{{1}}}|}}/Postscript<!--
-->}}<!--
-->|<!--
-->Summary: {{b|{{{1}}}|}}<!--
-->{{#if:{{{2|}}}<!--
-->|/<!--
-->{{#switch:{{lc:{{{2}}}|}}<!--
-->|prologue=Prologue<!--
-->|epilogue=Epilogue<!--
-->|endnote=Endnote<!--
-->|part=Part_{{{3}}}<!--
-->|i|interlude=Interlude_I-{{{3}}}<!--
-->|Chapter_{{{2}}}<!--
-->}}<!--
-->|/CHAPTERLESS<!-- see [[category: chapterless references]]
-->}}<!--
-->}}<!--
-->}}</sub></small><!--
 
-->|{{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}}
-->|Alcatraz Versus the Evil Librarians (book)={{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]]}}<!--
 
--></includeonly><noinclude>
* the book is expanded by {{t|b}}
* the chapter should either be prologue, epilogue or the chapter number
* if the second argument is a`i` chapteror `interlude` type the third argument is used as the chapterinterlude number
* {{{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
 
[[Categorycategory: Sourcessources]]
[[Categorycategory: Referencereference templates]]
40,275

edits

Navigation menu