Template:HPB-Caves-header: Difference between revisions
mNo edit summary |
mNo edit summary |
||
(12 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude>This template creates header for pages of [[HPB-Caves|«From the Caves and | <noinclude>This template creates header for pages of [[HPB-Caves|«From the Caves and Wilds of Hindustan»]] by H. P. Blavatsky. Semantic property {{p|HPB Caves letter}} is set for those pages that use it. | ||
Line 16: | Line 16: | ||
[[Category: Templates]] | [[Category: Templates]] | ||
</noinclude><includeonly>{{Hide title}} [[Category: Blavatsky H.P. - From the Caves and | |||
[[t-ru-lib:Шаблон:ЕПБ-Письма из пещер-шапка]] | |||
</noinclude><includeonly>{{Hide title}} [[Category: Blavatsky H.P. - From the Caves and Wilds of Hindustan]] | |||
__NOFACTBOX__<!-- | __NOFACTBOX__<!-- | ||
Line 24: | Line 26: | ||
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}} | ||
| 36 = {{#vardefine:prev|35}} {{#vardefine:next|Contents}} | | 1 = {{#vardefine:prev|Translator's foreword}} {{#vardefine:next|2}} | ||
| 36 = {{#vardefine:prev|35}} {{#vardefine:next|Supplement}} | |||
| 37 = {{#vardefine:prev|36}} {{#vardefine:next|Contents}} {{#vardefine:chapter|Supplement<br>__TOC__}} | |||
| #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}} }} | ||
}}<!-- | }}<!-- | ||
PAGE OUTPUT | PAGE OUTPUT | ||
--><div style="width:100%; min-width: 300px; font-size: | --><div style="width:100%; min-width: 300px; font-size: 100%; font-family: 'Droid Sans', sans-serif; display: block;"> | ||
<div style="float:right; font-size: 90%;">[[Template:HPB-Caves-header|T]]</div> | <div style="float:right; font-size: 90%;">[[Template:HPB-Caves-header|T]]</div> | ||
<div style=" width:100%; background: #EAECF0; border: 1px solid #A2A9B1; padding: 5px 5px 10px 5px; {{css|border-radius|5}}"> | <div style=" width:100%; background: #EAECF0; border: 1px solid #A2A9B1; padding: 5px 5px 10px 5px; {{css|border-radius|5}}"> | ||
{{Style P-Book|From the Caves and | {{Style P-Book|[[HPB-Caves|From the Caves and Wilds of Hindustan]]}} | ||
{{Style P-Subtitle|[[HPB-Caves|Letters to the Motherland]]}} | |||
{{Style P-Author|by H. P. Blavatsky}} | {{Style P-Author|by H. P. Blavatsky}} | ||
<center>[[HPB-Caves-1|1]] [[HPB-Caves-2|2]] [[HPB-Caves-3|3]] [[HPB-Caves-4|4]] [[HPB-Caves-5|5]] [[HPB-Caves-6|6]] [[HPB-Caves-7|7]] [[HPB-Caves-8|8]] [[HPB-Caves-9|9]] [[HPB-Caves-10|10]] [[HPB-Caves-11|11]] [[HPB-Caves-12|12]] [[HPB-Caves-13|13]] [[HPB-Caves-14|14]] [[HPB-Caves-15|15]] [[HPB-Caves-16|16]] [[HPB-Caves-17|17]] [[HPB-Caves-18|18]] [[HPB-Caves-19|19]] [[HPB-Caves-20|20]] [[HPB-Caves-21|21]] [[HPB-Caves-22|22]] [[HPB-Caves-23|23]] [[HPB-Caves-24|24]] [[HPB-Caves-25|25]] [[HPB-Caves-26|26]] [[HPB-Caves-27|27]] [[HPB-Caves-28|28]] [[HPB-Caves-29|29]] [[HPB-Caves-30|30]] [[HPB-Caves-31|31]] [[HPB-Caves-32|32]] [[HPB-Caves-33|33]] [[HPB-Caves-34|34]] [[HPB-Caves-35|35]] [[HPB-Caves-36|36]]</center> | |||
<center>[[HPB-Caves-Foreword|Translator's foreword]] • [[HPB-Caves-Supplement|Supplement]]</center> | |||
<!-- 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}}"><!-- | ||
Line 45: | Line 50: | ||
-->[[HPB-Caves-{{#var:prev}}|<<]]<!-- | -->[[HPB-Caves-{{#var:prev}}|<<]]<!-- | ||
table of contents | table of contents | ||
--> [[ | --> [[HPB-Caves|☰]] <!-- | ||
next chapter | next chapter | ||
-->[[HPB-Caves-{{#var:next}}|>>]] | -->[[HPB-Caves-{{#var:next}}|>>]] | ||
Line 53: | Line 58: | ||
--><div style="float: right; background: #EAECF0; border: 1px solid #A2A9B1; padding: 0 5px 0 5px; margin: 0px 5px 0 0px; {{css|border-radius|5}}"><!-- | --><div style="float: right; background: #EAECF0; border: 1px solid #A2A9B1; padding: 0 5px 0 5px; margin: 0px 5px 0 0px; {{css|border-radius|5}}"><!-- | ||
page in English | page in English | ||
--><span title=" | --><span title="English">[[HPB-Caves-{{{letter|}}}|eng]]</span> • <!-- | ||
page in Russian | page in Russian | ||
--><span title="Russian">[[:t-ru-lib: | --><span title="Russian (Русский)">[[:t-ru-lib:ЕПБ-Письма из пещер-{{{letter|}}}|рус]]</span> | ||
</div> | |||
</div> | </div> | ||
</div> | </div> | ||
</includeonly> | </includeonly> |
Latest revision as of 03:01, 21 October 2022
This template creates header for pages of «From the Caves and Wilds 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 }}