Bureaucrats, Interface administrators, Administrators (Semantic MediaWiki), Curators (Semantic MediaWiki), Editors (Semantic MediaWiki), Suppressors, Administrators, trusted
11,022
edits
mNo edit summary |
No edit summary |
||
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 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 28: | ||
{{HPB-SB-volume | {{HPB-SB-volume | ||
| volume = | | volume = | ||
| | | period = | ||
| title = | | title = | ||
| pages = | |||
| title pages = | |||
| absent pages = | |||
| pages with inlay = | |||
| notes = | | notes = | ||
}} | }} | ||
Line 13: | 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|}}}]] | </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: {{{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|}}}-@@|@@]]}}. |}}<!-- | |||
устанавливаем свойства тома | |||
-->{{#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: 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 |