Difference between revisions of "Template:HPB-SB-volume"

From Teopedia library
Jump to navigation Jump to search
m
m (+HPB SB volume number sortable)
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>This template is used in [[HPB-SB|HPB Scrapbooks]] to create a volume page.
+
<noinclude>This template is used in [[HPB-SB|HPB Scrapbooks]] to create a volume page, and add it to category {{c|HPB SB volume TOC}}.  
 +
 
 +
Templates used:
 +
* {{t|HPB-SB-navigation}}
 +
* {{t|HPB-SB TOC records}}
 +
 
 +
 
 +
Properties set:
 +
* {{p|HPB SB volume number}}
 +
* {{p|HPB SB volume number sortable}}
 +
* {{p|HPB SB volume period}}
 +
* {{p|HPB SB volume title}}
 +
* {{p|HPB SB volume pages total}}
 +
* {{p|HPB SB volume title pages}}
 +
* {{p|HPB SB volume absent pages}}
 +
* {{p|HPB SB volume pages with inlay}}
 +
* {{p|HPB SB volume note}}
 +
* {{p|HPB SB volume description}}
 +
* {{p|HPB SB volume link}}
 +
 
 +
 
 +
Properties used in request:
 +
* {{p|HPB SB volume}}
 +
* {{p|HPB SB page item}}
 +
 
  
 
'''Usage''':
 
'''Usage''':
Line 5: Line 29:
 
{{HPB-SB-volume
 
{{HPB-SB-volume
 
  | volume =  
 
  | volume =  
  | date =  
+
  | period =  
 
  | title =  
 
  | title =  
 +
| pages =
 +
| title pages =
 +
| absent pages =
 +
| pages with inlay =
 
  | notes =  
 
  | notes =  
 
}}
 
}}
Line 12: Line 40:
  
 
[[Category: Templates for HPB SB]]
 
[[Category: Templates for HPB SB]]
</noinclude><includeonly>{{HPB-SB-navigation}}
+
[[t-ru-lib:Шаблон:ЕПБ-ЛА-том]]
 +
</noinclude><includeonly>{{HPB-SB-navigation}} [[t-ru-lib:ЕПБ-ЛА-{{{volume|}}}]] [[Category: HPB SB volume TOC]]
 
{{Style P-Title|Volume {{{volume|}}}}}
 
{{Style P-Title|Volume {{{volume|}}}}}
<center>'''({{{date|}}})'''</center>
+
<center>'''({{{period|}}})'''</center>
 
{{Style P-Subtitle|{{{title|}}}}}
 
{{Style P-Subtitle|{{{title|}}}}}
'''Volume notes:''' {{{notes|}}}
+
'''Volume notes:''' {{{notes|}}} <!--
 
+
  добавляем к заметкам отсутсвующие страницы
{{#ask: [[HPB SB page item::+]] [[HPB SB volume::{{{volume|}}}]]
+
-->{{#if: {{{title pages|}}}| Title pages: {{#arraymap:{{{title pages|}}}|,|@@|[[HPB-SB-{{{volume|}}}-@@|@@]]}}. |}} <!--
 +
  добавляем к заметкам список титульных страниц
 +
-->{{#if: {{{absent pages|}}}| Absent pages: {{#arraymap:{{{absent pages|}}}|,|@@|[[HPB-SB-{{{volume|}}}-@@|@@]]}}. |}} <!--
 +
  добавляем к заметкам страницы со вкладышами
 +
-->{{#if: {{{pages with inlay|}}}| Pages with inlay: {{#arraymap:{{{pages with inlay|}}}|,|@@|[[HPB-SB-{{{volume|}}}-@@|@@]]}}. |}}<!--
 +
  устанавливаем свойства тома
 +
-->{{#set: HPB SB volume number = {{{volume|}}}
 +
| HPB SB volume period        = {{{period|}}}
 +
| HPB SB volume title          = {{{title|}}}
 +
| HPB SB volume pages total    = {{{pages|}}}
 +
| HPB SB volume note          = {{{notes|}}}
 +
| HPB SB volume title pages    = {{{title pages|}}}
 +
| HPB SB volume absent pages  = {{{absent pages|}}}
 +
| HPB SB volume pages with inlay = {{{pages with inlay|}}}
 +
| HPB SB volume link            = [[HPB-SB-{{{volume|}}}|{{{volume|}}}]]
 +
}}<!--
 +
  set volume number in 2 digits format for sorting
 +
-->{{#ifexpr: {{{volume|}}} < 10
 +
| {{#set: HPB SB volume number sortable = 0{{{volume|}}}}}
 +
| {{#set: HPB SB volume number sortable = {{{volume|}}}}}
 +
}}<!--
 +
  Создаём описание тома из нескольких свойств
 +
-->{{#set: HPB SB volume description = {{{notes|}}} {{#if: {{{title pages|}}}| Title pages: {{{title pages}}}.|}} {{#if: {{{absent pages|}}}| Absent pages: {{#arraymap:{{{absent pages|}}}|,|@@|[[HPB-SB-{{{volume|}}}-@@|@@]]}}. |}} {{#if: {{{pages with inlay|}}}| Pages with inlay: {{#arraymap:{{{pages with inlay|}}}|,|@@|[[HPB-SB-{{{volume|}}}-@@|@@]]}}. |}} }}<!--
 +
  создаём и показываем оглавление
 +
-->{{#ask: [[HPB SB page item::+]] [[HPB SB volume::{{{volume|}}}]]
 
  |?HPB SB item ID      = ID
 
  |?HPB SB item ID      = ID
 
  |?HPB SB volume page  = page
 
  |?HPB SB volume page  = page
Line 41: Line 94:
 
  | template = HPB-SB TOC records
 
  | template = HPB-SB TOC records
 
  | outrotemplate = HPB-SB table ending
 
  | outrotemplate = HPB-SB table ending
  | userparam = 1
+
  | userparam = {{{volume|}}}
 
  | sort = HPB SB item ID
 
  | sort = HPB SB item ID
 
  | order = asc
 
  | order = asc
 
  | searchlabel=next
 
  | searchlabel=next
  | limit=500
+
  | limit=999
 
}}
 
}}
 
</includeonly>
 
</includeonly>

Latest revision as of 06:54, 20 April 2024

This template is used in HPB Scrapbooks to create a volume page, and add it to category «HPB SB volume TOC».

Templates used:


Properties set:


Properties used in request:


Usage:

{{HPB-SB-volume
 | volume = 
 | period = 
 | title = 
 | pages = 
 | title pages = 
 | absent pages = 
 | pages with inlay = 
 | notes = 
}}