Template:SB-page: Difference between revisions

From Teopedia
(+ability to pass v:p and page range)
mNo edit summary
 
(3 intermediate revisions by the same user not shown)
Line 10: Line 10:
</pre>
</pre>


* '''unnamed parameter''' should be in format: '''Volume:Page''' or '''Volume:FirstPage-LastPage'''
* '''unnamed parameter''' should be in format: '''Volume:Page''' (2:44) or '''Volume:FirstPage-LastPage''' (1:112-5)
* If parameter '''text''' omitted then shown text will be created as such: '''SB 3:192'''.
* If parameter '''text''' omitted then shown text will be created as such: '''SB 3:192'''.




'''Examples''':
{| class="wikitable"  
{| class="wikitable" style="margin: 2em auto; border-spacing: 1em 0;"
|+ Examples
|-
|-
! Wiki text
! Wiki text
Line 37: Line 37:
|}
|}


[[Category:Templates for SD]]
 
[[Category:Templates for references]]
'''Related templates''':
* {{t|SB add link}} – convert text in format Volume:Page into link.
 
{{Page/doc}}
 
[[Category: Templates for HPB SB]]
[[Category: Templates for references]]
</noinclude><includeonly>{{#vardefine:volume|{{{v|}}}}}{{#vardefine:pages|{{{p|}}}}}<!--
</noinclude><includeonly>{{#vardefine:volume|{{{v|}}}}}{{#vardefine:pages|{{{p|}}}}}<!--
   redefine variables if unnamed parameter is not empty; split string '3:258-61'
   redefine variables if unnamed parameter is not empty; split string '3:258-61'

Latest revision as of 04:52, 11 March 2024

This template provides the link to the page in "H. P. Blavatsky's Scrapbooks".


To copy:

{{SB-page|}}
{{SB-page||text=}}
{{SB-page|v=|p=}}
{{SB-page|v=|p=|text=}}
  • unnamed parameter should be in format: Volume:Page (2:44) or Volume:FirstPage-LastPage (1:112-5)
  • If parameter text omitted then shown text will be created as such: SB 3:192.


Examples
Wiki text Result
{{SB-page|3:258-61}} SB 3:258-61
{{SB-page|3:258-61|text=SB, vol.3, pp.258-61}} SB, vol. 3, pp. 258-61
{{SB-page|v=7|p=15}} SB 7:15
{{SB-page|v=7|p=15|text=on page 15 of seventh volume}} on page 15 of seventh volume
{{SB-page|5:45-7|v=7|p=22}} SB 5:45-7

(unnamed parameter has higher priority)


Related templates:

  • {{SB add link}} – convert text in format Volume:Page into link.



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: