Difference between revisions of "Template:Book ref"
Jump to navigation
Jump to search
m (add default for 3 (in case of 2 being chapter number)) |
m (use {{tracking link}}) |
||
(18 intermediate revisions by the same user not shown) | |||
Line 13: | Line 13: | ||
-->{{#if:{{{part|}}}<!-- |
-->{{#if:{{{part|}}}<!-- |
||
-->|{{#switch:{{lc:{{{part|}}}|}}<!-- |
-->|{{#switch:{{lc:{{{part|}}}|}}<!-- |
||
− | -->|prelude=The Stormlight Archive |
+ | -->|prelude=Summary: The Stormlight Archive#Prelude<!-- |
-->|ars=Ars Arcanum#{{b|{{{1}}}|}}<!-- |
-->|ars=Ars Arcanum#{{b|{{{1}}}|}}<!-- |
||
-->|ack=Acknowledgements#{{b|{{{1}}}|}}<!-- |
-->|ack=Acknowledgements#{{b|{{{1}}}|}}<!-- |
||
+ | -->|postscript=Summary: {{b|{{{1}}}|}}#Postscript<!-- |
||
-->|{{#if:{{{part|}}}|{{ref/broken|book ref/part}} {{{part}}}|<!-- -->}}<!-- |
-->|{{#if:{{{part|}}}|{{ref/broken|book ref/part}} {{{part}}}|<!-- -->}}<!-- |
||
-->}}<!-- |
-->}}<!-- |
||
-->|<!-- |
-->|<!-- |
||
− | -->{{b|{{{1}}}|missing-err=}}<!-- |
+ | -->Summary: {{b|{{{1}}}|missing-err=}}#<!-- |
-->{{#if:{{{2|}}}<!-- |
-->{{#if:{{{2|}}}<!-- |
||
− | -->| |
+ | -->|<!-- |
-->{{#switch:{{lc:{{{2}}}|}}<!-- |
-->{{#switch:{{lc:{{{2}}}|}}<!-- |
||
-->|prologue=Prologue<!-- |
-->|prologue=Prologue<!-- |
||
-->|epilogue=Epilogue<!-- |
-->|epilogue=Epilogue<!-- |
||
-->|endnote=Endnote<!-- |
-->|endnote=Endnote<!-- |
||
⚫ | |||
-->|i|interlude=Interlude_I-{{{3}}}<!-- |
-->|i|interlude=Interlude_I-{{{3}}}<!-- |
||
⚫ | |||
⚫ | |||
-->|Chapter_{{{2}}}<!-- |
-->|Chapter_{{{2}}}<!-- |
||
-->}}<!-- |
-->}}<!-- |
||
Line 42: | Line 42: | ||
-->|ars=''{{b|{{{1}}}|}}'' Ars Arcanum<!-- |
-->|ars=''{{b|{{{1}}}|}}'' Ars Arcanum<!-- |
||
-->|ack=Acknowledgement for ''{{b|{{{1}}}|}}''<!-- |
-->|ack=Acknowledgement for ''{{b|{{{1}}}|}}''<!-- |
||
+ | -->|postscript=''{{b|{{{1}}}|}}'' postscript<!-- |
||
-->}}<!-- |
-->}}<!-- |
||
-->|''{{b|{{{1}}}|missing-err=}}''<!-- |
-->|''{{b|{{{1}}}|missing-err=}}''<!-- |
||
Line 50: | Line 51: | ||
-->|epilogue=epilogue<!-- |
-->|epilogue=epilogue<!-- |
||
-->|endnote=endnote<!-- |
-->|endnote=endnote<!-- |
||
⚫ | |||
-->|i|interlude=interlude I-{{{3}}}<!-- |
-->|i|interlude=interlude I-{{{3}}}<!-- |
||
⚫ | |||
⚫ | |||
-->|chapter {{{2}}}<!-- |
-->|chapter {{{2}}}<!-- |
||
-->}}<!-- |
-->}}<!-- |
||
⚫ | |||
-->}}<!-- |
-->}}<!-- |
||
-->}}<!-- |
-->}}<!-- |
||
Line 62: | Line 61: | ||
-->{{{post|}}}<!-- |
-->{{{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|}}}<!-- |
||
+ | -->|/<!-- |
||
⚫ | |||
+ | -->|prologue=Prologue<!-- |
||
+ | -->|epilogue=Epilogue<!-- |
||
+ | -->|endnote=Endnote<!-- |
||
⚫ | |||
+ | -->|i|interlude=Interlude_I-{{{3}}}<!-- |
||
⚫ | |||
+ | -->}}<!-- |
||
+ | -->|/CHAPTERLESS<!-- see [[category: chapterless references]] |
||
+ | -->}}<!-- |
||
+ | -->}}<!-- |
||
+ | -->}}</sub></small><!-- |
||
-->|{{ref/broken|b/missing}} {{{1}}}<!-- |
-->|{{ref/broken|b/missing}} {{{1}}}<!-- |
||
Line 73: | Line 97: | ||
-->}}<!-- |
-->}}<!-- |
||
+ | |||
+ | 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> |
--></includeonly><noinclude> |
||
Line 80: | Line 121: | ||
* the book is expanded by {{t|b}} |
* the book is expanded by {{t|b}} |
||
* the chapter should either be prologue, epilogue or the chapter number |
* the chapter should either be prologue, epilogue or the chapter number |
||
− | * if the second argument is |
+ | * if the second argument is `i` or `interlude` type the third argument is used as the interlude number |
* {{{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 86: | Line 127: | ||
* {{{group}}} sets the reference group |
* {{{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 |
||
− | [[ |
+ | [[category: sources]] |
− | [[ |
+ | [[category: reference templates]] |
Revision as of 09:27, 8 September 2019
This template is used to refer to chapter summaries on the coppermind.
To use, include {{book ref|book|chapter}}
- the book is expanded by
{{b}}
- 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
- {{{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: