Difference between revisions of "Template:Book link"

From The Coppermind
Jump to navigation Jump to search
m
m
Line 1: Line 1:
 
<includeonly>[[<!--
 
<includeonly>[[<!--
  +
-->{{{page|{{B|{{{1}}}|}}<!--
 
  +
LINK
-->{{#if:{{{fragment|}}}|{{urlencode:{{{fragment}}}}}|{{C|{{{2}}}|{{{3}}}|link=x}}|}}<!--
 
-->|}}}|{{{text|<!--
+
-->{{#if:{{{part|}}}<!--
-->{{B|{{{1}}}|}}{{#if:{{{2|}}}|&nbsp;{{C|{{{2}}}|{{{3}}}|}}|}}<!--
+
-->|{{#switch:{{lc:{{{part|}}}|}}<!--
  +
-->|prelude=The Stormlight Archive/Summary#Prelude<!--
-->}}}]]</includeonly><noinclude>This template allows you to reference a book, or a particular chapter or epigraph of it.
 
  +
-->|ars=Ars Arcanum#{{b|{{{1}}}|}}<!--
  +
-->|ack=Acknowledgements#{{b|{{{1}}}|}}<!--
  +
-->}}<!--
  +
-->|<!--
 
-->{{b|{{{1}}}|}}<!--
  +
-->{{#if:{{{2|}}}<!--
  +
-->|/Summary#{{#switch:{{lc:{{{2}}}|}}<!--
  +
-->|prologue=Prologue<!--
  +
-->|epilogue=Epilogue<!--
  +
-->|endnote=Endnote<!--
  +
-->|i|interlude=Interlude_I-{{{3}}}<!--
  +
-->|day=Day_{{{3}}}<!--
  +
-->|Chapter_{{{3|{{{2}}}|}}}<!--
  +
-->}}<!--
  +
-->}}|}}<!--
  +
  +
-->|<!--
  +
  +
LINK TEXT
  +
-->{{#if:{{{part|}}}<!--
  +
-->|{{#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<!--
  +
-->|epilogue=epilogue<!--
  +
-->|endnote=endnote<!--
  +
-->|i|interlude=interlude I-{{{3}}}<!--
  +
-->|day=- Day {{{3}}}<!--
  +
-->|chapter {{{3|{{{2}}}|}}}<!--
  +
-->}}|}}|}}<!--
  +
 
-->]]</includeonly><noinclude>This template allows you to reference a book, or a particular chapter or epigraph of it.
   
 
To use this template, type {{t|chapter|book shorthand|type of part|number of part}} where the three arguments are passed to the following templates:
 
To use this template, type {{t|chapter|book shorthand|type of part|number of part}} where the three arguments are passed to the following templates:
 
* {{t|b|book shorthand}}
 
* {{t|b|book shorthand}}
* {{t|c|type of part|number of part}}.
 
   
For example, type {{t|chapter|wok|i|1}} to get {{chapter|wok|i|1}}.
+
For example, type {{t|bref|wok|i|1}} to get {{bref|wok|i|1}}.
   
 
[[Category: Link macros]]
 
[[Category: Link macros]]

Revision as of 11:30, 10 September 2014

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

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

  • {{b|book shorthand}}

For example, type {{bref|wok|i|1}} to get Template:Bref.