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

From Teopedia library
Jump to navigation Jump to search
Line 9: Line 9:
 
|- valign=top
 
|- valign=top
 
| [[{{{wiki page|}}}|{{{page|}}}]]{{#if: {{{continues|}}}|, {{#arraymap:{{{continues|}}}|,|@@|[[HPB-SB-{{{#userparam|}}}-@@|@@]]}} |}}
 
| [[{{{wiki page|}}}|{{{page|}}}]]{{#if: {{{continues|}}}|, {{#arraymap:{{{continues|}}}|,|@@|[[HPB-SB-{{{#userparam|}}}-@@|@@]]}} |}}
| {{#switch: {{{status|}}}  
+
| {{#if: {{{title|}}}| {{#vardefine:title|{{{title|}}}}} | {{#vardefine:title|<no title>}} }}{{#switch: {{{status|}}}  
   | wanted =  {{#if: {{{untitled|}}}| <Untitled> ({{{title|}}}...)|{{{title|}}}}}
+
   | wanted =  {{#if: {{{untitled|}}}| <Untitled> ({{#var:title}}...) | {{#var:title}} }}
   | #default = {{#if: {{{untitled|}}}| <Untitled> ([[{{{wiki page|}}}|{{{title|no title}}}...]]) | [[{{{wiki page|}}}|{{{title|no title}}}]] }}
+
   | #default = {{#if: {{{untitled|}}}| <Untitled> ([[{{{wiki page|}}}|{{#var:title}}...]]) | [[{{{wiki page|}}}|{{#var:title}}]] }}
 
   }} {{#if: {{{subtitle|}}}|<br> <small>{{{subtitle}}}</small>|}}<br>
 
   }} {{#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>
 
<div style="color: grey; font-size:80%; margin-top: -0.5em;"><span title="Item identifier in Scrapbooks">ID: {{{ID}}}</span></div>

Revision as of 11:04, 12 May 2021

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