Difference between revisions of "Template:Msh ref"

From The Coppermind
Jump to navigation Jump to search
(start)
 
m ({{tracking link}})
(6 intermediate revisions by the same user not shown)
Line 9: Line 9:
   
 
LINK
 
LINK
-->Mistborn: Secret History/Summary#<!--
+
-->Summary: Mistborn: Secret History#<!--
 
-->{{#switch:{{lc:{{{1}}}|}}<!--
 
-->{{#switch:{{lc:{{{1}}}|}}<!--
 
-->|epilogue=Epilogue<!--
 
-->|epilogue=Epilogue<!--
-->|Chapter_{{{1}}}_{{{2}}}<!--
+
-->|Part_{{{1}}}{{#if:{{{2|}}}|_Chapter_{{{2}}}|}}<!--
 
-->}}<!--
 
-->}}<!--
   
 
LINK TEXT
 
LINK TEXT
-->|Mistborn: Secret History <!--
+
-->|''Mistborn: Secret History'' <!--
 
-->{{#switch:{{lc:{{{1}}}|}}<!--
 
-->{{#switch:{{lc:{{{1}}}|}}<!--
 
-->|epilogue=Epilogue<!--
 
-->|epilogue=Epilogue<!--
-->|part {{{1}}} chapter {{{2}}}<!--
+
-->|part {{{1}}}{{#if:{{{2|}}}|&#32;chapter {{{2}}}|}}<!--
 
-->}}<!--
 
-->}}<!--
   
Line 25: Line 25:
   
 
-->{{{post|}}}<!--
 
-->{{{post|}}}<!--
  +
  +
--><small> <sub>{{tracking link|<!--
  +
-->Summary: Mistborn: Secret History/<!--
  +
-->{{#switch:{{lc:{{{1}}}|}}<!--
  +
-->|epilogue=Epilogue<!--
  +
-->|Part_{{{1}}}{{#if:{{{2|}}}|_Chapter_{{{2}}}|}}<!--
  +
-->}}<!--
  +
-->}}</sub></small><!--
   
 
NAME
 
NAME
-->|name={{{name|MSH-{{{1}}}-{{{2}}}|}}}|}}}<!--
+
-->|name={{{name|MSH-{{{1}}}-{{{2}}}|}}}<!--
   
 
GROUP
 
GROUP
Line 45: Line 53:
 
* {{{group}}} sets the reference group
 
* {{{group}}} sets the reference group
   
[[Category: Sources]]
+
[[category: sources]]
[[Category: Reference templates]]
+
[[category: reference templates]]

Revision as of 09:29, 8 September 2019

This template is used to refer to Mistborn: Secret History chapter summaries on the coppermind. It is a special template because unlike other {{book ref}}-able books, its chapters start at 1 in each section.

To use, include {{msh ref|part|chapter}}

  • the part should either be epilogue or the part number
  • if the second argument is a part number the third argument is used as the chapter number
  • {{{pre}}} is included before the link
  • {{{post}}} is included after the link
  • {{{name}}} replaces the generated reference name
  • {{{group}}} sets the reference group