Changes

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..."
<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]].
* {{t|HPB-SB TOC header}}
* {{t|HPB-SB TOC records}} or {{t|HPB-SB TOC records all volumes}}
* {{t|HPB-SB table ending}}

[[Category: Templates for Scrapbooks]]
[[Category: Templates for templates]]
</noinclude><includeonly>{{#vardefine:volume| {{#explode:{{{wiki page|}}}|-|2}} }}
|- valign=top
| [[{{{wiki page|}}}|{{#var:volume}}:{{{page|}}}]]{{#if: {{{continues|}}}|, {{#arraymap:{{{continues|}}}|,|@@|[[HPB-SB-{{#var:volume}}-@@|{{#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.
-->{{#if: {{{title|}}}| {{#vardefine:title|{{{title|}}}}} | {{#vardefine:title|<untitled>}} }}{{#switch: {{{status|}}}
| wanted = {{#if: {{{untitled|}}}| <untitled> ({{#var:title}}...) | {{#var:title}} }}
| #default = {{#if: {{{untitled|}}}| <untitled> ([[{{{wiki page|}}}|{{#var:title}}...]]) | [[{{{wiki page|}}}|{{#var:title}}]] }}
}} {{#if: {{{subtitle|}}}|<br> <small>{{{subtitle}}}</small>|}}<br>
<div style="color: grey; font-size:80%; margin-top: -0.5em;"><span title="Item identifier in Scrapbooks">ID: {{{ID}}}</span></div>
| {{{author|}}}
| {{{source|}}}{{#if: {{{details|}}}|<span style="color: grey;">, {{{details}}}</span>|}}
| {{#if: {{{publication|}}}
| {{{publication|}}} {{#if: {{{original date|}}}|<br><span style="color: grey;">({{{original date}}})</span>|}}
| {{#if: {{{original date|}}}|<span style="color: grey;">{{{original date}}}</span>|}}
}}
| {{{type|}}}
| {{{notes|}}}
</includeonly>