Template:HPB-SB-header: Difference between revisions

From Teopedia
mNo edit summary
(new design)
Line 30: Line 30:


   SET SEMANTIC PROPERTIES
   SET SEMANTIC PROPERTIES
-->{{#set: HPB SB volume={{{volume|}}} | HPB SB page={{{page|}}} | HPB SB page notes={{{notes|}}} }}<!--
-->{{#set: HPB SB volume={{{volume|}}} | HPB SB page={{{page|}}} | HPB SB page notes={{{notes|}}} }}
 
  DEFINE VARIABLES
 
  volume name
-->{{#switch: {{{volume|}}}
| 1 = {{#vardefine:volume|'''vol.&nbsp;1'''&nbsp;(1874-1876)}}
| 2 = {{#vardefine:volume|'''vol.&nbsp;2'''&nbsp;(January 1874 - April 1878)}}
| 3 = {{#vardefine:volume|'''vol.&nbsp;3'''&nbsp;(1875-1878)}}
| 4 = {{#vardefine:volume|'''vol.&nbsp;4'''&nbsp;(1875-1878)}}
| 5 = {{#vardefine:volume|'''vol.&nbsp;5'''&nbsp;(1875-1878). Miscellaneous Scraps from January 1st 1878}}
| 6 = {{#vardefine:volume|'''vol.&nbsp;6'''&nbsp;(1878-1880). Articles from Russian newspapers}}
| 7 = {{#vardefine:volume|'''vol.&nbsp;7'''&nbsp;(March-September 1878)}}
| 8 = {{#vardefine:volume|'''vol.&nbsp;8'''&nbsp;(September 1878 - September 1879)}}
| #default = {{#vardefine:volume|'''vol.'''&nbsp;{{{volume|}}} }}
}}
<!-- PAGE OUTPUT -->
<!-- PAGE OUTPUT -->
{{Style P-Book|[[HPB-SB|H. P. Blavatsky Scrapbooks]]}}
{{Style P-Book|[[HPB-SB|H. P. Blavatsky Scrapbooks]]}}
Line 52: Line 37:
<div style="float:right; font-size: 90%;">[[Template:HPB-SB-header|T]] [[Template:HPB-SB-item|i]]</div>
<div style="float:right; font-size: 90%;">[[Template:HPB-SB-header|T]] [[Template:HPB-SB-item|i]]</div>
<div style=" width:100%; min-height: 200px; background: #EAECF0; border: 1px solid #A2A9B1; padding: 5px 5px 10px 5px; {{css|border-radius|5}}">
<div style=" width:100%; min-height: 200px; background: #EAECF0; border: 1px solid #A2A9B1; padding: 5px 5px 10px 5px; {{css|border-radius|5}}">
[[File:{{{image|}}}|150x150px|left|thumb|vol. '''{{{volume|}}}''', p. '''{{{page|}}}''']]
{|
{{Style P-Subtitle|{{#var:volume}} }}
|- valign=top
<center>page {{{page|}}}</center>
| width=150px | [[File:SB-10-397.jpg|150x150px|left|thumb|vol. '''{{{volume|}}}''', p. '''{{{page|}}}''']]
<div style="margin-left: 135px; margin-right: 5px;">{{{notes|}}}&nbsp;</div>
| rowspan=2 | {{Style P-Subtitle|vol. {{{volume|}}}, page {{{page|}}} }}
 
<p style="text-indent: 0px;">volume title: '''{{#show:HPB-SB-{{{volume|}}}|?HPB SB volume title}}'''</p>
<!-- Table of Contents, notes and legend-->
<p style="text-indent: 0px;">vol. period: '''{{#show:HPB-SB-{{{volume|}}}|?HPB SB volume period}}'''</p>
<div class="header-nav-m" style="display: flex; justify-content: space-between; padding-bottom: 10px;">
<p style="text-indent: 0px;">pages in vol.: '''{{#show:HPB-SB-{{{volume|}}}|?HPB SB volume pages total}}'''</p>
<div>__TOC__</div>
<p style="text-indent: 0px; margin-top: 1em;">{{{notes|}}}</p>
 
__TOC__
<!--пояснение к условному форматированию -->
|- valign=top
<div style="font-size: 80%; width:160px; border: 1px solid #A2A9B1; padding-left: 5px; background: white; position: relative;">
| <div class="mw-collapsible mw-collapsed" style="font-size: 80%; border: 1px solid #A2A9B1; padding: 0 5px; background: white;">
<div style="float: right; margin-right: 3px;">[[:Category:Templates for HPB SB|SBT]], [[:Category:Design_templates|DT]]</div>
<p style="text-indent: 0px; cursor: help; font-weight: bold;" title="There are some special styles used in the text. Move over the names to get more information, or click DT to see all design templates.">Legend</p>
<p style="text-indent: 0px;">'''{{tip|Legend|There are some special styles used in the text. Move over the names to get more information, or click DT to see all design templates}}'''</p>
<div class="mw-collapsible-content">
* <span style="cursor:help;" title="Handwritten text added by H.P. Blavatsky">{{Style S-HPB SB. HPB note|HPB note}}</span>
* <span style="cursor:help;" title="Handwritten text added by H.P. Blavatsky">{{Style S-HPB SB. HPB note|HPB note}}</span>
* <span style="cursor:help;" title="Text highlighted by H.P. Blavatsky">{{Style S-HPB SB. HPB highlighted|HPB highlighted}}</span>
* <span style="cursor:help;" title="Text highlighted by H.P. Blavatsky">{{Style S-HPB SB. HPB highlighted|HPB highlighted}}</span>
Line 72: Line 57:
* <span style="cursor:help;" title="Note by Adyar archivist, made after the Scribebooks were archived">{{Style S-HPB SB. Archivist note|Archivist note}}</span>
* <span style="cursor:help;" title="Note by Adyar archivist, made after the Scribebooks were archived">{{Style S-HPB SB. Archivist note|Archivist note}}</span>
* <span style="cursor:help;" title="Text is lost or unclear">{{Style S-HPB SB. Lost|Lost or unclear}}</span>
* <span style="cursor:help;" title="Text is lost or unclear">{{Style S-HPB SB. Lost|Lost or unclear}}</span>
* <span style="cursor:help;" title="Text was lost but found somewhere else and restored">{{Style S-HPB SB. Restored|Restored}}</span>
* <div style="float: right; margin-right: 3px;">[[:Category:Templates for HPB SB|SBT]], [[:Category:Design_templates|DT]]</div><span style="cursor:help;" title="Text was lost but found somewhere else and restored">{{Style S-HPB SB. Restored|Restored}}</span>
</div>
</div> <!-- collapsible content -->
</div>
</div> <!-- Legend -->
<!-- navigation throgh current album -->
|}
<!-- navigation through current album -->
<div style="float: right; background: #EAECF0; border: 1px solid #A2A9B1; padding: 0 5px 0 5px; margin: 0px 0px 0 5px; {{css|border-radius|5}}"><!--
<div style="float: right; background: #EAECF0; border: 1px solid #A2A9B1; padding: 0 5px 0 5px; margin: 0px 0px 0 5px; {{css|border-radius|5}}"><!--
   previous page
   previous page

Revision as of 06:12, 17 December 2025

This template creates header on pages of «H. P. Blavatsky Scrapbooks».

To copy Note
{{HPB-SB-header
 | volume = 
 | page = 
 | image = 
 | notes = 
}}

Links to the previous and next pages are created automatically. Images and text of the inlays should be placed on the page to which they are attached. Their images should be placed in a thumbnail to the right of the text.