Template:HPB-Caves-header: Difference between revisions

From Teopedia
mNo edit summary
mNo edit summary
Line 24: Line 24:
   DEFINE VARIABLES
   DEFINE VARIABLES
    
    
   track first and last letters
   track first and last chapters: 0 = Translator's foreword; 1-36 = HPB letters
-->{{#vardefine:chapter|Letter {{{letter|}}}}}<!--
-->{{#switch: {{{letter|}}}
-->{{#switch: {{{letter|}}}
  | 1 = {{#vardefine:prev|}}
  | 0 = {{#vardefine:prev|Contents}} {{#vardefine:next|1}} {{#vardefine:chapter|Translator's foreword}}
  | 36 = {{#vardefine:next|}}
  | 36 = {{#vardefine:prev|35}} {{#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}} }}
}}<!--
}}<!--
Line 37: Line 38:
{{Style P-Book|From the Caves and Jungles of Hindustan}}
{{Style P-Book|From the Caves and Jungles of Hindustan}}
{{Style P-Author|by H. P. Blavatsky}}
{{Style P-Author|by H. P. Blavatsky}}
{{Style P-Subtitle|Letter {{{letter|}}} }}
{{Style P-Subtitle| {{#var:chapter}} }}


<!--  navigation bar on book -->
<!--  navigation bar on book -->

Revision as of 15:56, 8 June 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
}}