Difference between revisions of "Template:TOC right"

From paradatabase
Jump to navigation Jump to search
(Created page with "<div style="padding:3px; background-color:rgba(220, 220, 220, 0.5); box-shadow:0 0 20px rgba(220, 220, 220, 0.9); position:absolute; right:-5px; top:{{{1|-50px}}}">__TOC__</di...")
 
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<div style="padding:3px; background-color:rgba(220, 220, 220, 0.5); box-shadow:0 0 20px rgba(220, 220, 220, 0.9); position:absolute; right:-5px; top:{{{1|-50px}}}">__TOC__</div><noinclude>
+
<div id="tocXdr" style="padding:3px; background-color:rgba(220, 220, 220, 0.5); box-shadow:0 0 20px rgba(220, 220, 220, 0.9); position:absolute; right:-5px;" data-top="{{{1|0}}}">__TOC__</div><noinclude>
 
Places Table of contents to the right of page  
 
Places Table of contents to the right of page  
  
<nowiki>{{{1}}}</nowiki> - top (e.g. 20px)
+
<nowiki>{{{1}}}</nowiki> - top relative to top of <code> '''#content'''</code>-element + 12px
 +
 
 +
default 0
  
 
Usage:  
 
Usage:  
 
* <nowiki>{{TOC_right}}</nowiki>  
 
* <nowiki>{{TOC_right}}</nowiki>  
* <nowiki>{{TOC_right|20px}}</nowiki>  
+
* <nowiki>{{TOC_right|20}}</nowiki>  
 
</noinclude>
 
</noinclude>

Latest revision as of 04:12, 6 February 2019

Places Table of contents to the right of page

{{{1}}} - top relative to top of #content-element + 12px

default 0

Usage:

  • {{TOC_right}}
  • {{TOC_right|20}}