Difference between revisions of "Template:Book link"
Jump to navigation
Jump to search
m |
m |
||
Line 1: | Line 1: | ||
<includeonly>[[<!-- |
<includeonly>[[<!-- |
||
+ | |||
⚫ | |||
+ | LINK |
||
− | -->{{#if:{{{fragment|}}}|{{urlencode:{{{fragment}}}}}|{{C|{{{2}}}|{{{3}}}|link=x}}|}}<!-- |
||
− | --> |
+ | -->{{#if:{{{part|}}}<!-- |
− | --> |
+ | -->|{{#switch:{{lc:{{{part|}}}|}}<!-- |
+ | -->|prelude=The Stormlight Archive/Summary#Prelude<!-- |
||
⚫ | |||
+ | -->|ars=Ars Arcanum#{{b|{{{1}}}|}}<!-- |
||
+ | -->|ack=Acknowledgements#{{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|}}}| {{#switch:{{lc:{{{2}}}|}}<!-- |
||
+ | -->|prologue=prologue<!-- |
||
+ | -->|epilogue=epilogue<!-- |
||
+ | -->|endnote=endnote<!-- |
||
+ | -->|i|interlude=interlude I-{{{3}}}<!-- |
||
+ | -->|day=- Day {{{3}}}<!-- |
||
+ | -->|chapter {{{3|{{{2}}}|}}}<!-- |
||
+ | -->}}|}}|}}<!-- |
||
+ | |||
⚫ | |||
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| |
+ | 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.