Template:HPB-SB-volume: Difference between revisions
No edit summary |
mNo edit summary |
||
(7 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 = | ||
| | | 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>'''({{{ | <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: {{#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|}}}-@@|@@]]}}. |}} }}<!-- | |||
создаём и показываем оглавление | |||
-->{{#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 45: | Line 98: | ||
| order = asc | | order = asc | ||
| searchlabel=next | | searchlabel=next | ||
| limit= | | limit=999 | ||
}} | }} | ||
</includeonly> | </includeonly> |
Latest revision as of 14:53, 1 October 2024
This template is used in HPB Scrapbooks to create a volume page, and add it to category «HPB SB volume TOC».
Templates used:
- {{HPB-SB-navigation}}
- {{HPB-SB TOC records}}
Properties set:
- [[HPB SB volume number]]
- [[HPB SB volume number sortable]]
- [[HPB SB volume period]]
- [[HPB SB volume title]]
- [[HPB SB volume pages total]]
- [[HPB SB volume title pages]]
- [[HPB SB volume absent pages]]
- [[HPB SB volume pages with inlay]]
- [[HPB SB volume note]]
- [[HPB SB volume description]]
- [[HPB SB volume link]]
Properties used in request:
- [[HPB SB volume]]
- [[HPB SB page item]]
Usage:
{{HPB-SB-volume | volume = | period = | title = | pages = | title pages = | absent pages = | pages with inlay = | notes = }}