Template:Page aside: Difference between revisions
(Добавлена ссылка из бокового номера первой редакции к соответствующей странице ed.1 только в статьях ed.3) |
(Добавлена поддержка явной цели ссылки у продолжения страницы первой редакции) |
||
| Line 1: | Line 1: | ||
<noinclude>This template places book page number with bookmark (anchor) and semantic property {{p|Page number}} for easy references and request. It has a page running title as an option. | <noinclude>This template places book page number with bookmark (anchor) and semantic property {{p|Page number}} for easy references and request. It has a page running title as an option. | ||
| Line 6: | Line 6: | ||
* '''2''' -- page running title (optional) | * '''2''' -- page running title (optional) | ||
* '''show page''' -- show this page number and use first parameter as a bookmark only | * '''show page''' -- show this page number and use first parameter as a bookmark only | ||
* '''link page''' -- link the ed.1 arrow to another exact page boundary (optional) | |||
In case if one article ends and another one starts on the same page and those articles goes to the different wiki pages, use {{t|Page aside}} when the page actually begins and {{t|Page aside continues}} in the beginning of the next article. See BCW, vol. 1, p. 36, where article “[[Blavatsky H.P. - Marvellous Spirit Manifestations|Marvellous Spirit Manifestations]]” ends and [[Blavatsky H.P. - About Spiritualism|About Spiritualism]] starts. In the former case the plain anchor “36” will be placed, and for the latter the parameter item should be set to “2”, so the anchor will be: “36_2”. | In case if one article ends and another one starts on the same page and those articles goes to the different wiki pages, use {{t|Page aside}} when the page actually begins and {{t|Page aside continues}} in the beginning of the next article. See BCW, vol. 1, p. 36, where article “[[Blavatsky H.P. - Marvellous Spirit Manifestations|Marvellous Spirit Manifestations]]” ends and [[Blavatsky H.P. - About Spiritualism|About Spiritualism]] starts. In the former case the plain anchor “36” will be placed, and for the latter the parameter item should be set to “2”, so the anchor will be: “36_2”. | ||
| Line 15: | Line 16: | ||
{{Page aside|17|Table of contents}} | {{Page aside|17|Table of contents}} | ||
{{Page aside|17|Table of contents|show page=xvii}} | {{Page aside|17|Table of contents|show page=xvii}} | ||
{{Page aside|sd1_v1_p411_2|the mystery of the seven thunders.|show page=411...|link page=412}} | |||
</pre> | </pre> | ||
| Line 28: | Line 30: | ||
[[t-ru-lib:Шаблон:Стр сбоку]] | [[t-ru-lib:Шаблон:Стр сбоку]] | ||
</noinclude><includeonly>{{#set: Page number={{{1|}}}}}<span style="position: absolute; left: 0; min-width: 2em; text-indent: 0; color: grey; background: white; font-weight: bold; font-size: 80%; padding: 0 3px; float: left; margin: 1px 5px 1px -40px; border-top: 1px solid grey; border-left: 1px solid grey; border-bottom: 1px solid grey;" id="{{{1|}}}" title="Page {{#if: {{{show page|}}}|{{{show page}}}|{{{1|}}}}}{{#if: {{{2|}}}|. {{{2}}}|}}">{{#if: {{{show page|}}}| {{{show page}}}|{{{1|}}}}} {{#ifeq:{{#sub:{{FULLPAGENAME}}|0|12}}|HPB-SD(ed.3)|{{#ifeq:{{#explode:{{{1|}}}|_|0}}|sd1|{{SD-page|v={{#sub:{{#explode:{{{1|}}}|_|1}}|1}}|p={{#sub:{{#explode:{{{1|}}}|_|2}}|1}}|ed=ed.1|text=←}}}}}}</span></includeonly> | </noinclude><includeonly>{{#set: Page number={{{1|}}}}}<span style="position: absolute; left: 0; min-width: 2em; text-indent: 0; color: grey; background: white; font-weight: bold; font-size: 80%; padding: 0 3px; float: left; margin: 1px 5px 1px -40px; border-top: 1px solid grey; border-left: 1px solid grey; border-bottom: 1px solid grey;" id="{{{1|}}}" title="Page {{#if: {{{show page|}}}|{{{show page}}}|{{{1|}}}}}{{#if: {{{2|}}}|. {{{2}}}|}}">{{#if: {{{show page|}}}| {{{show page}}}|{{{1|}}}}} {{#ifeq:{{#sub:{{FULLPAGENAME}}|0|12}}|HPB-SD(ed.3)|{{#ifeq:{{#explode:{{{1|}}}|_|0}}|sd1|{{SD-page|v={{#sub:{{#explode:{{{1|}}}|_|1}}|1}}|p={{#if:{{{link page|}}}|{{{link page}}}|{{#sub:{{#explode:{{{1|}}}|_|2}}|1}}}}|ed=ed.1|text=←}}}}}}</span></includeonly> | ||
Revision as of 05:51, 29 September 2026
This template places book page number with bookmark (anchor) and semantic property [[Page number]] for easy references and request. It has a page running title as an option.
Parameters:
- 1 -- page number and a bookmark
- 2 -- page running title (optional)
- show page -- show this page number and use first parameter as a bookmark only
- link page -- link the ed.1 arrow to another exact page boundary (optional)
In case if one article ends and another one starts on the same page and those articles goes to the different wiki pages, use {{Page aside}} when the page actually begins and {{Page aside continues}} in the beginning of the next article. See BCW, vol. 1, p. 36, where article “Marvellous Spirit Manifestations” ends and About Spiritualism starts. In the former case the plain anchor “36” will be placed, and for the latter the parameter item should be set to “2”, so the anchor will be: “36_2”.
Example:
{{Page aside|17}}
{{Page aside|17|Table of contents}}
{{Page aside|17|Table of contents|show page=xvii}}
{{Page aside|sd1_v1_p411_2|the mystery of the seven thunders.|show page=411...|link page=412}}
Here goes a rather long text of the the page 16, to check different window widths, and finaly it ends here. 17 Here starts page 17 with the running title "Table of contents", which can be seen as a pop-up message when mouse moved over page number.
Pagination related templates, properties and forms:
- {{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 number}} – just set bookmark and property [[Page number]] without visual effect; for empty book pages; it allows the reference system avoid technical errors
- {{Page/doc}} – this description
Page information:
- H. P. Blavatsky Collected Writings page info, form, template (design), view
- Isis Unveiled page info, form, template (design), view
- Secret Doctrine page info, form, template (design), view
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.