Difference between revisions of "Template:Page aside"

From Teopedia library
Jump to navigation Jump to search
m
Line 18: Line 18:
 
[[Category: Semantic templates]]
 
[[Category: Semantic templates]]
 
[[t-ru-lib:Шаблон:Стр сбоку]]
 
[[t-ru-lib:Шаблон:Стр сбоку]]
</noinclude><includeonly>{{#set: Page number={{{1|}}}}}<span style="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;" title="Page {{{1|}}}{{#if: {{{2|}}}|. {{{2}}}|}}">{{{1|}}}</span></includeonly>
+
</noinclude><includeonly>{{#set: Page number={{{1|}}}}}<span style="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 {{{1|}}}{{#if: {{{2|}}}|. {{{2}}}|}}">{{{1|}}}</span></includeonly>

Revision as of 07:54, 25 August 2023

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. See H.P. Blavatsky Collected Writings pages for usage examples. See also template {{Page}} for alternative design, providing visual split of pages.


Parameters:

  • 1 -- Page number
  • 2 -- Page running title


Example:

{{Page aside|17}}
{{Page aside|17|Table of contents}}

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.