Template:HPB-Caves-header: Difference between revisions

From Teopedia
mNo edit summary
No edit summary
Line 28: Line 28:
-->{{#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}}
  | 36 = {{#vardefine:prev|35}} {{#vardefine:next|Contents}}
  | 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 39: Line 40:
{{Style P-Author|by H. P. Blavatsky}}
{{Style P-Author|by H. P. Blavatsky}}
{{Style P-Subtitle| {{#var:chapter}} }}
{{Style P-Subtitle| {{#var:chapter}} }}
 
</div>
<!--  navigation bar on book -->
<!--  navigation bar on book -->
<div style="float: left; background: #EAECF0; border: 1px solid #A2A9B1; padding: 0 5px 0 5px; margin: 0px 0px 0 5px; {{css|border-radius|5}}"><!--
<div style="float: left; background: #EAECF0; border: 1px solid #A2A9B1; padding: 0 5px 0 5px; margin: 0px 0px 0 5px; {{css|border-radius|5}}"><!--

Revision as of 16:01, 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
}}