Difference between revisions of "Template:TOC right"

From paradatabase
Jump to navigation Jump to search
 
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; data-top:{{{1|0}}}">__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  
  
see also [[MediaWiki:Common.js]] about position
+
<nowiki>{{{1}}}</nowiki> - top relative to top of <code> '''#content'''</code>-element + 12px
  
<nowiki>{{{1}}}</nowiki> - top relative to &lt;h1&gt; (e.g. 20px)
+
default 0
  
 
Usage:  
 
Usage:  

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}}