Jump to content

Template:HPB-Caves-header: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 24: Line 24:
   DEFINE VARIABLES
   DEFINE VARIABLES
    
    
   track first and last chapters: 0 = Translator's foreword; 1-36 = HPB letters
   track first and last chapters: 0 = Translator's foreword; 1-36 = HPB letters; 37 = Supplement
-->{{#vardefine:chapter|Letter {{{letter|}}}}}<!--
-->{{#vardefine:chapter|Letter {{{letter|}}}}}<!--
-->{{#switch: {{{letter|}}}
-->{{#switch: {{{letter|}}}
  | 0 = {{#vardefine:prev|Contents}} {{#vardefine:next|1}} {{#vardefine:chapter|Translator's foreword}}
  | 0 = {{#vardefine:prev|Contents}} {{#vardefine:next|1}} {{#vardefine:chapter|Translator's foreword}}
  | 1 = {{#vardefine:prev|Translator's foreword}} {{#vardefine:next|2}}
  | 1 = {{#vardefine:prev|Translator's foreword}} {{#vardefine:next|2}}
  | 36 = {{#vardefine:prev|35}} {{#vardefine:next|Contents}}
  | 36 = {{#vardefine:prev|35}} {{#vardefine:next|Supplement}}
| 37 = {{#vardefine:prev|36}} {{#vardefine:next|Contents}}
  | #default = {{#vardefine:prev| {{#expr:{{{letter|0}}} - 1}} }} {{#vardefine:next| {{#expr:{{{letter|0}}} + 1}} }}
  | #default = {{#vardefine:prev| {{#expr:{{{letter|0}}} - 1}} }} {{#vardefine:next| {{#expr:{{{letter|0}}} + 1}} }}
}}<!--
}}<!--