Changes

Jump to navigation Jump to search
Created page with "<noinclude>{{Style P-No indent|This template makes a design of the link to the certain page in "H. P. Blavatsky Collected Writings". It is used in {{t|BCW-page}}. }..."
<noinclude>{{Style P-No indent|This template makes a design of the link to the certain page in "[[HPB-CW|H. P. Blavatsky Collected Writings]]". It is used in {{t|BCW-page}}. }}


Design depends on number of parameters passed:
* one, just page number – make link text as such: “BCW 1:45”
* two, page and text to show – show the second parameter

[[Category:Templates for BCW]]
</noinclude><includeonly><!--
save parameters in array
-->{{#arraydefine:parameters|{{{#userparam|}}}|@@}}<!--
first parameter (index=0) is page number; second parameter (index=1) is the text to show
-->{{#vardefine:page|{{#arrayindex:parameters |0}}}}<!--
set text to show;
-->{{#switch: {{#arraysize:parameters}}
| 2 = {{#vardefine:text|{{#arrayindex:parameters |1}}}}
| 1 = {{#vardefine:text|BCW {{{volume}}}:{{#var:page}}}}
}}<!--
-->[[{{{wiki_page|}}}#{{#var:page}}|{{#var:text}}]]</includeonly>

Navigation menu