Jump to content

Template:HPB-SB-header: Difference between revisions

m
links for prev and next pages creating automatically
mNo edit summary
m (links for prev and next pages creating automatically)
Line 12: Line 12:
  | image =  
  | image =  
  | notes =  
  | notes =  
| prev =
| next =
}}
}}
</pre>
</pre>
Line 22: Line 20:
* '''image''' -- page image (file name)
* '''image''' -- page image (file name)
* '''notes''' -- notes to the page {{p|HPB SB page notes}}
* '''notes''' -- notes to the page {{p|HPB SB page notes}}
* '''prev''' -- previous page; just page number, the full page name will be created automatically in format: HPB-SB-1-5, where '''1''' - volume number, and '''5''' - page number in the volume
 
* '''next''' -- next page
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.
|}
|}


Line 77: Line 75:
   навигация по альбому
   навигация по альбому
--><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}}"><!--
   предыдущая страница
   previous page
-->[[HPB-SB-{{{volume|}}}-{{{prev|}}}|<<]]<!--
-->{{#if: {{{prev|}}}
   содержание
| {{#vardefine:prev| {{{prev}}} }}
| {{#vardefine:prev| {{#expr:{{{page|1}}} - 1}} }}
}}[[HPB-SB-{{{volume|}}}-{{#var:prev}}|<<]]<!--
   table of contents
-->&nbsp;&nbsp; [[Blavatsky H.P. Scrapbooks (contents)|☰]] &nbsp;&nbsp;<!--
-->&nbsp;&nbsp; [[Blavatsky H.P. Scrapbooks (contents)|☰]] &nbsp;&nbsp;<!--
   следующая страница
   next page
-->[[HPB-SB-{{{volume|}}}-{{{next|}}}|>>]]
-->{{#if: {{{next|}}}
| {{#vardefine:next| {{{next}}} }}
| {{#vardefine:next| {{#expr:{{{page|0}}} + 1}} }}
}}[[HPB-SB-{{{volume|}}}-{{#var:next}}|>>]]
</div><!--
</div><!--