Template:BCW-page: Difference between revisions

From Teopedia
(Created page with "<noinclude>{{Style P-No indent|This template provides the link to the certain page in "H. P. Blavatsky Collected Writings".}} {{Style P-No indent|Link created by s...")
 
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 3: Line 3:
{{Style P-No indent|Link created by semantic query and template:}}
{{Style P-No indent|Link created by semantic query and template:}}
* {{p|BCW volume number}} – set in template {{t|HPB-CW-header}}
* {{p|BCW volume number}} – set in template {{t|HPB-CW-header}}
* {{p|Page number}} – set in template {{t|Page}}
* {{p|Page number}} – set in template {{t|Page aside}} and {{t|Page aside continues}}
* {{t|BCW page link}} – design template
* {{t|BCW page link}} – design template




'''To copy''':
'''To copy''':
<pre>{{BCW-page|v=|p=|text=}}</pre>
<pre>
{{BCW-page|}}
{{BCW-page||text=}}
{{BCW-page|v=|p=}}
{{BCW-page|v=|p=|text=}}
</pre>


{{Style P-No indent|where}}  
{{Style P-No indent|where}}  
* '''text''' is a text to show as a link; if do not set this parameter, the text will be created automatically, displaying volume and page divided by colon, for example: BCW 3:58.
* '''text''' is a text to show as a link; if do not set this parameter, the text will be created automatically, displaying volume and page divided by colon, for example: BCW 3:58.
* Usage is similar to {{t|SB-page}}.


[[Category:Templates for BCW]]
{{Page/doc}}
</noinclude><includeonly><!--  
 
[[Category:Templates for HPB CW]]
[[Category:Templates for references]]
</noinclude><includeonly>{{#vardefine:volume|{{{v|}}}}}{{#vardefine:pages|{{{p|}}}}}<!--
  redefine variables if unnamed parameter is not empty; split string '3:258-61'
-->{{#if: {{{1|}}}|{{#vardefine:volume|{{#explode:{{{1}}}|:|0}}}}{{#vardefine:pages|{{#explode:{{{1}}}|:|1}}}}|}}<!--
  take only first page for the link (in case if passed a range: 258-61)
-->{{#vardefine:page|{{#explode:{{#var:pages}}|-|0}}}}<!--
   set link text; use @@ as a parameter separator
   set link text; use @@ as a parameter separator
-->{{#if: {{{text|}}}| {{#vardefine:link_text|{{{p|}}}@@{{{text|}}}}} | {{#vardefine:link_text|{{{p|}}}}} }}<!--
-->{{#if: {{{text|}}}|{{#vardefine:link_text|{{#var:page}}@@{{{text}}}}}|{{#vardefine:link_text|{{#var:page}}}}}}<!--
 
   make a request and design the output with template 'BCW page link'
   make a request and design the output with template 'BCW page link'
-->{{#ask: [[BCW volume number::{{{v|}}}]] [[Page number::{{{p|}}}]]  
-->{{#ask: [[BCW volume number::{{#var:volume}}]] [[Page number::{{#var:page}}]]  
  |?BCW volume number  = volume
  |?BCW volume number  = volume
  |?          = wiki_page
  |?          = wiki_page

Latest revision as of 04:52, 11 March 2024

This template provides the link to the certain page in "H. P. Blavatsky Collected Writings".

Link created by semantic query and template:


To copy:

{{BCW-page|}}
{{BCW-page||text=}}
{{BCW-page|v=|p=}}
{{BCW-page|v=|p=|text=}}

where

  • text is a text to show as a link; if do not set this parameter, the text will be created automatically, displaying volume and page divided by colon, for example: BCW 3:58.
  • Usage is similar to {{SB-page}}.



Pagination related templates and properties:

  • {{Page}} – places book page number with bookmark (anchor); provides visual split of pages


Link to certain page of original text: