Template:BCW-page: Difference between revisions
No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 8: | Line 8: | ||
'''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}}. | |||
{{Page/doc}} | |||
[[Category:Templates for HPB CW]] | [[Category:Templates for HPB CW]] | ||
[[Category:Templates for references]] | [[Category:Templates for references]] | ||
</noinclude><includeonly><!-- | </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|{{ | -->{{#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::{{ | -->{{#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:
- [[BCW volume number]] – set in template {{HPB-CW-header}}
- [[Page number]] – set in template {{Page aside}} and {{Page aside continues}}
- {{BCW page link}} – design 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
- [[Page number]] – sets this semantic property
- {{Page continues}} – same as above, but do not set semantic property
- {{Page aside}} – places page number aside the text, sets semantic property [[Page number]]; no visual split
- {{Page aside continues}} – same as above, but without semantic property
- {{Page/doc}} – this description
Link to certain page of original text:
- {{SD-page|v=|p=|ed=|text=}} – Sectet Doctrine; uses:
- {{SD page link}} – design template
- {{SD-p-toc}} – link in table of contents
- {{IU-page|v=|p=|text=}} – Isis Unveiled; uses:
- {{IU page link}} – design template
- {{IU-p-toc}} – link in table of contents
- {{BCW-page|v=|p=|text=}} – H. P. Blavatsky Collected Writings
- {{BCW page link}} – design template
- {{SB-page|v=|p=|text=}} – H. P. Blavatsky's Scrapbooks
- {{SB add link}} – convert text in format Volume:Page into link.