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

From Teopedia library
Jump to navigation Jump to search
m (+HPB SB volume number sortable)
 
(2 intermediate revisions by the same user not shown)
Line 8: Line 8:
 
Properties set:
 
Properties set:
 
* {{p|HPB SB volume number}}
 
* {{p|HPB SB volume number}}
 +
* {{p|HPB SB volume number sortable}}
 
* {{p|HPB SB volume period}}
 
* {{p|HPB SB volume period}}
 
* {{p|HPB SB volume title}}
 
* {{p|HPB SB volume title}}
Line 39: Line 40:
  
 
[[Category: Templates for HPB SB]]
 
[[Category: Templates for HPB SB]]
[[t-ru-lib:ЕПБ-ЛА-том]]
+
[[t-ru-lib:Шаблон:ЕПБ-ЛА-том]]
 
</noinclude><includeonly>{{HPB-SB-navigation}} [[t-ru-lib:ЕПБ-ЛА-{{{volume|}}}]] [[Category: HPB SB volume TOC]]
 
</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>'''({{{period|}}})'''</center>
 
<center>'''({{{period|}}})'''</center>
 
{{Style P-Subtitle|{{{title|}}}}}
 
{{Style P-Subtitle|{{{title|}}}}}
'''Volume notes:''' {{{notes|}}}<!--
+
'''Volume notes:''' {{{notes|}}} <!--
 
   добавляем к заметкам отсутсвующие страницы
 
   добавляем к заметкам отсутсвующие страницы
-->{{#if: {{{title pages|}}}| Title pages: {{{title pages}}}.|}} <!--
+
-->{{#if: {{{title pages|}}}| Title pages: {{#arraymap:{{{title pages|}}}|,|@@|[[HPB-SB-{{{volume|}}}-@@|@@]]}}. |}} <!--
 
   добавляем к заметкам список титульных страниц
 
   добавляем к заметкам список титульных страниц
 
-->{{#if: {{{absent pages|}}}| Absent pages: {{#arraymap:{{{absent pages|}}}|,|@@|[[HPB-SB-{{{volume|}}}-@@|@@]]}}. |}} <!--
 
-->{{#if: {{{absent pages|}}}| Absent pages: {{#arraymap:{{{absent pages|}}}|,|@@|[[HPB-SB-{{{volume|}}}-@@|@@]]}}. |}} <!--
Line 61: Line 62:
 
  | HPB SB volume pages with inlay = {{{pages with inlay|}}}
 
  | HPB SB volume pages with inlay = {{{pages with inlay|}}}
 
  | HPB SB volume link            = [[HPB-SB-{{{volume|}}}|{{{volume|}}}]]
 
  | 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|}}}}}
 
}}<!--
 
}}<!--
 
   Создаём описание тома из нескольких свойств
 
   Создаём описание тома из нескольких свойств

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 = 
}}