FANDOM

5,594 Pages

95

Template-info Template Documentation (sometimes hidden or invisible)

Template tools: purgewhat links herewhat transclude thissubpages

Description

This template tells which volume a chapter belongs to.

Syntax

{{Which volume|Chapter number}}

Parameters
  • Chapter number/1= the number of the chapter - free.
  • ch= the chapter number can also be provided with this parameter - optional.
  • style= if set to qref, outputs "Vol. 63" if the volume exists and nothing otherwise. Used in {{qref}}.
Samples
  • {{Which volume|319}} gives:
34
  • Vol. {{Which volume|552}} — [[Chapter 552]] gives:
Vol. 57 — Chapter 552
  • {{Which volume|style=qref|552}} [[Chapter 552]] gives:
Vol.

57 Chapter 552

  • {{Which volume|style=qref|15642}} Chapter 15642 gives:
Chapter 15642
Updating the template

To update the template change the last part:

({{{ch|{{{1|5000}}} }}} >  X)		+
({{{ch|{{{1|5000}}} }}} >  Y)	        +  <!-- Last chapter of the penultimate volume -->
 {{#ifexpr: ({{{ch|{{{1|0}}} }}} >  Z) <!-- Last chapter of the last volume -->
   |TBA <!-- This will cause an error -->
   |0
   }}
}}

Add "Y" to the sum after "X" with the same code, change the value of "Y" with the value of "Z" and then update "Z". So the result will be:

({{{ch|{{{1|5000}}} }}} >  X)		+
({{{ch|{{{1|5000}}} }}} >  Y)		+
({{{ch|{{{1|5000}}} }}} >  Z)	        +  <!-- Last chapter of the penultimate volume -->
 {{#ifexpr: ({{{ch|{{{1|0}}} }}} >  Z') <!-- Last chapter of the last volume -->
   |TBA <!-- This will cause an error -->
   |0
   }}
}}

Where Z' is the new Z.

Note

The template will show as default the latest volume, while for the chapter not yet in volume format the message: "TBA", or nothing if style is set to qref.

See Also

Visit Template:Which volume/doc to edit this text! (How does this work?) (Refresh this text - why?)


Community content is available under CC-BY-SA unless otherwise noted.