Difference between revisions of "Template:HPB-SB TOC records all volumes"

From Teopedia library
Jump to navigation Jump to search
(Created page with "<pre>{{#explode:string|delimiter|position|limit}}</pre> * Vol : {{#explode:HPB-SB-2-16|-|2}} * Page: {{#explode:HPB-SB-2-16|-|3}} * Link: {{#explode:HPB SB 2 16| |1|3}} <noin...")
 
m
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<pre>{{#explode:string|delimiter|position|limit}}</pre>
 
* Vol : {{#explode:HPB-SB-2-16|-|2}}
 
* Page: {{#explode:HPB-SB-2-16|-|3}}
 
* Link: {{#explode:HPB SB 2 16| |1|3}}
 
 
 
<noinclude>This template is used to create a table of contents (TOC) for [[HPB-SB|H.P.Blavatsky's Scrapbook]].
 
<noinclude>This template is used to create a table of contents (TOC) for [[HPB-SB|H.P.Blavatsky's Scrapbook]].
* {{t|HPB-SB TOC header}}  
+
* {{t|HPB-SB TOC header}} or {{t|HPB-SB TOC header all volumes}}
 
* {{t|HPB-SB TOC records}} or {{t|HPB-SB TOC records all volumes}}   
 
* {{t|HPB-SB TOC records}} or {{t|HPB-SB TOC records all volumes}}   
 
* {{t|HPB-SB table ending}}   
 
* {{t|HPB-SB table ending}}   
  
[[Category: Templates for Scrapbooks]]
+
[[Category: Templates for HPB SB]]
 
[[Category: Templates for templates]]
 
[[Category: Templates for templates]]
 
</noinclude><includeonly>{{#vardefine:volume| {{#explode:{{{wiki page|}}}|-|2}} }}
 
</noinclude><includeonly>{{#vardefine:volume| {{#explode:{{{wiki page|}}}|-|2}} }}
 
|- valign=top
 
|- valign=top
| [[{{{wiki page|}}}|{{#var:volume}}:{{{page|}}}]]{{#if: {{{continues|}}}|, {{#arraymap:{{{continues|}}}|,|@@|[[HPB-SB-{{#var:volume}}-@@|{{#var:volume}}:@@]]}} |}}
+
| {{#var:volume}}
 +
| [[{{{wiki page|}}}|{{{page|}}}]]{{#if: {{{continues|}}}|, {{#arraymap:{{{continues|}}}|,|@@|[[HPB-SB-{{#var:volume}}-@@|@@]]}} |}}
 
| <!-- an item could be untitled in two ways: (1) parameter 'untitled' set to 'yes'; (2) parameter 'title' is empty. In first case parameter 'title' holds a few first words from text.
 
| <!-- an item could be untitled in two ways: (1) parameter 'untitled' set to 'yes'; (2) parameter 'title' is empty. In first case parameter 'title' holds a few first words from text.
 
-->{{#if: {{{title|}}}| {{#vardefine:title|{{{title|}}}}} | {{#vardefine:title|<untitled>}} }}{{#switch: {{{status|}}}  
 
-->{{#if: {{{title|}}}| {{#vardefine:title|{{{title|}}}}} | {{#vardefine:title|<untitled>}} }}{{#switch: {{{status|}}}  

Latest revision as of 09:47, 25 August 2023

This template is used to create a table of contents (TOC) for H.P.Blavatsky's Scrapbook.