Difference between revisions of "Template:Book link"

m
m (+usage)
 
(4 intermediate revisions by the same user not shown)
Line 2: Line 2:


LINK
LINK
-->{{#if:{{{part|}}}<!--
-->|{{#switch:{{lc:{{{part|}}}|}}<!--
-->|prelude=The Stormlight Archive/Summary#Prelude<!--
-->|ars=Ars Arcanum#{{b|{{{1}}}|}}<!--
-->|ack=Acknowledgements#{{b|{{{1}}}|}}<!--
-->}}<!--
-->|<!--
-->{{b|{{{1}}}|}}<!--
-->{{b|{{{1}}}|}}<!--
-->{{#if:{{{2|}}}<!--
-->/Summary#{{#switch:{{lc:{{{2}}}|}}<!--
-->|/Summary#{{#switch:{{lc:{{{2}}}|}}<!--
-->|prologue=Prologue<!--
-->|prologue=Prologue<!--
-->|epilogue=Epilogue<!--
-->|epilogue=Epilogue<!--
-->|endnote=Endnote<!--
-->|endnote=Endnote<!--
-->|postscript=Postscript<!--
-->|i|interlude=Interlude_I-{{{3}}}<!--
-->|i|interlude=Interlude_I-{{{3}}}<!--
-->|day=Day_{{{3}}}<!--
-->|day=Day_{{{3}}}<!--
-->|Chapter_{{{3|{{{2}}}|}}}<!--
-->|Chapter_{{{3|{{{2}}}|}}}<!--
-->}}<!--
-->}}<!--
-->}}|}}<!--


-->|<!--
-->|{{{text|<!--


LINK TEXT
LINK TEXT
-->{{#if:{{{part|}}}<!--
-->''{{b|{{{1}}}|}}'' {{#switch:{{lc:{{{2}}}|}}<!--
-->|{{#switch:{{lc:{{{part}}}|}}<!--
-->|prelude=Prelude to the ''Stormlight Archive''<!--
-->|ars=''{{b|{{{1}}}|}}'' Ars Arcanum<!--
-->|ack=Acknowledgement for ''{{b|{{{1}}}|}}''<!--
-->}}<!--
-->|''{{b|{{{1}}}|}}''{{#if:{{{2|}}}|&nbsp;{{#switch:{{lc:{{{2}}}|}}<!--
-->|prologue=prologue<!--
-->|prologue=prologue<!--
-->|epilogue=epilogue<!--
-->|epilogue=epilogue<!--
-->|endnote=endnote<!--
-->|endnote=endnote<!--
-->|postscript=postscript<!--
-->|i|interlude=interlude I-{{{3}}}<!--
-->|i|interlude=interlude I-{{{3}}}<!--
-->|day=- Day {{{3}}}<!--
-->|day=- Day {{{3}}}<!--
-->|chapter {{{3|{{{2}}}|}}}<!--
-->|chapter {{{3|{{{2}}}|}}}<!--
-->}}|}}|}}<!--
-->}}<!--


-->]]</includeonly><noinclude>This template allows you to reference a book, or a particular chapter or epigraph of it.
-->|}}}]]</includeonly><noinclude>This template allows you to reference a book, or a particular chapter or epigraph of it.


To use this template, type {{t|book link|book shorthand|type of part|number of part}} where the three arguments are passed to the following templates:
To use this template, type {{t|book link|book shorthand|type of part|number of part}} where the three arguments are passed to the following templates:
Line 46: Line 33:
For example, type {{t|book link|wok|i|1}} to get {{book link|wok|i|1}}.
For example, type {{t|book link|wok|i|1}} to get {{book link|wok|i|1}}.


[[Category: Link macros]]
[[category: link macros]]

== 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}}

Latest revision as of 19:53, 19 April 2020

This template allows you to reference a book, or a particular chapter or epigraph of it.

To use this template, type {{book link|book shorthand|type of part|number of part}} where the three arguments are passed to the following templates:

  • {{b|book shorthand}}

For example, type {{book link|wok|i|1}} to get The Way of Kings interlude I-1.

Articles using TemplateEdit