Difference between revisions of "Template:HPB-CW-content-item design"

From Teopedia library
Jump to navigation Jump to search
m
m
Line 3: Line 3:
 
[[Category:Templates for HPB CW]]
 
[[Category:Templates for HPB CW]]
 
</noinclude><includeonly><!--
 
</noinclude><includeonly><!--
 +
  title, author and pages -->
 +
<p style="text-indent: 0; line-height: 110%;"><div style="float: right; margin-left: 1em;">.... {{#explode:{{{pages|}}}|-|0}}<p style="text-indent: 0; line-height: 110%; font-size: 80%; color: grey; text-align: right;">– {{#explode:{{{pages|}}}|-|1}}</p></div>'''[[{{{wiki_page|}}}|{{{title|}}}]]''' <span style="color: grey;">by</span> ''{{{author|}}}''</p><!--
  
-->{{#vardefine:first page|{{#explode:{{{pages|}}}|-|0}}}}{{#vardefine:last page|{{#explode:{{{pages|}}}|-|1}}}}<!--
+
  first publication -->
 +
{{#if: {{{publications|}}}|<p style="text-indent: 0; line-height: 110%; font-size: 80%;"><span style="color: grey;">First publication:</span> {{#explode:{{{publications|}}}|;|0}}</p> |}}<!--
  
--><p style="text-indent: 0; line-height: 110%;"><div style="float: right; margin-left: 1em;">.. {{#var:first page}}{{#varexists:last page|<p style="text-indent: 0; line-height: 110%; font-size: 80%; color: grey; text-align: right;">–{{#var:last page}}</p>|}}</div>'''[[{{{wiki_page|}}}|{{{title|}}}]]''' <span style="color: grey;">by</span> ''{{{author|}}}''</p>
+
  Scrapbooks, other resources and translations -->
{{#if: {{{publications|}}}|<p style="text-indent: 0; line-height: 110%; font-size: 80%;"><span style="color: grey;">First publication:</span> {{#explode:{{{publications|}}}|;|0}}</p> |}}
 
 
<p style="text-indent: 0; line-height: 110%; font-size: 80%; color: grey;">Scrapbooks: {{#if: {{{scrapbooks|}}}|{{SB-page|{{{scrapbooks|}}}|text={{{scrapbooks|}}}}}|–}}. Also at: <span class="plainlinks">{{{internet resources}}}</span>{{#if: {{{translations|}}}|. Also in: <span class="plainlinks">{{{translations}}}</span>|}}</p>
 
<p style="text-indent: 0; line-height: 110%; font-size: 80%; color: grey;">Scrapbooks: {{#if: {{{scrapbooks|}}}|{{SB-page|{{{scrapbooks|}}}|text={{{scrapbooks|}}}}}|–}}. Also at: <span class="plainlinks">{{{internet resources}}}</span>{{#if: {{{translations|}}}|. Also in: <span class="plainlinks">{{{translations}}}</span>|}}</p>
 
</includeonly>
 
</includeonly>

Revision as of 11:25, 29 September 2023

This template makes a design of a record in "H. P. Blavatsky Collected Writings" table of contents. It is used in {{HPB-CW-content-item}}.