Template:HPB-Caves-header: Difference between revisions

From Teopedia
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}} }}
}}<!--
}}<!--

Revision as of 03:12, 21 August 2021

This template creates header for pages of «From the Caves and Jungles of Hindustan» by H. P. Blavatsky. Semantic property [[HPB Caves letter]] is set for those pages that use it.


To copy:

{{HPB-Caves-header
 | letter = 
}}

Example:

{{HPB-Caves-header
 | letter = 23
}}